menu
light_mode dark_mode routine

Class Image code

命名空间
Another_Mirai_Native.Abstractions.Models.MessageItem
程序集
Another-Mirai-Native.Abstractions.dll

图片消息片段。

public class Image : MessageItemBase
继承
Image
继承成员

构造函数

Image(string, string, bool, bool) code

初始化 Image。filePath 与 hash 只能二选一,并且最少传递一个。若两个都被传递,则优先使用 filePath。

public Image(string filePath = "", string hash = "", bool isFlash = false, bool isEmoji = false)

参数

filePath string

图片文件路径。

hash string

图片哈希。

isFlash bool

是否为闪照。

isEmoji bool

是否为表情包样式。

属性

FilePath code

图片文件路径。

public string FilePath { get; set; }

属性值

string

Hash code

图片哈希。

public string Hash { get; set; }

属性值

string

IsEmoji code

是否为表情包子类型。

public bool IsEmoji { get; set; }

属性值

bool

IsFlash code

是否为闪照。

public bool IsFlash { get; set; }

属性值

bool

MessageItemType code

获取或设置消息片段类型。

public override MessageItemType MessageItemType { get; set; }

属性值

MessageItemType

方法

ToString() code

返回当前消息片段的 CQ 码字符串表示。

public override string ToString()

返回值

string

CQ 码文本。