//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// ***************************************************************************
// * 作者: 曾振东
// * 创建时间: 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
{
//---------------------------------------------------------------------------------------
///
/// 聊天内容
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatContent")]
public partial class ChatContent : global::ProtoBuf.IExtensible
{
public ChatContent() {}
private int _sortId;
///
/// 顺序id
///
[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;
///
/// 消息类型(0:普通消息 1:表情 2:语音消息 3:装备道具 4:位置消息 5:队伍招募 6:掷点 7:成魔)
///
[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 = "";
///
/// 普通消息内容/表情code
///
[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;
///
/// 语音消息
///
[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;
///
/// 装备道具
///
[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;
///
/// 位置消息
///
[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;
///
/// 队伍招募.
///
[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;
///
/// 公会招募.
///
[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 _c2s_content = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(2, Name=@"c2s_content", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List 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); }
}
//---------------------------------------------------------------------------------------
///
/// 聊天保存消息
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetSaveChatMsgRequest")]
public partial class GetSaveChatMsgRequest : global::ProtoBuf.IExtensible
{
public GetSaveChatMsgRequest() {}
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 int _c2s_index;
///
/// 消息index
///
[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;
///
/// 频道类型(1:世界 2:工会|盟友 3:队伍 4:私聊 5:跨服 6:道友 7:系统 8:喇叭 9:队伍喊话|招募)
///
[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 _s2c_content = new global::System.Collections.Generic.List();
///
/// 消息内容list
///
[global::ProtoBuf.ProtoMember(2, Name=@"s2c_content", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List 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);
///
/// tips类型(0:飘字 1:带背景的提示 2:左下角 3:不带背景的提示 4:滚动提示 5:艺术字飘动 6:下方跑马灯)
///
[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);
///
/// s2c_scope = 跨服聊天中使用, 代表阵营, >0有效
///
[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;
///
/// 发送者
///
[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 = "";
///
/// (私聊) 接受者id
///
[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);
///
/// 跨服聊天发言者全/己按钮状态(true:全服;false:己服)
///
[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 _s2c_data = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(3, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List 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); }
}
//---------------------------------------------------------------------------------------
///
/// 提示信息
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TipPush")]
public partial class TipPush : global::ProtoBuf.IExtensible
{
public TipPush() {}
private string _s2c_msg = "";
///
/// 老版serverconfig内容,新版NoticeMsg是参数
///
[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;
///
/// 0 普通飘字, 1 新增的飘字
///
[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);
///
/// 新版NoticeMsg中id
///
[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;
///
/// true:接受全服聊天推送 false:接受己服聊天推送
///
[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);
///
/// 1:获取按钮状态 2:设置按钮状态
///
[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); }
}
}