Class Video code
- 命名空间
- Another_Mirai_Native.Abstractions.Models.MessageItem
- 程序集
- Another-Mirai-Native.Abstractions.dll
视频消息片段。
public class Video : MessageItemBase
- 继承
-
Video
- 继承成员
构造函数
Video(string, string) code
public Video(string filePath = "", string hash = "")
参数
属性
FilePath code
本地路径、URL 或 base64:// 数据。
public string FilePath { get; set; }
属性值
Hash code
视频缓存哈希。
public string Hash { get; set; }
属性值
MessageItemType code
获取或设置消息片段类型。
public override MessageItemType MessageItemType { get; set; }
属性值
Parameters code
附加 CQ 参数,如 cover 或 Mirai 视频转发所需的元数据。
public Dictionary<string, string> Parameters { get; }
属性值
方法
ToString() code
返回当前消息片段的 CQ 码字符串表示。
public override string ToString()
返回值
- string
CQ 码文本。