Class Image code
- 程序集
- 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 code
图片文件路径。
public string FilePath { get; set; }
属性值
Hash code
图片哈希。
public string Hash { get; set; }
属性值
IsEmoji code
是否为表情包子类型。
public bool IsEmoji { get; set; }
属性值
IsFlash code
是否为闪照。
public bool IsFlash { get; set; }
属性值
MessageItemType code
获取或设置消息片段类型。
public override MessageItemType MessageItemType { get; set; }
属性值
方法
ToString() code
返回当前消息片段的 CQ 码字符串表示。
public override string ToString()
返回值
- string
CQ 码文本。