common_protocol.d.ts 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. import * as $protobuf from "protobufjs";
  2. import Long = require("long");
  3. /** Namespace common_protocol. */
  4. export namespace common_protocol {
  5. /** Properties of a PlayerConnect. */
  6. interface IPlayerConnect {
  7. /** PlayerConnect account */
  8. account?: (string|null);
  9. /** PlayerConnect token */
  10. token?: (string|null);
  11. /** PlayerConnect sign */
  12. sign?: (string|null);
  13. /** PlayerConnect platform */
  14. platform?: (string|null);
  15. /** PlayerConnect payPlatform */
  16. payPlatform?: (string|null);
  17. /** PlayerConnect channel */
  18. channel?: (string|null);
  19. }
  20. /** Represents a PlayerConnect. */
  21. class PlayerConnect implements IPlayerConnect {
  22. /**
  23. * Constructs a new PlayerConnect.
  24. * @param [properties] Properties to set
  25. */
  26. constructor(properties?: common_protocol.IPlayerConnect);
  27. /** PlayerConnect account. */
  28. public account: string;
  29. /** PlayerConnect token. */
  30. public token: string;
  31. /** PlayerConnect sign. */
  32. public sign: string;
  33. /** PlayerConnect platform. */
  34. public platform: string;
  35. /** PlayerConnect payPlatform. */
  36. public payPlatform: string;
  37. /** PlayerConnect channel. */
  38. public channel: string;
  39. /**
  40. * Creates a new PlayerConnect instance using the specified properties.
  41. * @param [properties] Properties to set
  42. * @returns PlayerConnect instance
  43. */
  44. public static create(properties?: common_protocol.IPlayerConnect): common_protocol.PlayerConnect;
  45. /**
  46. * Encodes the specified PlayerConnect message. Does not implicitly {@link common_protocol.PlayerConnect.verify|verify} messages.
  47. * @param message PlayerConnect message or plain object to encode
  48. * @param [writer] Writer to encode to
  49. * @returns Writer
  50. */
  51. public static encode(message: common_protocol.IPlayerConnect, writer?: $protobuf.Writer): $protobuf.Writer;
  52. /**
  53. * Encodes the specified PlayerConnect message, length delimited. Does not implicitly {@link common_protocol.PlayerConnect.verify|verify} messages.
  54. * @param message PlayerConnect message or plain object to encode
  55. * @param [writer] Writer to encode to
  56. * @returns Writer
  57. */
  58. public static encodeDelimited(message: common_protocol.IPlayerConnect, writer?: $protobuf.Writer): $protobuf.Writer;
  59. /**
  60. * Decodes a PlayerConnect message from the specified reader or buffer.
  61. * @param reader Reader or buffer to decode from
  62. * @param [length] Message length if known beforehand
  63. * @returns PlayerConnect
  64. * @throws {Error} If the payload is not a reader or valid buffer
  65. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66. */
  67. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): common_protocol.PlayerConnect;
  68. /**
  69. * Decodes a PlayerConnect message from the specified reader or buffer, length delimited.
  70. * @param reader Reader or buffer to decode from
  71. * @returns PlayerConnect
  72. * @throws {Error} If the payload is not a reader or valid buffer
  73. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  74. */
  75. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): common_protocol.PlayerConnect;
  76. /**
  77. * Verifies a PlayerConnect message.
  78. * @param message Plain object to verify
  79. * @returns `null` if valid, otherwise the reason why it is not
  80. */
  81. public static verify(message: { [k: string]: any }): (string|null);
  82. /**
  83. * Creates a PlayerConnect message from a plain object. Also converts values to their respective internal types.
  84. * @param object Plain object
  85. * @returns PlayerConnect
  86. */
  87. public static fromObject(object: { [k: string]: any }): common_protocol.PlayerConnect;
  88. /**
  89. * Creates a plain object from a PlayerConnect message. Also converts values to other types if specified.
  90. * @param message PlayerConnect
  91. * @param [options] Conversion options
  92. * @returns Plain object
  93. */
  94. public static toObject(message: common_protocol.PlayerConnect, options?: $protobuf.IConversionOptions): { [k: string]: any };
  95. /**
  96. * Converts this PlayerConnect to JSON.
  97. * @returns JSON object
  98. */
  99. public toJSON(): { [k: string]: any };
  100. /**
  101. * Gets the default type url for PlayerConnect
  102. * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
  103. * @returns The default type url
  104. */
  105. public static getTypeUrl(typeUrlPrefix?: string): string;
  106. }
  107. /** Properties of a PlayerConnectResult. */
  108. interface IPlayerConnectResult {
  109. /** PlayerConnectResult servertime */
  110. servertime?: (number|null);
  111. /** PlayerConnectResult gaming */
  112. gaming?: (number|null);
  113. /** PlayerConnectResult ver */
  114. ver?: (string|null);
  115. /** PlayerConnectResult result */
  116. result?: (number|null);
  117. }
  118. /** Represents a PlayerConnectResult. */
  119. class PlayerConnectResult implements IPlayerConnectResult {
  120. /**
  121. * Constructs a new PlayerConnectResult.
  122. * @param [properties] Properties to set
  123. */
  124. constructor(properties?: common_protocol.IPlayerConnectResult);
  125. /** PlayerConnectResult servertime. */
  126. public servertime: number;
  127. /** PlayerConnectResult gaming. */
  128. public gaming: number;
  129. /** PlayerConnectResult ver. */
  130. public ver: string;
  131. /** PlayerConnectResult result. */
  132. public result: number;
  133. /**
  134. * Creates a new PlayerConnectResult instance using the specified properties.
  135. * @param [properties] Properties to set
  136. * @returns PlayerConnectResult instance
  137. */
  138. public static create(properties?: common_protocol.IPlayerConnectResult): common_protocol.PlayerConnectResult;
  139. /**
  140. * Encodes the specified PlayerConnectResult message. Does not implicitly {@link common_protocol.PlayerConnectResult.verify|verify} messages.
  141. * @param message PlayerConnectResult message or plain object to encode
  142. * @param [writer] Writer to encode to
  143. * @returns Writer
  144. */
  145. public static encode(message: common_protocol.IPlayerConnectResult, writer?: $protobuf.Writer): $protobuf.Writer;
  146. /**
  147. * Encodes the specified PlayerConnectResult message, length delimited. Does not implicitly {@link common_protocol.PlayerConnectResult.verify|verify} messages.
  148. * @param message PlayerConnectResult message or plain object to encode
  149. * @param [writer] Writer to encode to
  150. * @returns Writer
  151. */
  152. public static encodeDelimited(message: common_protocol.IPlayerConnectResult, writer?: $protobuf.Writer): $protobuf.Writer;
  153. /**
  154. * Decodes a PlayerConnectResult message from the specified reader or buffer.
  155. * @param reader Reader or buffer to decode from
  156. * @param [length] Message length if known beforehand
  157. * @returns PlayerConnectResult
  158. * @throws {Error} If the payload is not a reader or valid buffer
  159. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  160. */
  161. public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): common_protocol.PlayerConnectResult;
  162. /**
  163. * Decodes a PlayerConnectResult message from the specified reader or buffer, length delimited.
  164. * @param reader Reader or buffer to decode from
  165. * @returns PlayerConnectResult
  166. * @throws {Error} If the payload is not a reader or valid buffer
  167. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  168. */
  169. public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): common_protocol.PlayerConnectResult;
  170. /**
  171. * Verifies a PlayerConnectResult message.
  172. * @param message Plain object to verify
  173. * @returns `null` if valid, otherwise the reason why it is not
  174. */
  175. public static verify(message: { [k: string]: any }): (string|null);
  176. /**
  177. * Creates a PlayerConnectResult message from a plain object. Also converts values to their respective internal types.
  178. * @param object Plain object
  179. * @returns PlayerConnectResult
  180. */
  181. public static fromObject(object: { [k: string]: any }): common_protocol.PlayerConnectResult;
  182. /**
  183. * Creates a plain object from a PlayerConnectResult message. Also converts values to other types if specified.
  184. * @param message PlayerConnectResult
  185. * @param [options] Conversion options
  186. * @returns Plain object
  187. */
  188. public static toObject(message: common_protocol.PlayerConnectResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
  189. /**
  190. * Converts this PlayerConnectResult to JSON.
  191. * @returns JSON object
  192. */
  193. public toJSON(): { [k: string]: any };
  194. /**
  195. * Gets the default type url for PlayerConnectResult
  196. * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
  197. * @returns The default type url
  198. */
  199. public static getTypeUrl(typeUrlPrefix?: string): string;
  200. }
  201. }