using System;
using System.Text;
namespace GameData{
///
/// 消息数据
///
public class MessageData {
///
/// 0 全服喊话 1单游喊话 2全桌喊话 3全竞技比赛喊话(clubid) 4私聊(userid)
///
public int msgStyle;
///
/// 当是竞技比赛喊话时 是竞技比赛id 当是私聊时 是玩家userid
///
public int serverid;
///
/// 文本内容
///
public string context;
///
/// 发送者userid
///
public int receiveId;
///
/// 发送者昵称
///
public string receiveNickName;
///
/// 发送者经验
///
public int receiveExp;
///
///
///
public MessageData() { }
///
///
///
///
///
///
public MessageData(int msgStyle,string context,int serverid) {
this.msgStyle = msgStyle;
this.context = context;
this.serverid = serverid;
}
///
///
///
///
public override string ToString() {
StringBuilder sb = new StringBuilder();
sb.Append("msgSty: ");
sb.Append(msgStyle);
sb.Append(Environment.NewLine);
sb.Append("context:");
sb.Append(context);
sb.Append(Environment.NewLine);
sb.Append("serverid:");
sb.Append(serverid);
sb.Append(Environment.NewLine);
sb.Append("receiveId:");
sb.Append(receiveId);
sb.Append(Environment.NewLine);
sb.Append("receiveNickName:");
sb.Append(receiveNickName);
sb.Append(Environment.NewLine);
sb.Append("receiveExp:");
sb.Append(receiveExp);
return sb.ToString();
}
}
}