_redPacketHandler.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  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. // * 创建时间= 2018-03-05
  12. // * 用途= 红包
  13. // ***************************************************************************
  14. // Generated from: redPacketHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. namespace pomelo.redpacket
  17. {
  18. //---------------------------------------------------------------------------------------
  19. /// <summary>
  20. /// 获得者信息
  21. /// </summary>
  22. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetcherInfo")]
  23. public partial class FetcherInfo : global::ProtoBuf.IExtensible
  24. {
  25. public FetcherInfo() {}
  26. private string _fetcherId;
  27. /// <summary>
  28. /// 玩家id
  29. /// </summary>
  30. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"fetcherId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  31. public string fetcherId
  32. {
  33. get { return _fetcherId; }
  34. set { _fetcherId = value; }
  35. }
  36. private string _fetcherName;
  37. /// <summary>
  38. /// 姓名
  39. /// </summary>
  40. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"fetcherName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  41. public string fetcherName
  42. {
  43. get { return _fetcherName; }
  44. set { _fetcherName = value; }
  45. }
  46. private int _fetcherValue;
  47. /// <summary>
  48. /// 获得数量
  49. /// </summary>
  50. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"fetcherValue", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  51. public int fetcherValue
  52. {
  53. get { return _fetcherValue; }
  54. set { _fetcherValue = value; }
  55. }
  56. private global::ProtoBuf.IExtension extensionObject;
  57. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  58. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  59. }
  60. //---------------------------------------------------------------------------------------
  61. /// <summary>
  62. /// 红包信息
  63. /// </summary>
  64. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RedPacketInfo")]
  65. public partial class RedPacketInfo : global::ProtoBuf.IExtensible
  66. {
  67. public RedPacketInfo() {}
  68. private string _id;
  69. /// <summary>
  70. /// 红包id
  71. /// </summary>
  72. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
  73. public string id
  74. {
  75. get { return _id; }
  76. set { _id = value; }
  77. }
  78. private int _count;
  79. /// <summary>
  80. /// 红包个数
  81. /// </summary>
  82. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  83. public int count
  84. {
  85. get { return _count; }
  86. set { _count = value; }
  87. }
  88. private int _totalNum;
  89. /// <summary>
  90. /// 红包总额(这里指发送者花费的元宝)
  91. /// </summary>
  92. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"totalNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  93. public int totalNum
  94. {
  95. get { return _totalNum; }
  96. set { _totalNum = value; }
  97. }
  98. private int _channelType;
  99. /// <summary>
  100. /// 0世界红包 1仙盟红包
  101. /// </summary>
  102. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"channelType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  103. public int channelType
  104. {
  105. get { return _channelType; }
  106. set { _channelType = value; }
  107. }
  108. private int _fetchType;
  109. /// <summary>
  110. /// 0口令红包 1普通红包
  111. /// </summary>
  112. [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"fetchType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  113. public int fetchType
  114. {
  115. get { return _fetchType; }
  116. set { _fetchType = value; }
  117. }
  118. private int _benifitType;
  119. /// <summary>
  120. /// 0元宝红包 1银币红包
  121. /// </summary>
  122. [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"benifitType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  123. public int benifitType
  124. {
  125. get { return _benifitType; }
  126. set { _benifitType = value; }
  127. }
  128. private readonly global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo> _fetcherList = new global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo>();
  129. /// <summary>
  130. /// 所有抢到红包的玩家
  131. /// </summary>
  132. [global::ProtoBuf.ProtoMember(7, Name=@"fetcherList", DataFormat = global::ProtoBuf.DataFormat.Default)]
  133. public global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo> fetcherList
  134. {
  135. get { return _fetcherList; }
  136. }
  137. private string _providerId = "";
  138. /// <summary>
  139. /// 主人id
  140. /// </summary>
  141. [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"providerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  142. [global::System.ComponentModel.DefaultValue("")]
  143. public string providerId
  144. {
  145. get { return _providerId; }
  146. set { _providerId = value; }
  147. }
  148. private string _providerName;
  149. /// <summary>
  150. /// 主人姓名
  151. /// </summary>
  152. [global::ProtoBuf.ProtoMember(9, IsRequired = true, Name=@"providerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  153. public string providerName
  154. {
  155. get { return _providerName; }
  156. set { _providerName = value; }
  157. }
  158. private string _message = "";
  159. /// <summary>
  160. /// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1且state为1或2时,表示寄语,否则无此字段
  161. /// </summary>
  162. [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
  163. [global::System.ComponentModel.DefaultValue("")]
  164. public string message
  165. {
  166. get { return _message; }
  167. set { _message = value; }
  168. }
  169. private long _dispatchTimestamp;
  170. /// <summary>
  171. /// 红包创建时间戳
  172. /// </summary>
  173. [global::ProtoBuf.ProtoMember(11, IsRequired = true, Name=@"dispatchTimestamp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  174. public long dispatchTimestamp
  175. {
  176. get { return _dispatchTimestamp; }
  177. set { _dispatchTimestamp = value; }
  178. }
  179. private global::ProtoBuf.IExtension extensionObject;
  180. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  181. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  182. }
  183. //---------------------------------------------------------------------------------------
  184. /// <summary>
  185. /// 获取所有红包列表
  186. /// </summary>
  187. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRedPacketListRequest")]
  188. public partial class GetRedPacketListRequest : global::ProtoBuf.IExtensible
  189. {
  190. public GetRedPacketListRequest() {}
  191. private global::ProtoBuf.IExtension extensionObject;
  192. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  193. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  194. }
  195. //---------------------------------------------------------------------------------------
  196. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRedPacketListResponse")]
  197. public partial class GetRedPacketListResponse : global::ProtoBuf.IExtensible
  198. {
  199. public GetRedPacketListResponse() {}
  200. private int _s2c_code;
  201. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  202. public int s2c_code
  203. {
  204. get { return _s2c_code; }
  205. set { _s2c_code = value; }
  206. }
  207. private string _s2c_msg = "";
  208. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  209. [global::System.ComponentModel.DefaultValue("")]
  210. public string s2c_msg
  211. {
  212. get { return _s2c_msg; }
  213. set { _s2c_msg = value; }
  214. }
  215. private readonly global::System.Collections.Generic.List<pomelo.redpacket.RedPacketInfo> _redPacketInfo = new global::System.Collections.Generic.List<pomelo.redpacket.RedPacketInfo>();
  216. [global::ProtoBuf.ProtoMember(3, Name=@"redPacketInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  217. public global::System.Collections.Generic.List<pomelo.redpacket.RedPacketInfo> redPacketInfo
  218. {
  219. get { return _redPacketInfo; }
  220. }
  221. private global::ProtoBuf.IExtension extensionObject;
  222. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  223. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  224. }
  225. //---------------------------------------------------------------------------------------
  226. /// <summary>
  227. /// 发红包
  228. /// </summary>
  229. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DispatchRedPacketRequest")]
  230. public partial class DispatchRedPacketRequest : global::ProtoBuf.IExtensible
  231. {
  232. public DispatchRedPacketRequest() {}
  233. private int _count;
  234. /// <summary>
  235. /// 红包数量
  236. /// </summary>
  237. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  238. public int count
  239. {
  240. get { return _count; }
  241. set { _count = value; }
  242. }
  243. private int _totalNum;
  244. /// <summary>
  245. /// 红包总额(这里指发送者花费的元宝)
  246. /// </summary>
  247. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"totalNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  248. public int totalNum
  249. {
  250. get { return _totalNum; }
  251. set { _totalNum = value; }
  252. }
  253. private int _channelType;
  254. /// <summary>
  255. /// 0世界红包 1仙盟红包
  256. /// </summary>
  257. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"channelType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  258. public int channelType
  259. {
  260. get { return _channelType; }
  261. set { _channelType = value; }
  262. }
  263. private int _fetchType;
  264. /// <summary>
  265. /// 0口令红包 1普通红包
  266. /// </summary>
  267. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"fetchType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  268. public int fetchType
  269. {
  270. get { return _fetchType; }
  271. set { _fetchType = value; }
  272. }
  273. private int _benifitType;
  274. /// <summary>
  275. /// 0元宝红包 1银币红包
  276. /// </summary>
  277. [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"benifitType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  278. public int benifitType
  279. {
  280. get { return _benifitType; }
  281. set { _benifitType = value; }
  282. }
  283. private string _message;
  284. /// <summary>
  285. /// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1时,表示寄语
  286. /// </summary>
  287. [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
  288. public string message
  289. {
  290. get { return _message; }
  291. set { _message = value; }
  292. }
  293. private global::ProtoBuf.IExtension extensionObject;
  294. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  295. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  296. }
  297. //---------------------------------------------------------------------------------------
  298. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DispatchRedPacketResponse")]
  299. public partial class DispatchRedPacketResponse : global::ProtoBuf.IExtensible
  300. {
  301. public DispatchRedPacketResponse() {}
  302. private int _s2c_code;
  303. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  304. public int s2c_code
  305. {
  306. get { return _s2c_code; }
  307. set { _s2c_code = value; }
  308. }
  309. private string _s2c_msg = "";
  310. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  311. [global::System.ComponentModel.DefaultValue("")]
  312. public string s2c_msg
  313. {
  314. get { return _s2c_msg; }
  315. set { _s2c_msg = value; }
  316. }
  317. private global::ProtoBuf.IExtension extensionObject;
  318. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  319. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  320. }
  321. //---------------------------------------------------------------------------------------
  322. /// <summary>
  323. /// 抢红包
  324. /// </summary>
  325. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetchRedPacketRequest")]
  326. public partial class FetchRedPacketRequest : global::ProtoBuf.IExtensible
  327. {
  328. public FetchRedPacketRequest() {}
  329. private string _id;
  330. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
  331. public string id
  332. {
  333. get { return _id; }
  334. set { _id = value; }
  335. }
  336. private global::ProtoBuf.IExtension extensionObject;
  337. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  338. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  339. }
  340. //---------------------------------------------------------------------------------------
  341. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetchRedPacketResponse")]
  342. public partial class FetchRedPacketResponse : global::ProtoBuf.IExtensible
  343. {
  344. public FetchRedPacketResponse() {}
  345. private int _s2c_code;
  346. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  347. public int s2c_code
  348. {
  349. get { return _s2c_code; }
  350. set { _s2c_code = value; }
  351. }
  352. private string _s2c_msg = "";
  353. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  354. [global::System.ComponentModel.DefaultValue("")]
  355. public string s2c_msg
  356. {
  357. get { return _s2c_msg; }
  358. set { _s2c_msg = value; }
  359. }
  360. private int _value = default(int);
  361. /// <summary>
  362. /// 抢到的金额
  363. /// </summary>
  364. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  365. [global::System.ComponentModel.DefaultValue(default(int))]
  366. public int value
  367. {
  368. get { return _value; }
  369. set { _value = value; }
  370. }
  371. private global::ProtoBuf.IExtension extensionObject;
  372. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  373. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  374. }
  375. //---------------------------------------------------------------------------------------
  376. /// <summary>
  377. /// 新红包推送
  378. /// </summary>
  379. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnRedPacketDispatchPush")]
  380. public partial class OnRedPacketDispatchPush : global::ProtoBuf.IExtensible
  381. {
  382. public OnRedPacketDispatchPush() {}
  383. private int _s2c_code;
  384. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  385. public int s2c_code
  386. {
  387. get { return _s2c_code; }
  388. set { _s2c_code = value; }
  389. }
  390. private string _s2c_msg = "";
  391. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  392. [global::System.ComponentModel.DefaultValue("")]
  393. public string s2c_msg
  394. {
  395. get { return _s2c_msg; }
  396. set { _s2c_msg = value; }
  397. }
  398. private pomelo.redpacket.RedPacketInfo _redPacketInfo = null;
  399. /// <summary>
  400. /// 新增或变更的红包
  401. /// </summary>
  402. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"redPacketInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  403. [global::System.ComponentModel.DefaultValue(null)]
  404. public pomelo.redpacket.RedPacketInfo redPacketInfo
  405. {
  406. get { return _redPacketInfo; }
  407. set { _redPacketInfo = value; }
  408. }
  409. private string _id = "";
  410. /// <summary>
  411. /// 删除的红包id,由于一次推送只处理一次增删改,3号字段负责增改,4号字段负责删,3和4最多只有一个存在
  412. /// </summary>
  413. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
  414. [global::System.ComponentModel.DefaultValue("")]
  415. public string id
  416. {
  417. get { return _id; }
  418. set { _id = value; }
  419. }
  420. private global::ProtoBuf.IExtension extensionObject;
  421. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  422. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  423. }
  424. }