HttpConstConfig.cs 892 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. using System.Collections;
  3. /// <summary>
  4. /// 客户端处理HTTP数据返回值的命令类型值
  5. /// </summary>
  6. public enum HTTPClientCommand
  7. {
  8. CMD_GET_QRCODE = 1,
  9. CMD_GET_WAITING_PLAYERS,
  10. CMD_POLLING_WAITING_PLAYERS,
  11. CMD_START_GAME,
  12. CMD_COMMIT_GAME,
  13. CMD_CHECK_NETSTATU,
  14. CMD_GET_RANK
  15. }
  16. public class HttpConstConfig
  17. {
  18. #region HTTP通信返回值的数据结构字段名
  19. public static string WEB_HTTP_SECRET_KEY = "baofengyingxiong-web";
  20. public static string KEY_COMMAND = "command";
  21. public static string KEY_SERVERTIME = "servertime";
  22. public static string KEY_EXTTIME = "exttime";
  23. public static string KEY_RESULT = "data";
  24. public static string KEY_SIG = "sig";
  25. public static string KEY_RESPONSE_STATU = "rc";
  26. public static string KEY_RESPONSE_MSG = "msg";
  27. #endregion
  28. }