CommonStatusCodes.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // <copyright file="CommonStatusCodes.cs" company="Google Inc.">
  2. // Copyright (C) 2014 Google Inc.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. // </copyright>
  16. #if UNITY_ANDROID
  17. namespace GooglePlayGames.BasicApi
  18. {
  19. /// <summary>
  20. /// Common status codes.
  21. /// See https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes
  22. /// </summary>
  23. public enum CommonStatusCodes
  24. {
  25. /// <summary>The operation was successful, but the device's cache was used.</summary>
  26. SuccessCached = -1,
  27. /// <summary>The operation was successful.</summary>
  28. Success = 0,
  29. /// <summary>Google Play services is missing on this device.</summary>
  30. ServiceMissing = 1,
  31. /// <summary>The installed version of Google Play services is out of date.</summary>
  32. ServiceVersionUpdateRequired = 2,
  33. /// <summary>The installed version of Google Play services has been disabled on this device.</summary>
  34. ServiceDisabled = 3,
  35. /// <summary>The client attempted to connect to the service but the user is not signed in.</summary>
  36. SignInRequired = 4,
  37. /// <summary>The client attempted to connect to the service with an invalid account name specified.</summary>
  38. InvalidAccount = 5,
  39. /// <summary>Completing the operation requires some form of resolution.</summary>
  40. ResolutionRequired = 6,
  41. /// <summary>A network error occurred.</summary>
  42. NetworkError = 7,
  43. /// <summary>An internal error occurred.</summary>
  44. InternalError = 8,
  45. /// <summary>The version of the Google Play services installed on this device is not authentic.</summary>
  46. ServiceInvalid = 9,
  47. /// <summary>The application is misconfigured.</summary>
  48. DeveloperError = 10,
  49. /// <summary>The application is not licensed to the user.</summary>
  50. LicenseCheckFailed = 11,
  51. /// <summary>The operation failed with no more detailed information.</summary>
  52. Error = 13,
  53. /// <summary>A blocking call was interrupted while waiting and did not run to completion.</summary>
  54. Interrupted = 14,
  55. /// <summary>Timed out while awaiting the result.</summary>
  56. Timeout = 15,
  57. /// <summary>The result was canceled either due to client disconnect or cancel().</summary>
  58. Canceled = 16,
  59. /// <summary>The client attempted to call a method from an API that failed to connect.</summary>
  60. ApiNotConnected = 17,
  61. /// <summary>Invalid credentials were provided.</summary>
  62. AuthApiInvalidCredentials = 3000,
  63. /// <summary>Access is forbidden.</summary>
  64. AuthApiAccessForbidden = 3001,
  65. /// <summary>Error related to the client.</summary>
  66. AuthApiClientError = 3002,
  67. /// <summary>Error related to the server.</summary>
  68. AuthApiServerError = 3003,
  69. /// <summary>Error related to token.</summary>
  70. AuthTokenError = 3004,
  71. /// <summary>Error related to auth URL resolution.</summary>
  72. AuthUrlResolution = 3005
  73. }
  74. }
  75. #endif