_onlineGiftHandler.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. // * 作者= jjr
  11. // * 创建时间= 2017-04-18
  12. // * 用途= 在线礼包处理器
  13. // ***************************************************************************
  14. // Generated from: onlineGiftHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. // Note: requires additional types generated from: item.proto
  17. namespace pomelo.area
  18. {
  19. //---------------------------------------------------------------------------------------
  20. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGiftInfoRequest")]
  21. public partial class GetGiftInfoRequest : global::ProtoBuf.IExtensible
  22. {
  23. public GetGiftInfoRequest() {}
  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=@"GetOnlineTimeRequest")]
  30. public partial class GetOnlineTimeRequest : global::ProtoBuf.IExtensible
  31. {
  32. public GetOnlineTimeRequest() {}
  33. private global::ProtoBuf.IExtension extensionObject;
  34. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  35. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  36. }
  37. //---------------------------------------------------------------------------------------
  38. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ReceiveGiftRequest")]
  39. public partial class ReceiveGiftRequest : global::ProtoBuf.IExtensible
  40. {
  41. public ReceiveGiftRequest() {}
  42. private int _c2s_id = default(int);
  43. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"c2s_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  44. [global::System.ComponentModel.DefaultValue(default(int))]
  45. public int c2s_id
  46. {
  47. get { return _c2s_id; }
  48. set { _c2s_id = value; }
  49. }
  50. private global::ProtoBuf.IExtension extensionObject;
  51. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  52. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  53. }
  54. //---------------------------------------------------------------------------------------
  55. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GiftInfo")]
  56. public partial class GiftInfo : global::ProtoBuf.IExtensible
  57. {
  58. public GiftInfo() {}
  59. private int _id = default(int);
  60. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  61. [global::System.ComponentModel.DefaultValue(default(int))]
  62. public int id
  63. {
  64. get { return _id; }
  65. set { _id = value; }
  66. }
  67. private int _time = default(int);
  68. /// <summary>
  69. /// 需要在线时间(分钟)
  70. /// </summary>
  71. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"time", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  72. [global::System.ComponentModel.DefaultValue(default(int))]
  73. public int time
  74. {
  75. get { return _time; }
  76. set { _time = value; }
  77. }
  78. private string _name = "";
  79. /// <summary>
  80. /// 礼包名称
  81. /// </summary>
  82. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  83. [global::System.ComponentModel.DefaultValue("")]
  84. public string name
  85. {
  86. get { return _name; }
  87. set { _name = value; }
  88. }
  89. private int _state = default(int);
  90. /// <summary>
  91. /// 领取状态 0:不可领取 1:可领取 2:已领取
  92. /// </summary>
  93. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  94. [global::System.ComponentModel.DefaultValue(default(int))]
  95. public int state
  96. {
  97. get { return _state; }
  98. set { _state = value; }
  99. }
  100. private readonly global::System.Collections.Generic.List<pomelo.item.MiniItem> _item = new global::System.Collections.Generic.List<pomelo.item.MiniItem>();
  101. [global::ProtoBuf.ProtoMember(5, Name=@"item", DataFormat = global::ProtoBuf.DataFormat.Default)]
  102. public global::System.Collections.Generic.List<pomelo.item.MiniItem> item
  103. {
  104. get { return _item; }
  105. }
  106. private global::ProtoBuf.IExtension extensionObject;
  107. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  108. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  109. }
  110. //---------------------------------------------------------------------------------------
  111. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnlineGift")]
  112. public partial class OnlineGift : global::ProtoBuf.IExtensible
  113. {
  114. public OnlineGift() {}
  115. private int _onlineTime = default(int);
  116. /// <summary>
  117. /// 当前在线时长(秒)
  118. /// </summary>
  119. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"onlineTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  120. [global::System.ComponentModel.DefaultValue(default(int))]
  121. public int onlineTime
  122. {
  123. get { return _onlineTime; }
  124. set { _onlineTime = value; }
  125. }
  126. private readonly global::System.Collections.Generic.List<pomelo.area.GiftInfo> _giftList = new global::System.Collections.Generic.List<pomelo.area.GiftInfo>();
  127. /// <summary>
  128. /// 礼包列表
  129. /// </summary>
  130. [global::ProtoBuf.ProtoMember(2, Name=@"giftList", DataFormat = global::ProtoBuf.DataFormat.Default)]
  131. public global::System.Collections.Generic.List<pomelo.area.GiftInfo> giftList
  132. {
  133. get { return _giftList; }
  134. }
  135. private global::ProtoBuf.IExtension extensionObject;
  136. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  137. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  138. }
  139. //---------------------------------------------------------------------------------------
  140. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGiftInfoResponse")]
  141. public partial class GetGiftInfoResponse : global::ProtoBuf.IExtensible
  142. {
  143. public GetGiftInfoResponse() {}
  144. private int _s2c_code;
  145. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  146. public int s2c_code
  147. {
  148. get { return _s2c_code; }
  149. set { _s2c_code = value; }
  150. }
  151. private string _s2c_msg = "";
  152. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  153. [global::System.ComponentModel.DefaultValue("")]
  154. public string s2c_msg
  155. {
  156. get { return _s2c_msg; }
  157. set { _s2c_msg = value; }
  158. }
  159. private pomelo.area.OnlineGift _s2c_gift = null;
  160. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_gift", DataFormat = global::ProtoBuf.DataFormat.Default)]
  161. [global::System.ComponentModel.DefaultValue(null)]
  162. public pomelo.area.OnlineGift s2c_gift
  163. {
  164. get { return _s2c_gift; }
  165. set { _s2c_gift = value; }
  166. }
  167. private global::ProtoBuf.IExtension extensionObject;
  168. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  169. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  170. }
  171. //---------------------------------------------------------------------------------------
  172. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetOnlineTimeResponse")]
  173. public partial class GetOnlineTimeResponse : global::ProtoBuf.IExtensible
  174. {
  175. public GetOnlineTimeResponse() {}
  176. private int _s2c_code;
  177. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  178. public int s2c_code
  179. {
  180. get { return _s2c_code; }
  181. set { _s2c_code = value; }
  182. }
  183. private string _s2c_msg = "";
  184. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  185. [global::System.ComponentModel.DefaultValue("")]
  186. public string s2c_msg
  187. {
  188. get { return _s2c_msg; }
  189. set { _s2c_msg = value; }
  190. }
  191. private int _s2c_onlineTime = default(int);
  192. /// <summary>
  193. /// 秒
  194. /// </summary>
  195. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_onlineTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  196. [global::System.ComponentModel.DefaultValue(default(int))]
  197. public int s2c_onlineTime
  198. {
  199. get { return _s2c_onlineTime; }
  200. set { _s2c_onlineTime = 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=@"ReceiveGiftResponse")]
  208. public partial class ReceiveGiftResponse : global::ProtoBuf.IExtensible
  209. {
  210. public ReceiveGiftResponse() {}
  211. private int _s2c_code;
  212. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  213. public int s2c_code
  214. {
  215. get { return _s2c_code; }
  216. set { _s2c_code = value; }
  217. }
  218. private string _s2c_msg = "";
  219. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  220. [global::System.ComponentModel.DefaultValue("")]
  221. public string s2c_msg
  222. {
  223. get { return _s2c_msg; }
  224. set { _s2c_msg = value; }
  225. }
  226. private pomelo.area.OnlineGift _s2c_gift = null;
  227. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_gift", DataFormat = global::ProtoBuf.DataFormat.Default)]
  228. [global::System.ComponentModel.DefaultValue(null)]
  229. public pomelo.area.OnlineGift s2c_gift
  230. {
  231. get { return _s2c_gift; }
  232. set { _s2c_gift = value; }
  233. }
  234. private global::ProtoBuf.IExtension extensionObject;
  235. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  236. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  237. }
  238. //---------------------------------------------------------------------------------------
  239. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GiftInfoPush")]
  240. public partial class GiftInfoPush : global::ProtoBuf.IExtensible
  241. {
  242. public GiftInfoPush() {}
  243. private int _s2c_code;
  244. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  245. public int s2c_code
  246. {
  247. get { return _s2c_code; }
  248. set { _s2c_code = value; }
  249. }
  250. private string _s2c_msg = "";
  251. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  252. [global::System.ComponentModel.DefaultValue("")]
  253. public string s2c_msg
  254. {
  255. get { return _s2c_msg; }
  256. set { _s2c_msg = value; }
  257. }
  258. private pomelo.area.OnlineGift _s2c_gift = null;
  259. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_gift", DataFormat = global::ProtoBuf.DataFormat.Default)]
  260. [global::System.ComponentModel.DefaultValue(null)]
  261. public pomelo.area.OnlineGift s2c_gift
  262. {
  263. get { return _s2c_gift; }
  264. set { _s2c_gift = value; }
  265. }
  266. private global::ProtoBuf.IExtension extensionObject;
  267. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  268. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  269. }
  270. }