您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

129 行
2.4 KiB

  1. #if UNITY_5_6_OR_NEWER && !UNITY_5_6_0
  2. using System;
  3. using System.Collections.Generic;
  4. namespace AppStoreModel
  5. {
  6. public class UnityClientInfo
  7. {
  8. public string ClientId { get; set; }
  9. public string ClientKey { get; set; }
  10. public string ClientRSAPublicKey { get; set; }
  11. public string ClientSecret {get; set;}
  12. }
  13. [Serializable]
  14. public class UnityClient
  15. {
  16. public string client_id;
  17. public string client_secret;
  18. public string client_name;
  19. public List<string> scopes;
  20. public UnityChannel channel;
  21. public string rev;
  22. public string owner;
  23. public string ownerType;
  24. public UnityClient() {
  25. this.scopes = new List<string> ();
  26. }
  27. }
  28. [Serializable]
  29. public class UnityChannel
  30. {
  31. public XiaomiSettings xiaomi;
  32. public string projectGuid;
  33. public string callbackUrl;
  34. }
  35. [Serializable]
  36. public class XiaomiSettings
  37. {
  38. public string appId;
  39. public string appKey;
  40. public string appSecret;
  41. }
  42. [Serializable]
  43. public class UnityClientResponseWrapper: GeneralResponse
  44. {
  45. public UnityClientResponse[] array;
  46. }
  47. [Serializable]
  48. public class UnityClientResponse: GeneralResponse
  49. {
  50. public string client_id;
  51. public string client_secret;
  52. public UnityChannelResponse channel;
  53. public string rev;
  54. }
  55. [Serializable]
  56. public class UnityChannelResponse
  57. {
  58. public List<ThirdPartySettingsResponse> thirdPartySettings;
  59. public string projectGuid;
  60. public string callbackUrl;
  61. public string publicRSAKey;
  62. public string channelSecret;
  63. public UnityChannelResponse() {
  64. this.thirdPartySettings = new List<ThirdPartySettingsResponse> ();
  65. }
  66. }
  67. [Serializable]
  68. public class ThirdPartySettingsResponse
  69. {
  70. public string appId;
  71. public string appKey;
  72. public string appSecret;
  73. public string appType;
  74. }
  75. [Serializable]
  76. public class TokenRequest
  77. {
  78. public string code;
  79. public string client_id;
  80. public string client_secret;
  81. public string grant_type;
  82. public string redirect_uri;
  83. public string refresh_token;
  84. }
  85. [Serializable]
  86. public class TokenInfo: GeneralResponse
  87. {
  88. public string access_token;
  89. public string refresh_token;
  90. }
  91. [Serializable]
  92. public class UserIdResponse: GeneralResponse
  93. {
  94. public string sub;
  95. }
  96. [Serializable]
  97. public class OrgIdResponse: GeneralResponse
  98. {
  99. public string org_foreign_key;
  100. }
  101. [Serializable]
  102. public class OrgRoleResponse: GeneralResponse
  103. {
  104. public List<string> roles;
  105. }
  106. [Serializable]
  107. public class GeneralResponse
  108. {
  109. public string message;
  110. }
  111. }
  112. #endif