_guildShopHandler.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. // ***************************************************************************
  10. // * 作者= 马章勇
  11. // * 创建时间 = 2016-5-13
  12. // * 用途= 公会商店处理器
  13. // ***************************************************************************
  14. // Generated from: guildShopHandler.proto
  15. // Note: requires additional types generated from: item.proto
  16. // Note: requires additional types generated from: common.proto
  17. namespace pomelo.area
  18. {
  19. //---------------------------------------------------------------------------------------
  20. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGuildShopInfoRequest")]
  21. public partial class GetGuildShopInfoRequest : global::ProtoBuf.IExtensible
  22. {
  23. public GetGuildShopInfoRequest() {}
  24. private global::ProtoBuf.IExtension extensionObject;
  25. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  26. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  27. }
  28. //---------------------------------------------------------------------------------------
  29. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeShopItemRequest")]
  30. public partial class ExchangeShopItemRequest : global::ProtoBuf.IExtensible
  31. {
  32. public ExchangeShopItemRequest() {}
  33. private int _id = default(int);
  34. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  35. [global::System.ComponentModel.DefaultValue(default(int))]
  36. public int id
  37. {
  38. get { return _id; }
  39. set { _id = value; }
  40. }
  41. private global::ProtoBuf.IExtension extensionObject;
  42. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  43. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  44. }
  45. //---------------------------------------------------------------------------------------
  46. /// <summary>
  47. /// 货币类型
  48. /// </summary>
  49. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ShopMoneyInfo")]
  50. public partial class ShopMoneyInfo : global::ProtoBuf.IExtensible
  51. {
  52. public ShopMoneyInfo() {}
  53. private int _type;
  54. /// <summary>
  55. /// 货币类型 GuildShopMoneyType
  56. /// </summary>
  57. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  58. public int type
  59. {
  60. get { return _type; }
  61. set { _type = value; }
  62. }
  63. private int _value;
  64. /// <summary>
  65. /// 货币数量
  66. /// </summary>
  67. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  68. public int value
  69. {
  70. get { return _value; }
  71. set { _value = value; }
  72. }
  73. private global::ProtoBuf.IExtension extensionObject;
  74. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  75. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  76. }
  77. //---------------------------------------------------------------------------------------
  78. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ShopCondition")]
  79. public partial class ShopCondition : global::ProtoBuf.IExtensible
  80. {
  81. public ShopCondition() {}
  82. private int _type = default(int);
  83. /// <summary>
  84. /// 类型 GuildShopConditionType
  85. /// </summary>
  86. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  87. [global::System.ComponentModel.DefaultValue(default(int))]
  88. public int type
  89. {
  90. get { return _type; }
  91. set { _type = value; }
  92. }
  93. private int _number = default(int);
  94. /// <summary>
  95. /// 级别,点数等
  96. /// </summary>
  97. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  98. [global::System.ComponentModel.DefaultValue(default(int))]
  99. public int number
  100. {
  101. get { return _number; }
  102. set { _number = value; }
  103. }
  104. private global::ProtoBuf.IExtension extensionObject;
  105. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  106. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  107. }
  108. //---------------------------------------------------------------------------------------
  109. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeItem")]
  110. public partial class ExchangeItem : global::ProtoBuf.IExtensible
  111. {
  112. public ExchangeItem() {}
  113. private int _id = default(int);
  114. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  115. [global::System.ComponentModel.DefaultValue(default(int))]
  116. public int id
  117. {
  118. get { return _id; }
  119. set { _id = value; }
  120. }
  121. private string _itemShowName = "";
  122. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"itemShowName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  123. [global::System.ComponentModel.DefaultValue("")]
  124. public string itemShowName
  125. {
  126. get { return _itemShowName; }
  127. set { _itemShowName = value; }
  128. }
  129. private pomelo.item.MiniItem _item = null;
  130. /// <summary>
  131. /// 兑换的物品
  132. /// </summary>
  133. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"item", DataFormat = global::ProtoBuf.DataFormat.Default)]
  134. [global::System.ComponentModel.DefaultValue(null)]
  135. public pomelo.item.MiniItem item
  136. {
  137. get { return _item; }
  138. set { _item = value; }
  139. }
  140. private int _isBind = default(int);
  141. /// <summary>
  142. /// 获得后是否绑定
  143. /// </summary>
  144. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"isBind", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  145. [global::System.ComponentModel.DefaultValue(default(int))]
  146. public int isBind
  147. {
  148. get { return _isBind; }
  149. set { _isBind = value; }
  150. }
  151. private string _itemDes = "";
  152. /// <summary>
  153. /// 物品描述
  154. /// </summary>
  155. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"itemDes", DataFormat = global::ProtoBuf.DataFormat.Default)]
  156. [global::System.ComponentModel.DefaultValue("")]
  157. public string itemDes
  158. {
  159. get { return _itemDes; }
  160. set { _itemDes = value; }
  161. }
  162. private readonly global::System.Collections.Generic.List<pomelo.area.ShopMoneyInfo> _needMoney = new global::System.Collections.Generic.List<pomelo.area.ShopMoneyInfo>();
  163. /// <summary>
  164. /// 需要的货币
  165. /// </summary>
  166. [global::ProtoBuf.ProtoMember(6, Name=@"needMoney", DataFormat = global::ProtoBuf.DataFormat.Default)]
  167. public global::System.Collections.Generic.List<pomelo.area.ShopMoneyInfo> needMoney
  168. {
  169. get { return _needMoney; }
  170. }
  171. private int _state = default(int);
  172. /// <summary>
  173. /// 0:未刷新 1:刷新可购买 2:售罄
  174. /// </summary>
  175. [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  176. [global::System.ComponentModel.DefaultValue(default(int))]
  177. public int state
  178. {
  179. get { return _state; }
  180. set { _state = value; }
  181. }
  182. private readonly global::System.Collections.Generic.List<pomelo.area.ShopCondition> _condition = new global::System.Collections.Generic.List<pomelo.area.ShopCondition>();
  183. /// <summary>
  184. /// 需要的货币
  185. /// </summary>
  186. [global::ProtoBuf.ProtoMember(8, Name=@"condition", DataFormat = global::ProtoBuf.DataFormat.Default)]
  187. public global::System.Collections.Generic.List<pomelo.area.ShopCondition> condition
  188. {
  189. get { return _condition; }
  190. }
  191. private int _meetCondition = default(int);
  192. /// <summary>
  193. /// 是否满足兑换条件 0:不满足 1:满足
  194. /// </summary>
  195. [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"meetCondition", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  196. [global::System.ComponentModel.DefaultValue(default(int))]
  197. public int meetCondition
  198. {
  199. get { return _meetCondition; }
  200. set { _meetCondition = value; }
  201. }
  202. private global::ProtoBuf.IExtension extensionObject;
  203. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  204. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  205. }
  206. //---------------------------------------------------------------------------------------
  207. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ShopInfo")]
  208. public partial class ShopInfo : global::ProtoBuf.IExtensible
  209. {
  210. public ShopInfo() {}
  211. private readonly global::System.Collections.Generic.List<pomelo.area.ExchangeItem> _todayItems = new global::System.Collections.Generic.List<pomelo.area.ExchangeItem>();
  212. /// <summary>
  213. /// 今日刷新商品
  214. /// </summary>
  215. [global::ProtoBuf.ProtoMember(1, Name=@"todayItems", DataFormat = global::ProtoBuf.DataFormat.Default)]
  216. public global::System.Collections.Generic.List<pomelo.area.ExchangeItem> todayItems
  217. {
  218. get { return _todayItems; }
  219. }
  220. private readonly global::System.Collections.Generic.List<pomelo.area.ExchangeItem> _nextItems = new global::System.Collections.Generic.List<pomelo.area.ExchangeItem>();
  221. /// <summary>
  222. /// 下次可能刷新
  223. /// </summary>
  224. [global::ProtoBuf.ProtoMember(2, Name=@"nextItems", DataFormat = global::ProtoBuf.DataFormat.Default)]
  225. public global::System.Collections.Generic.List<pomelo.area.ExchangeItem> nextItems
  226. {
  227. get { return _nextItems; }
  228. }
  229. private readonly global::System.Collections.Generic.List<int> _refreshTime = new global::System.Collections.Generic.List<int>();
  230. /// <summary>
  231. /// 下次刷新剩余时间
  232. /// </summary>
  233. [global::ProtoBuf.ProtoMember(3, Name=@"refreshTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  234. public global::System.Collections.Generic.List<int> refreshTime
  235. {
  236. get { return _refreshTime; }
  237. }
  238. private global::ProtoBuf.IExtension extensionObject;
  239. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  240. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  241. }
  242. //---------------------------------------------------------------------------------------
  243. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGuildShopInfoResponse")]
  244. public partial class GetGuildShopInfoResponse : global::ProtoBuf.IExtensible
  245. {
  246. public GetGuildShopInfoResponse() {}
  247. private int _s2c_code;
  248. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  249. public int s2c_code
  250. {
  251. get { return _s2c_code; }
  252. set { _s2c_code = value; }
  253. }
  254. private string _s2c_msg = "";
  255. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  256. [global::System.ComponentModel.DefaultValue("")]
  257. public string s2c_msg
  258. {
  259. get { return _s2c_msg; }
  260. set { _s2c_msg = value; }
  261. }
  262. private pomelo.area.ShopInfo _s2c_shopInfo = null;
  263. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_shopInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  264. [global::System.ComponentModel.DefaultValue(null)]
  265. public pomelo.area.ShopInfo s2c_shopInfo
  266. {
  267. get { return _s2c_shopInfo; }
  268. set { _s2c_shopInfo = value; }
  269. }
  270. private global::ProtoBuf.IExtension extensionObject;
  271. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  272. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  273. }
  274. //---------------------------------------------------------------------------------------
  275. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeShopItemResponse")]
  276. public partial class ExchangeShopItemResponse : global::ProtoBuf.IExtensible
  277. {
  278. public ExchangeShopItemResponse() {}
  279. private int _s2c_code;
  280. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  281. public int s2c_code
  282. {
  283. get { return _s2c_code; }
  284. set { _s2c_code = value; }
  285. }
  286. private string _s2c_msg = "";
  287. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  288. [global::System.ComponentModel.DefaultValue("")]
  289. public string s2c_msg
  290. {
  291. get { return _s2c_msg; }
  292. set { _s2c_msg = value; }
  293. }
  294. private int _s2c_id = default(int);
  295. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  296. [global::System.ComponentModel.DefaultValue(default(int))]
  297. public int s2c_id
  298. {
  299. get { return _s2c_id; }
  300. set { _s2c_id = value; }
  301. }
  302. private int _s2c_state = default(int);
  303. /// <summary>
  304. /// 兑换成功返回新状态
  305. /// </summary>
  306. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  307. [global::System.ComponentModel.DefaultValue(default(int))]
  308. public int s2c_state
  309. {
  310. get { return _s2c_state; }
  311. set { _s2c_state = value; }
  312. }
  313. private global::ProtoBuf.IExtension extensionObject;
  314. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  315. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  316. }
  317. //---------------------------------------------------------------------------------------
  318. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ShopRefreshPush")]
  319. public partial class ShopRefreshPush : global::ProtoBuf.IExtensible
  320. {
  321. public ShopRefreshPush() {}
  322. private int _s2c_code;
  323. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  324. public int s2c_code
  325. {
  326. get { return _s2c_code; }
  327. set { _s2c_code = value; }
  328. }
  329. private string _s2c_msg = "";
  330. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  331. [global::System.ComponentModel.DefaultValue("")]
  332. public string s2c_msg
  333. {
  334. get { return _s2c_msg; }
  335. set { _s2c_msg = value; }
  336. }
  337. private int _type = default(int);
  338. /// <summary>
  339. /// 1:商店刷新
  340. /// </summary>
  341. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  342. [global::System.ComponentModel.DefaultValue(default(int))]
  343. public int type
  344. {
  345. get { return _type; }
  346. set { _type = value; }
  347. }
  348. private global::ProtoBuf.IExtension extensionObject;
  349. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  350. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  351. }
  352. }