_growingHandler.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. // * 创建时间: 2019-08-02
  12. // * 用途: 成长(章节)
  13. // ***************************************************************************
  14. // Generated from: growingHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. namespace pomelo.growing
  17. {
  18. //---------------------------------------------------------------------------------------
  19. /// <summary>
  20. /// 成长内容
  21. /// </summary>
  22. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Growing")]
  23. public partial class Growing : global::ProtoBuf.IExtensible
  24. {
  25. public Growing() {}
  26. private int _id;
  27. /// <summary>
  28. /// id
  29. /// </summary>
  30. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  31. public int id
  32. {
  33. get { return _id; }
  34. set { _id = value; }
  35. }
  36. private long _scheduleCurr = default(long);
  37. /// <summary>
  38. /// 进度
  39. /// </summary>
  40. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"scheduleCurr", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  41. [global::System.ComponentModel.DefaultValue(default(long))]
  42. public long scheduleCurr
  43. {
  44. get { return _scheduleCurr; }
  45. set { _scheduleCurr = value; }
  46. }
  47. private int _status = default(int);
  48. /// <summary>
  49. /// 完成状态(0:未达成 1:已达成,未领取 2:已领取)
  50. /// </summary>
  51. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"status", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  52. [global::System.ComponentModel.DefaultValue(default(int))]
  53. public int status
  54. {
  55. get { return _status; }
  56. set { _status = value; }
  57. }
  58. private global::ProtoBuf.IExtension extensionObject;
  59. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  60. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  61. }
  62. //---------------------------------------------------------------------------------------
  63. /// <summary>
  64. /// 获取成长信息 请求
  65. /// </summary>
  66. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGrowingRequest")]
  67. public partial class GetGrowingRequest : global::ProtoBuf.IExtensible
  68. {
  69. public GetGrowingRequest() {}
  70. private global::ProtoBuf.IExtension extensionObject;
  71. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  72. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  73. }
  74. //---------------------------------------------------------------------------------------
  75. /// <summary>
  76. /// 获取成长信息 返回
  77. /// </summary>
  78. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetGrowingResponse")]
  79. public partial class GetGrowingResponse : global::ProtoBuf.IExtensible
  80. {
  81. public GetGrowingResponse() {}
  82. private int _s2c_code;
  83. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  84. public int s2c_code
  85. {
  86. get { return _s2c_code; }
  87. set { _s2c_code = value; }
  88. }
  89. private string _s2c_msg = "";
  90. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  91. [global::System.ComponentModel.DefaultValue("")]
  92. public string s2c_msg
  93. {
  94. get { return _s2c_msg; }
  95. set { _s2c_msg = value; }
  96. }
  97. private long _s2c_curGrowing = default(long);
  98. /// <summary>
  99. /// 当前成长值
  100. /// </summary>
  101. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_curGrowing", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  102. [global::System.ComponentModel.DefaultValue(default(long))]
  103. public long s2c_curGrowing
  104. {
  105. get { return _s2c_curGrowing; }
  106. set { _s2c_curGrowing = value; }
  107. }
  108. private int _s2c_curChapter = default(int);
  109. /// <summary>
  110. /// 当前解锁的章节
  111. /// </summary>
  112. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_curChapter", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  113. [global::System.ComponentModel.DefaultValue(default(int))]
  114. public int s2c_curChapter
  115. {
  116. get { return _s2c_curChapter; }
  117. set { _s2c_curChapter = value; }
  118. }
  119. private readonly global::System.Collections.Generic.List<pomelo.growing.Growing> _s2c_growing = new global::System.Collections.Generic.List<pomelo.growing.Growing>();
  120. /// <summary>
  121. /// 只发解锁的id
  122. /// </summary>
  123. [global::ProtoBuf.ProtoMember(5, Name=@"s2c_growing", DataFormat = global::ProtoBuf.DataFormat.Default)]
  124. public global::System.Collections.Generic.List<pomelo.growing.Growing> s2c_growing
  125. {
  126. get { return _s2c_growing; }
  127. }
  128. private readonly global::System.Collections.Generic.List<int> _s2c_growingAward = new global::System.Collections.Generic.List<int>();
  129. /// <summary>
  130. /// 领取的成长值奖励list
  131. /// </summary>
  132. [global::ProtoBuf.ProtoMember(6, Name=@"s2c_growingAward", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  133. public global::System.Collections.Generic.List<int> s2c_growingAward
  134. {
  135. get { return _s2c_growingAward; }
  136. }
  137. private global::ProtoBuf.IExtension extensionObject;
  138. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  139. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  140. }
  141. //---------------------------------------------------------------------------------------
  142. /// <summary>
  143. /// 领取奖励 请求
  144. /// </summary>
  145. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GrowingAwardRequest")]
  146. public partial class GrowingAwardRequest : global::ProtoBuf.IExtensible
  147. {
  148. public GrowingAwardRequest() {}
  149. private int _c2s_optionType;
  150. /// <summary>
  151. /// 类型(1:领取id对应的成长值 2.领取成长值奖励)
  152. /// </summary>
  153. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_optionType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  154. public int c2s_optionType
  155. {
  156. get { return _c2s_optionType; }
  157. set { _c2s_optionType = value; }
  158. }
  159. private int _c2s_parameter = default(int);
  160. /// <summary>
  161. /// 参数(optionType = 1传:id; optionType = 2传:成长值)
  162. /// </summary>
  163. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"c2s_parameter", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  164. [global::System.ComponentModel.DefaultValue(default(int))]
  165. public int c2s_parameter
  166. {
  167. get { return _c2s_parameter; }
  168. set { _c2s_parameter = value; }
  169. }
  170. private global::ProtoBuf.IExtension extensionObject;
  171. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  172. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  173. }
  174. //---------------------------------------------------------------------------------------
  175. /// <summary>
  176. /// 领取奖励 返回
  177. /// </summary>
  178. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GrowingAwardResponse")]
  179. public partial class GrowingAwardResponse : global::ProtoBuf.IExtensible
  180. {
  181. public GrowingAwardResponse() {}
  182. private int _s2c_code;
  183. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  184. public int s2c_code
  185. {
  186. get { return _s2c_code; }
  187. set { _s2c_code = value; }
  188. }
  189. private string _s2c_msg = "";
  190. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  191. [global::System.ComponentModel.DefaultValue("")]
  192. public string s2c_msg
  193. {
  194. get { return _s2c_msg; }
  195. set { _s2c_msg = value; }
  196. }
  197. private global::ProtoBuf.IExtension extensionObject;
  198. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  199. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  200. }
  201. //---------------------------------------------------------------------------------------
  202. /// <summary>
  203. /// 更新成长信息推送
  204. /// </summary>
  205. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UpdateGrowingPush")]
  206. public partial class UpdateGrowingPush : global::ProtoBuf.IExtensible
  207. {
  208. public UpdateGrowingPush() {}
  209. private readonly global::System.Collections.Generic.List<pomelo.growing.Growing> _s2c_growing = new global::System.Collections.Generic.List<pomelo.growing.Growing>();
  210. [global::ProtoBuf.ProtoMember(1, Name=@"s2c_growing", DataFormat = global::ProtoBuf.DataFormat.Default)]
  211. public global::System.Collections.Generic.List<pomelo.growing.Growing> s2c_growing
  212. {
  213. get { return _s2c_growing; }
  214. }
  215. private global::ProtoBuf.IExtension extensionObject;
  216. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  217. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  218. }
  219. //---------------------------------------------------------------------------------------
  220. /// <summary>
  221. /// 通知当前解锁的章节
  222. /// </summary>
  223. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CurChapterPush")]
  224. public partial class CurChapterPush : global::ProtoBuf.IExtensible
  225. {
  226. public CurChapterPush() {}
  227. private int _s2c_curChapter;
  228. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_curChapter", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  229. public int s2c_curChapter
  230. {
  231. get { return _s2c_curChapter; }
  232. set { _s2c_curChapter = 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. /// <summary>
  240. /// 更新成长值推送
  241. /// </summary>
  242. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UpdateGrowingValuePush")]
  243. public partial class UpdateGrowingValuePush : global::ProtoBuf.IExtensible
  244. {
  245. public UpdateGrowingValuePush() {}
  246. private long _s2c_curGrowing;
  247. /// <summary>
  248. /// 当前成长值
  249. /// </summary>
  250. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_curGrowing", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  251. public long s2c_curGrowing
  252. {
  253. get { return _s2c_curGrowing; }
  254. set { _s2c_curGrowing = value; }
  255. }
  256. private global::ProtoBuf.IExtension extensionObject;
  257. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  258. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  259. }
  260. }