You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.3 KiB
75 lines
1.3 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 聊天消息类
|
||
|
/// </summary>
|
||
|
public class ChatMessage
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 聊天消息ID
|
||
|
/// </summary>
|
||
|
public long ID;
|
||
|
/// <summary>
|
||
|
/// 发送者ID
|
||
|
/// </summary>
|
||
|
public long SenderId;
|
||
|
/// <summary>
|
||
|
/// 接收者ID
|
||
|
/// </summary>
|
||
|
public long ReceiverId;
|
||
|
/// <summary>
|
||
|
/// 聊天频道
|
||
|
/// </summary>
|
||
|
public ChatChannel Channel;
|
||
|
/// <summary>
|
||
|
/// 回放帧数
|
||
|
/// </summary>
|
||
|
public int ReplayFrameCount;
|
||
|
/// <summary>
|
||
|
/// 聊天创建时间
|
||
|
/// </summary>
|
||
|
public DateTime CreateTime;
|
||
|
/// <summary>
|
||
|
/// 战斗id
|
||
|
/// </summary>
|
||
|
public long? BattleId;
|
||
|
/// <summary>
|
||
|
/// 聊天群组
|
||
|
/// </summary>
|
||
|
public ChatType ChatGroup;
|
||
|
}
|
||
|
public enum ChatType
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 公聊消息
|
||
|
/// </summary>
|
||
|
PublicChat,
|
||
|
/// <summary>
|
||
|
/// 私聊消息
|
||
|
/// </summary>
|
||
|
PrivateChat,
|
||
|
/// <summary>
|
||
|
/// 建议消息
|
||
|
/// </summary>
|
||
|
SuggestChat
|
||
|
}
|
||
|
|
||
|
public enum ChatMsgType
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 字符串
|
||
|
/// </summary>
|
||
|
Str,
|
||
|
/// <summary>
|
||
|
/// 语音
|
||
|
/// </summary>
|
||
|
Audio,
|
||
|
/// <summary>
|
||
|
/// 指令
|
||
|
/// </summary>
|
||
|
Task
|
||
|
}
|