ProfileData.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. using Newtonsoft.Json;
  6. namespace DataTools
  7. {
  8. [Serializable]
  9. public class ProfileData
  10. {
  11. [SerializeField]
  12. [JsonProperty]
  13. private string kind;
  14. [SerializeField]
  15. [JsonProperty]
  16. private string localId;
  17. [SerializeField]
  18. [JsonProperty]
  19. private string email;
  20. [SerializeField]
  21. [JsonProperty]
  22. private string displayName;
  23. [SerializeField]
  24. [JsonProperty]
  25. private string idToken;
  26. [SerializeField]
  27. [JsonProperty]
  28. private bool registered;
  29. [SerializeField]
  30. [JsonProperty]
  31. private string refreshToken;
  32. [SerializeField]
  33. [JsonProperty]
  34. private int expiresIn;
  35. public string Kind
  36. {
  37. get
  38. {
  39. return kind;
  40. }
  41. }
  42. public string LocalId
  43. {
  44. get
  45. {
  46. return localId;
  47. }
  48. set
  49. {
  50. localId = value;
  51. }
  52. }
  53. public string Email
  54. {
  55. get
  56. {
  57. return email;
  58. }
  59. }
  60. public string DisplayName
  61. {
  62. get
  63. {
  64. return displayName;
  65. }
  66. set
  67. {
  68. displayName = value;
  69. }
  70. }
  71. public string IdToken
  72. {
  73. get
  74. {
  75. return idToken;
  76. }
  77. }
  78. public bool Registered
  79. {
  80. get
  81. {
  82. return registered;
  83. }
  84. }
  85. public string RefreshToken
  86. {
  87. get
  88. {
  89. return refreshToken;
  90. }
  91. }
  92. public int ExpiresIn
  93. {
  94. get
  95. {
  96. return expiresIn;
  97. }
  98. }
  99. }
  100. }