_saleHandler.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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-01-22
  12. // * 用途= 购买和回购处理器
  13. // ***************************************************************************
  14. // Generated from: saleHandler.proto
  15. // Note: requires additional types generated from: item.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BuyItem")]
  20. public partial class BuyItem : global::ProtoBuf.IExtensible
  21. {
  22. public BuyItem() {}
  23. private int _typeId = default(int);
  24. /// <summary>
  25. /// 分类ID
  26. /// </summary>
  27. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  28. [global::System.ComponentModel.DefaultValue(default(int))]
  29. public int typeId
  30. {
  31. get { return _typeId; }
  32. set { _typeId = value; }
  33. }
  34. private int _itemId = default(int);
  35. /// <summary>
  36. /// 编号ID
  37. /// </summary>
  38. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  39. [global::System.ComponentModel.DefaultValue(default(int))]
  40. public int itemId
  41. {
  42. get { return _itemId; }
  43. set { _itemId = value; }
  44. }
  45. private string _itemShowName = "";
  46. /// <summary>
  47. /// 物品显示名称
  48. /// </summary>
  49. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"itemShowName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  50. [global::System.ComponentModel.DefaultValue("")]
  51. public string itemShowName
  52. {
  53. get { return _itemShowName; }
  54. set { _itemShowName = value; }
  55. }
  56. private pomelo.item.MiniItem _item = null;
  57. /// <summary>
  58. /// 物品信息
  59. /// </summary>
  60. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"item", DataFormat = global::ProtoBuf.DataFormat.Default)]
  61. [global::System.ComponentModel.DefaultValue(null)]
  62. public pomelo.item.MiniItem item
  63. {
  64. get { return _item; }
  65. set { _item = value; }
  66. }
  67. private int _moneyType = default(int);
  68. /// <summary>
  69. /// 货币类型 1.金币 2.金票 3.钻石
  70. /// </summary>
  71. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"moneyType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  72. [global::System.ComponentModel.DefaultValue(default(int))]
  73. public int moneyType
  74. {
  75. get { return _moneyType; }
  76. set { _moneyType = value; }
  77. }
  78. private int _needMoney = default(int);
  79. /// <summary>
  80. /// 需要货币
  81. /// </summary>
  82. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"needMoney", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  83. [global::System.ComponentModel.DefaultValue(default(int))]
  84. public int needMoney
  85. {
  86. get { return _needMoney; }
  87. set { _needMoney = value; }
  88. }
  89. private int _maxGroupCount = default(int);
  90. /// <summary>
  91. /// 最大堆叠数量 =1.不可叠加 >1.可以叠加
  92. /// </summary>
  93. [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"maxGroupCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  94. [global::System.ComponentModel.DefaultValue(default(int))]
  95. public int maxGroupCount
  96. {
  97. get { return _maxGroupCount; }
  98. set { _maxGroupCount = value; }
  99. }
  100. private global::ProtoBuf.IExtension extensionObject;
  101. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  102. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  103. }
  104. //---------------------------------------------------------------------------------------
  105. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SellGrid")]
  106. public partial class SellGrid : global::ProtoBuf.IExtensible
  107. {
  108. public SellGrid() {}
  109. private int _index;
  110. /// <summary>
  111. /// 格子索引
  112. /// </summary>
  113. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  114. public int index
  115. {
  116. get { return _index; }
  117. set { _index = value; }
  118. }
  119. private int _num;
  120. /// <summary>
  121. /// 出售数量
  122. /// </summary>
  123. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  124. public int num
  125. {
  126. get { return _num; }
  127. set { _num = value; }
  128. }
  129. private global::ProtoBuf.IExtension extensionObject;
  130. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  131. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  132. }
  133. //---------------------------------------------------------------------------------------
  134. /// <summary>
  135. /// 购买界面
  136. /// </summary>
  137. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BuyPageRequest")]
  138. public partial class BuyPageRequest : global::ProtoBuf.IExtensible
  139. {
  140. public BuyPageRequest() {}
  141. private readonly global::System.Collections.Generic.List<int> _c2s_sellIndex = new global::System.Collections.Generic.List<int>();
  142. [global::ProtoBuf.ProtoMember(1, Name=@"c2s_sellIndex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  143. public global::System.Collections.Generic.List<int> c2s_sellIndex
  144. {
  145. get { return _c2s_sellIndex; }
  146. }
  147. private global::ProtoBuf.IExtension extensionObject;
  148. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  149. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  150. }
  151. //---------------------------------------------------------------------------------------
  152. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BuyPageResponse")]
  153. public partial class BuyPageResponse : global::ProtoBuf.IExtensible
  154. {
  155. public BuyPageResponse() {}
  156. private int _s2c_code;
  157. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  158. public int s2c_code
  159. {
  160. get { return _s2c_code; }
  161. set { _s2c_code = value; }
  162. }
  163. private string _s2c_msg = "";
  164. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  165. [global::System.ComponentModel.DefaultValue("")]
  166. public string s2c_msg
  167. {
  168. get { return _s2c_msg; }
  169. set { _s2c_msg = value; }
  170. }
  171. private readonly global::System.Collections.Generic.List<pomelo.area.BuyItem> _s2c_buyItems = new global::System.Collections.Generic.List<pomelo.area.BuyItem>();
  172. /// <summary>
  173. /// 购买物品列表
  174. /// </summary>
  175. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_buyItems", DataFormat = global::ProtoBuf.DataFormat.Default)]
  176. public global::System.Collections.Generic.List<pomelo.area.BuyItem> s2c_buyItems
  177. {
  178. get { return _s2c_buyItems; }
  179. }
  180. private global::ProtoBuf.IExtension extensionObject;
  181. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  182. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  183. }
  184. //---------------------------------------------------------------------------------------
  185. /// <summary>
  186. /// 购买
  187. /// </summary>
  188. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BuyItemRequest")]
  189. public partial class BuyItemRequest : global::ProtoBuf.IExtensible
  190. {
  191. public BuyItemRequest() {}
  192. private int _c2s_typeId;
  193. /// <summary>
  194. /// 分类ID
  195. /// </summary>
  196. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  197. public int c2s_typeId
  198. {
  199. get { return _c2s_typeId; }
  200. set { _c2s_typeId = value; }
  201. }
  202. private int _c2s_itemId;
  203. /// <summary>
  204. /// 编号ID
  205. /// </summary>
  206. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  207. public int c2s_itemId
  208. {
  209. get { return _c2s_itemId; }
  210. set { _c2s_itemId = value; }
  211. }
  212. private int _c2s_num;
  213. /// <summary>
  214. /// 数量
  215. /// </summary>
  216. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  217. public int c2s_num
  218. {
  219. get { return _c2s_num; }
  220. set { _c2s_num = value; }
  221. }
  222. private global::ProtoBuf.IExtension extensionObject;
  223. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  224. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  225. }
  226. //---------------------------------------------------------------------------------------
  227. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BuyItemResponse")]
  228. public partial class BuyItemResponse : global::ProtoBuf.IExtensible
  229. {
  230. public BuyItemResponse() {}
  231. private int _s2c_code;
  232. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  233. public int s2c_code
  234. {
  235. get { return _s2c_code; }
  236. set { _s2c_code = value; }
  237. }
  238. private string _s2c_msg = "";
  239. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  240. [global::System.ComponentModel.DefaultValue("")]
  241. public string s2c_msg
  242. {
  243. get { return _s2c_msg; }
  244. set { _s2c_msg = value; }
  245. }
  246. private global::ProtoBuf.IExtension extensionObject;
  247. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  248. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  249. }
  250. //---------------------------------------------------------------------------------------
  251. /// <summary>
  252. /// 使用金币通过itemCode自动购买
  253. /// </summary>
  254. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AutoBuyItemByCodeRequest")]
  255. public partial class AutoBuyItemByCodeRequest : global::ProtoBuf.IExtensible
  256. {
  257. public AutoBuyItemByCodeRequest() {}
  258. private readonly global::System.Collections.Generic.List<int> _c2s_typeId = new global::System.Collections.Generic.List<int>();
  259. /// <summary>
  260. /// 分类ID
  261. /// </summary>
  262. [global::ProtoBuf.ProtoMember(1, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  263. public global::System.Collections.Generic.List<int> c2s_typeId
  264. {
  265. get { return _c2s_typeId; }
  266. }
  267. private string _c2s_itemCode;
  268. /// <summary>
  269. /// 编号ID
  270. /// </summary>
  271. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_itemCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
  272. public string c2s_itemCode
  273. {
  274. get { return _c2s_itemCode; }
  275. set { _c2s_itemCode = value; }
  276. }
  277. private int _c2s_num;
  278. /// <summary>
  279. /// 数量
  280. /// </summary>
  281. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  282. public int c2s_num
  283. {
  284. get { return _c2s_num; }
  285. set { _c2s_num = value; }
  286. }
  287. private global::ProtoBuf.IExtension extensionObject;
  288. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  289. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  290. }
  291. //---------------------------------------------------------------------------------------
  292. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AutoBuyItemByCodeResponse")]
  293. public partial class AutoBuyItemByCodeResponse : global::ProtoBuf.IExtensible
  294. {
  295. public AutoBuyItemByCodeResponse() {}
  296. private int _s2c_code;
  297. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  298. public int s2c_code
  299. {
  300. get { return _s2c_code; }
  301. set { _s2c_code = value; }
  302. }
  303. private string _s2c_msg = "";
  304. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  305. [global::System.ComponentModel.DefaultValue("")]
  306. public string s2c_msg
  307. {
  308. get { return _s2c_msg; }
  309. set { _s2c_msg = value; }
  310. }
  311. private int _s2c_notEnoughGold = default(int);
  312. /// <summary>
  313. /// 是否金币不足 1:不足 0:足
  314. /// </summary>
  315. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_notEnoughGold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  316. [global::System.ComponentModel.DefaultValue(default(int))]
  317. public int s2c_notEnoughGold
  318. {
  319. get { return _s2c_notEnoughGold; }
  320. set { _s2c_notEnoughGold = value; }
  321. }
  322. private int _s2c_needGold = default(int);
  323. /// <summary>
  324. /// 需要金币
  325. /// </summary>
  326. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_needGold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  327. [global::System.ComponentModel.DefaultValue(default(int))]
  328. public int s2c_needGold
  329. {
  330. get { return _s2c_needGold; }
  331. set { _s2c_needGold = value; }
  332. }
  333. private global::ProtoBuf.IExtension extensionObject;
  334. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  335. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  336. }
  337. //---------------------------------------------------------------------------------------
  338. /// <summary>
  339. /// 出售
  340. /// </summary>
  341. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SellItemsRequest")]
  342. public partial class SellItemsRequest : global::ProtoBuf.IExtensible
  343. {
  344. public SellItemsRequest() {}
  345. private readonly global::System.Collections.Generic.List<pomelo.area.SellGrid> _c2s_sellGrids = new global::System.Collections.Generic.List<pomelo.area.SellGrid>();
  346. /// <summary>
  347. /// 出售列表
  348. /// </summary>
  349. [global::ProtoBuf.ProtoMember(1, Name=@"c2s_sellGrids", DataFormat = global::ProtoBuf.DataFormat.Default)]
  350. public global::System.Collections.Generic.List<pomelo.area.SellGrid> c2s_sellGrids
  351. {
  352. get { return _c2s_sellGrids; }
  353. }
  354. private global::ProtoBuf.IExtension extensionObject;
  355. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  356. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  357. }
  358. //---------------------------------------------------------------------------------------
  359. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SellItemsResponse")]
  360. public partial class SellItemsResponse : global::ProtoBuf.IExtensible
  361. {
  362. public SellItemsResponse() {}
  363. private int _s2c_code;
  364. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  365. public int s2c_code
  366. {
  367. get { return _s2c_code; }
  368. set { _s2c_code = value; }
  369. }
  370. private string _s2c_msg = "";
  371. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  372. [global::System.ComponentModel.DefaultValue("")]
  373. public string s2c_msg
  374. {
  375. get { return _s2c_msg; }
  376. set { _s2c_msg = value; }
  377. }
  378. private global::ProtoBuf.IExtension extensionObject;
  379. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  380. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  381. }
  382. //---------------------------------------------------------------------------------------
  383. /// <summary>
  384. /// 回购
  385. /// </summary>
  386. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RebuyItemRequest")]
  387. public partial class RebuyItemRequest : global::ProtoBuf.IExtensible
  388. {
  389. public RebuyItemRequest() {}
  390. private int _c2s_gridIndex;
  391. /// <summary>
  392. /// 格子索引
  393. /// </summary>
  394. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_gridIndex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  395. public int c2s_gridIndex
  396. {
  397. get { return _c2s_gridIndex; }
  398. set { _c2s_gridIndex = value; }
  399. }
  400. private int _c2s_num;
  401. /// <summary>
  402. /// 数量
  403. /// </summary>
  404. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  405. public int c2s_num
  406. {
  407. get { return _c2s_num; }
  408. set { _c2s_num = value; }
  409. }
  410. private global::ProtoBuf.IExtension extensionObject;
  411. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  412. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  413. }
  414. //---------------------------------------------------------------------------------------
  415. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RebuyItemResponse")]
  416. public partial class RebuyItemResponse : global::ProtoBuf.IExtensible
  417. {
  418. public RebuyItemResponse() {}
  419. private int _s2c_code;
  420. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  421. public int s2c_code
  422. {
  423. get { return _s2c_code; }
  424. set { _s2c_code = value; }
  425. }
  426. private string _s2c_msg = "";
  427. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  428. [global::System.ComponentModel.DefaultValue("")]
  429. public string s2c_msg
  430. {
  431. get { return _s2c_msg; }
  432. set { _s2c_msg = value; }
  433. }
  434. private global::ProtoBuf.IExtension extensionObject;
  435. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  436. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  437. }
  438. }