GoogleSignInStatusCode.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // <copyright file="GoogleSignInStatusCode.cs" company="Google Inc.">
  2. // Copyright (C) 2017 Google Inc. All Rights Reserved.
  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. namespace Google {
  17. /// <summary>
  18. /// Status code for the SignIn operations.
  19. /// </summary>
  20. /// <remarks>All successful status codes are less than or equal to 0.
  21. /// </remarks>
  22. public enum GoogleSignInStatusCode {
  23. /// <summary>The operation was successful, but used the device's cache.
  24. /// </summary>
  25. SuccessCached = -1,
  26. /// <summary>The operation was successful.</summary>
  27. Success = 0,
  28. /// <summary>The client attempted to call a method from an API that
  29. /// failed to connect.</summary>
  30. ApiNotConnected = 1,
  31. /// <summary>The result was canceled either due to client disconnect
  32. /// or cancel().</summary>
  33. Canceled = 2,
  34. /// <summary> A blocking call was interrupted while waiting and did not
  35. /// run to completion.</summary>
  36. Interrupted = 3,
  37. /// <summary> The client attempted to connect to the service with an
  38. /// invalid account name specified. </summary>
  39. InvalidAccount = 4,
  40. /// <summary>Timed out while awaiting the result.</summary>
  41. Timeout = 5,
  42. /// <summary>The application is misconfigured.
  43. /// This error is not recoverable.</summary>
  44. /// <remarks>
  45. /// The developer should look at the logs after this to determine
  46. /// more actionable information.
  47. /// </remarks>
  48. DeveloperError = 6,
  49. /// <summary>An internal error occurred. Retrying should resolve the
  50. /// problem.</summary>
  51. InternalError = 7,
  52. /// <summary>A network error occurred. Retrying should resolve the problem.
  53. /// </summary>
  54. NetworkError = 8,
  55. /// <summary> The operation failed with no more detailed information.
  56. /// </summary>
  57. Error = 9,
  58. }
  59. } // namespace GoogleSignIn