GoogleSignInUser.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // <copyright file="GoogleSignInUser.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. using System;
  18. /// <summary> Information for the authenticated user.</summary>
  19. public class GoogleSignInUser {
  20. /// <summary> Server AuthCode to be exchanged for an auth token.</summary>
  21. ///<remarks> null if not requested, or if there was an error.</remarks>
  22. public string AuthCode {
  23. get;
  24. internal set;
  25. }
  26. /// <summary> Email address.</summary>
  27. ///<remarks> null if not requested, or if there was an error.</remarks>
  28. public string Email {
  29. get;
  30. internal set;
  31. }
  32. /// <summary> Id token.</summary>
  33. ///<remarks> null if not requested, or if there was an error.</remarks>
  34. public string IdToken {
  35. get;
  36. internal set;
  37. }
  38. /// <summary> Display Name.</summary>
  39. public string DisplayName {
  40. get;
  41. internal set;
  42. }
  43. /// <summary> Given Name.</summary>
  44. public string GivenName {
  45. get;
  46. internal set;
  47. }
  48. /// <summary> Family Name.</summary>
  49. public string FamilyName {
  50. get;
  51. internal set;
  52. }
  53. /// <summary> Profile photo</summary>
  54. /// <remarks> Can be null if the profile is not requested,
  55. /// or none set.</remarks>
  56. public Uri ImageUrl {
  57. get;
  58. internal set;
  59. }
  60. /// <summary> User ID</summary>
  61. public string UserId {
  62. get;
  63. internal set;
  64. }
  65. }
  66. }