123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- // ***************************************************************************
- // * 作者: 曾振东
- // * 创建时间: 2019-08-15
- // * 用途: 聊天处理器
- // ***************************************************************************
- // Generated from: chatHandler.proto
- // Note: requires additional types generated from: common.proto
- // Note: requires additional types generated from: player.proto
- namespace pomelo.chat
- {
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 聊天内容
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatContent")]
- public partial class ChatContent : global::ProtoBuf.IExtensible
- {
- public ChatContent() {}
-
-
- private int _sortId;
- /// <summary>
- /// 顺序id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"sortId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int sortId
- {
- get { return _sortId; }
- set { _sortId = value; }
- }
-
- private int _contentType;
- /// <summary>
- /// 消息类型(0:普通消息 1:表情 2:语音消息 3:装备道具 4:位置消息 5:队伍招募 6:掷点 7:成魔)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"contentType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int contentType
- {
- get { return _contentType; }
- set { _contentType = value; }
- }
-
- private string _content = "";
- /// <summary>
- /// 普通消息内容/表情code
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"content", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string content
- {
- get { return _content; }
- set { _content = value; }
- }
-
- private pomelo.VoiceContent _voiceContent = null;
- /// <summary>
- /// 语音消息
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"voiceContent", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.VoiceContent voiceContent
- {
- get { return _voiceContent; }
- set { _voiceContent = value; }
- }
-
- private pomelo.ItemContent _itemContent = null;
- /// <summary>
- /// 装备道具
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"itemContent", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.ItemContent itemContent
- {
- get { return _itemContent; }
- set { _itemContent = value; }
- }
-
- private pomelo.MapContent _mapContent = null;
- /// <summary>
- /// 位置消息
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"mapContent", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.MapContent mapContent
- {
- get { return _mapContent; }
- set { _mapContent = value; }
- }
-
- private pomelo.TeamContent _teamContent = null;
- /// <summary>
- /// 队伍招募.
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"teamContent", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.TeamContent teamContent
- {
- get { return _teamContent; }
- set { _teamContent = value; }
- }
-
- private pomelo.GuildContent _guildContent = null;
- /// <summary>
- /// 公会招募.
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"guildContent", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.GuildContent guildContent
- {
- get { return _guildContent; }
- set { _guildContent = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SendChatRequest")]
- public partial class SendChatRequest : global::ProtoBuf.IExtensible
- {
- public SendChatRequest() {}
-
-
- private int _c2s_scope;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_scope", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int c2s_scope
- {
- get { return _c2s_scope; }
- set { _c2s_scope = value; }
- }
-
- private readonly global::System.Collections.Generic.List<pomelo.chat.ChatContent> _c2s_content = new global::System.Collections.Generic.List<pomelo.chat.ChatContent>();
- [global::ProtoBuf.ProtoMember(2, Name=@"c2s_content", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.chat.ChatContent> c2s_content
- {
- get { return _c2s_content; }
- }
-
-
- private string _c2s_acceptRoleId = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"c2s_acceptRoleId", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string c2s_acceptRoleId
- {
- get { return _c2s_acceptRoleId; }
- set { _c2s_acceptRoleId = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SendChatResponse")]
- public partial class SendChatResponse : global::ProtoBuf.IExtensible
- {
- public SendChatResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 聊天保存消息
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetSaveChatMsgRequest")]
- public partial class GetSaveChatMsgRequest : global::ProtoBuf.IExtensible
- {
- public GetSaveChatMsgRequest() {}
-
-
- private int _c2s_scope;
- /// <summary>
- /// 频道
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_scope", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int c2s_scope
- {
- get { return _c2s_scope; }
- set { _c2s_scope = value; }
- }
-
- private int _c2s_index;
- /// <summary>
- /// 消息index
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int c2s_index
- {
- get { return _c2s_index; }
- set { _c2s_index = value; }
- }
-
- private string _c2s_uid = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"c2s_uid", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string c2s_uid
- {
- get { return _c2s_uid; }
- set { _c2s_uid = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnChatPush")]
- public partial class OnChatPush : global::ProtoBuf.IExtensible
- {
- public OnChatPush() {}
-
-
- private int _s2c_scope;
- /// <summary>
- /// 频道类型(1:世界 2:工会|盟友 3:队伍 4:私聊 5:跨服 6:道友 7:系统 8:喇叭 9:队伍喊话|招募)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_scope", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_scope
- {
- get { return _s2c_scope; }
- set { _s2c_scope = value; }
- }
-
- private readonly global::System.Collections.Generic.List<pomelo.chat.ChatContent> _s2c_content = new global::System.Collections.Generic.List<pomelo.chat.ChatContent>();
- /// <summary>
- /// 消息内容list
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, Name=@"s2c_content", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.chat.ChatContent> s2c_content
- {
- get { return _s2c_content; }
- }
-
-
- private string _s2c_time = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_time", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_time
- {
- get { return _s2c_time; }
- set { _s2c_time = value; }
- }
-
- private int _s2c_sys = default(int);
- /// <summary>
- /// tips类型(0:飘字 1:带背景的提示 2:左下角 3:不带背景的提示 4:滚动提示 5:艺术字飘动 6:下方跑马灯)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_sys", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_sys
- {
- get { return _s2c_sys; }
- set { _s2c_sys = value; }
- }
-
- private int _s2c_index = default(int);
- /// <summary>
- /// s2c_scope = 跨服聊天中使用, 代表阵营, >0有效
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"s2c_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_index
- {
- get { return _s2c_index; }
- set { _s2c_index = value; }
- }
-
- private string _s2c_uid = "";
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"s2c_uid", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_uid
- {
- get { return _s2c_uid; }
- set { _s2c_uid = value; }
- }
-
- private pomelo.player.PlayerBasicChat _s2c_sendPlayer = null;
- /// <summary>
- /// 发送者
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"s2c_sendPlayer", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.player.PlayerBasicChat s2c_sendPlayer
- {
- get { return _s2c_sendPlayer; }
- set { _s2c_sendPlayer = value; }
- }
-
- private string _s2c_acceptRid = "";
- /// <summary>
- /// (私聊) 接受者id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"s2c_acceptRid", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_acceptRid
- {
- get { return _s2c_acceptRid; }
- set { _s2c_acceptRid = value; }
- }
-
- private bool _crossChatAllSer = default(bool);
- /// <summary>
- /// 跨服聊天发言者全/己按钮状态(true:全服;false:己服)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"crossChatAllSer", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool crossChatAllSer
- {
- get { return _crossChatAllSer; }
- set { _crossChatAllSer = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetSaveChatMsgResponse")]
- public partial class GetSaveChatMsgResponse : global::ProtoBuf.IExtensible
- {
- public GetSaveChatMsgResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private readonly global::System.Collections.Generic.List<pomelo.chat.OnChatPush> _s2c_data = new global::System.Collections.Generic.List<pomelo.chat.OnChatPush>();
- [global::ProtoBuf.ProtoMember(3, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.chat.OnChatPush> s2c_data
- {
- get { return _s2c_data; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnChatErrorPush")]
- public partial class OnChatErrorPush : global::ProtoBuf.IExtensible
- {
- public OnChatErrorPush() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 提示信息
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TipPush")]
- public partial class TipPush : global::ProtoBuf.IExtensible
- {
- public TipPush() {}
-
-
- private string _s2c_msg = "";
- /// <summary>
- /// 老版serverconfig内容,新版NoticeMsg是参数
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private int _s2c_type;
- /// <summary>
- /// 0 普通飘字, 1 新增的飘字
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"s2c_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_type
- {
- get { return _s2c_type; }
- set { _s2c_type = value; }
- }
-
- private int _s2c_id = default(int);
- /// <summary>
- /// 新版NoticeMsg中id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_id
- {
- get { return _s2c_id; }
- set { _s2c_id = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CrossChatSwitchButtonRequest")]
- public partial class CrossChatSwitchButtonRequest : global::ProtoBuf.IExtensible
- {
- public CrossChatSwitchButtonRequest() {}
-
-
- private bool _isAllServerChat;
- /// <summary>
- /// true:接受全服聊天推送 false:接受己服聊天推送
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"isAllServerChat", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public bool isAllServerChat
- {
- get { return _isAllServerChat; }
- set { _isAllServerChat = value; }
- }
-
- private int _optype = default(int);
- /// <summary>
- /// 1:获取按钮状态 2:设置按钮状态
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"optype", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int optype
- {
- get { return _optype; }
- set { _optype = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CrossChatSwitchButtonResponse")]
- public partial class CrossChatSwitchButtonResponse : global::ProtoBuf.IExtensible
- {
- public CrossChatSwitchButtonResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private bool _isAllServerChat;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"isAllServerChat", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public bool isAllServerChat
- {
- get { return _isAllServerChat; }
- set { _isAllServerChat = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- }
-
|