//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // *************************************************************************** // * 作者= 马章勇 // * 创建时间= 2016-1-20 // * 用途= 兑换处理器 // *************************************************************************** // Generated from: exchangeHandler.proto // Note: requires additional types generated from: item.proto namespace pomelo.area { //--------------------------------------------------------------------------------------- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetExchangeLabelRequest")] public partial class GetExchangeLabelRequest : global::ProtoBuf.IExtensible { public GetExchangeLabelRequest() {} private string _c2s_npcId; [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)] public string c2s_npcId { get { return _c2s_npcId; } set { _c2s_npcId = 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=@"GetExchangeListRequest")] public partial class GetExchangeListRequest : global::ProtoBuf.IExtensible { public GetExchangeListRequest() {} private string _c2s_npcId; [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)] public string c2s_npcId { get { return _c2s_npcId; } set { _c2s_npcId = value; } } private int _c2s_typeId; /// /// 标签id /// [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int c2s_typeId { get { return _c2s_typeId; } set { _c2s_typeId = 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=@"ExchangeItemRequest")] public partial class ExchangeItemRequest : global::ProtoBuf.IExtensible { public ExchangeItemRequest() {} private int _c2s_typeId; [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int c2s_typeId { get { return _c2s_typeId; } set { _c2s_typeId = value; } } private int _c2s_itemId; [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int c2s_itemId { get { return _c2s_itemId; } set { _c2s_itemId = value; } } private int _c2s_num; /// /// 数量 /// [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int c2s_num { get { return _c2s_num; } set { _c2s_num = value; } } private string _c2s_npcId = ""; [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue("")] public string c2s_npcId { get { return _c2s_npcId; } set { _c2s_npcId = 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=@"Condition")] public partial class Condition : global::ProtoBuf.IExtensible { public Condition() {} private pomelo.area.ConditionType _type = pomelo.area.ConditionType.CONDITION_LEVEL; /// /// 类型 /// [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(pomelo.area.ConditionType.CONDITION_LEVEL)] public pomelo.area.ConditionType type { get { return _type; } set { _type = value; } } private int _number = default(int); /// /// 级别,点数等 /// [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int number { get { return _number; } set { _number = 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=@"MoneyInfo")] public partial class MoneyInfo : global::ProtoBuf.IExtensible { public MoneyInfo() {} private pomelo.area.MoneyType _type; /// /// 货币类型 /// [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public pomelo.area.MoneyType type { get { return _type; } set { _type = value; } } private int _value; /// /// 货币数量 /// [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int value { get { return _value; } set { _value = 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=@"ExchangeInfo")] public partial class ExchangeInfo : global::ProtoBuf.IExtensible { public ExchangeInfo() {} private int _typeId = default(int); /// /// 类型Id /// [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int typeId { get { return _typeId; } set { _typeId = value; } } private int _itemId = default(int); /// /// 编号Id /// [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int itemId { get { return _itemId; } set { _itemId = value; } } private string _itemShowName = ""; /// /// 物品显示名称 /// [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"itemShowName", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue("")] public string itemShowName { get { return _itemShowName; } set { _itemShowName = value; } } private pomelo.item.MiniItem _item = null; /// /// 兑换的物品 /// [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"item", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue(null)] public pomelo.item.MiniItem item { get { return _item; } set { _item = value; } } private int _scoreRatio = default(int); /// /// 获得装备基础评分 /// [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"scoreRatio", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int scoreRatio { get { return _scoreRatio; } set { _scoreRatio = value; } } private string _itemDes = ""; /// /// 物品描述 /// [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"itemDes", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue("")] public string itemDes { get { return _itemDes; } set { _itemDes = value; } } private readonly global::System.Collections.Generic.List _condition = new global::System.Collections.Generic.List(); /// /// 前提条件 /// [global::ProtoBuf.ProtoMember(7, Name=@"condition", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List condition { get { return _condition; } } private readonly global::System.Collections.Generic.List _needMoney = new global::System.Collections.Generic.List(); /// /// 需要的货币 /// [global::ProtoBuf.ProtoMember(8, Name=@"needMoney", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List needMoney { get { return _needMoney; } } private readonly global::System.Collections.Generic.List _needItem = new global::System.Collections.Generic.List(); /// /// 需要的道具 /// [global::ProtoBuf.ProtoMember(9, Name=@"needItem", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List needItem { get { return _needItem; } } private int _meetCondition = default(int); /// /// 是否满足兑换条件 /// [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"meetCondition", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int meetCondition { get { return _meetCondition; } set { _meetCondition = value; } } private int _maxExchangeNum = default(int); /// /// 可兑换的数量 /// [global::ProtoBuf.ProtoMember(11, IsRequired = false, Name=@"maxExchangeNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int maxExchangeNum { get { return _maxExchangeNum; } set { _maxExchangeNum = value; } } private int _state = default(int); /// /// 0:保留 1:正常 2:售罄 /// [global::ProtoBuf.ProtoMember(12, IsRequired = false, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int state { get { return _state; } set { _state = 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=@"label")] public partial class label : global::ProtoBuf.IExtensible { public label() {} private int _typeId = default(int); /// /// 兑换类型 /// [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] [global::System.ComponentModel.DefaultValue(default(int))] public int typeId { get { return _typeId; } set { _typeId = value; } } private string _typeName = ""; /// /// 类型标签名字 /// [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"typeName", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue("")] public string typeName { get { return _typeName; } set { _typeName = 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=@"ExchangeData")] public partial class ExchangeData : global::ProtoBuf.IExtensible { public ExchangeData() {} private readonly global::System.Collections.Generic.List _exchangeList = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(1, Name=@"exchangeList", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List exchangeList { get { return _exchangeList; } } 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=@"GetExchangeLabelResponse")] public partial class GetExchangeLabelResponse : global::ProtoBuf.IExtensible { public GetExchangeLabelResponse() {} 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_labelList = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(3, Name=@"s2c_labelList", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List s2c_labelList { get { return _s2c_labelList; } } 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=@"GetExchangeListResponse")] public partial class GetExchangeListResponse : global::ProtoBuf.IExtensible { public GetExchangeListResponse() {} 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 pomelo.area.ExchangeData _s2c_data = null; [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue(null)] public pomelo.area.ExchangeData s2c_data { get { return _s2c_data; } set { _s2c_data = 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=@"ExchangeItemResponse")] public partial class ExchangeItemResponse : global::ProtoBuf.IExtensible { public ExchangeItemResponse() {} 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 pomelo.area.ExchangeData _s2c_data = null; [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue(null)] public pomelo.area.ExchangeData s2c_data { get { return _s2c_data; } set { _s2c_data = 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=@"AllyFightExchangeRequest")] public partial class AllyFightExchangeRequest : global::ProtoBuf.IExtensible { public AllyFightExchangeRequest() {} private string _c2s_npcId; [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)] public string c2s_npcId { get { return _c2s_npcId; } set { _c2s_npcId = value; } } private int _c2s_typeId; /// /// 标签id /// [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public int c2s_typeId { get { return _c2s_typeId; } set { _c2s_typeId = 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=@"AllyFightExchangeResponse")] public partial class AllyFightExchangeResponse : global::ProtoBuf.IExtensible { public AllyFightExchangeResponse() {} 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 pomelo.area.ExchangeData _s2c_data = null; [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)] [global::System.ComponentModel.DefaultValue(null)] public pomelo.area.ExchangeData s2c_data { get { return _s2c_data; } set { _s2c_data = value; } } private global::ProtoBuf.IExtension extensionObject; global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } } //--------------------------------------------------------------------------------------- [global::ProtoBuf.ProtoContract(Name=@"ConditionType")] public enum ConditionType { /// /// 需要等级 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_LEVEL", Value=1)] CONDITION_LEVEL = 1, /// /// 需要阶级 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_UP_REQ", Value=2)] CONDITION_UP_REQ = 2, /// /// 需要vip等级 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_VIP_LEVEL", Value=3)] CONDITION_VIP_LEVEL = 3, /// /// 需要阵营 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_RACE", Value=4)] CONDITION_RACE = 4, /// /// 需要阵营声望等级 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_RACE_CLASS", Value=5)] CONDITION_RACE_CLASS = 5, /// /// 需要竞技场点数 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_ARENA_SCORE", Value=6)] CONDITION_ARENA_SCORE = 6, /// /// 需要工会荣誉 /// [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_GUILD_HONOR", Value=7)] CONDITION_GUILD_HONOR = 7 } //--------------------------------------------------------------------------------------- [global::ProtoBuf.ProtoContract(Name=@"MoneyType")] public enum MoneyType { /// /// 金币 /// [global::ProtoBuf.ProtoEnum(Name=@"MT_GOLD", Value=1)] MT_GOLD = 1, /// /// 钻石 /// [global::ProtoBuf.ProtoEnum(Name=@"MT_DIAMOND", Value=2)] MT_DIAMOND = 2, /// /// 金票 /// [global::ProtoBuf.ProtoEnum(Name=@"MT_TICKET", Value=3)] MT_TICKET = 3, /// /// 消费积分 /// [global::ProtoBuf.ProtoEnum(Name=@"MT_FEE_POINT", Value=4)] MT_FEE_POINT = 4, /// /// 君王宝藏积分 /// [global::ProtoBuf.ProtoEnum(Name=@"MT_TREASURE_POINT", Value=8)] MT_TREASURE_POINT = 8 } }