Newer
Older
Simple-Multiplayer-Unity3D / Multiplayer Project / Library / PackageCache / com.unity.collab-proxy@2.7.1 / Editor / WebApi / TokenExchangeResponse.cs
  1. using System.ComponentModel;
  2. using Unity.Plastic.Newtonsoft.Json;
  3. using PlasticGui.WebApi.Responses;
  4. namespace Unity.PlasticSCM.Editor.WebApi
  5. {
  6. /// <summary>
  7. /// Response to token exchange request.
  8. /// Internal usage. This isn't a public API.
  9. /// </summary>
  10. [EditorBrowsable(EditorBrowsableState.Never)]
  11. public class TokenExchangeResponse
  12. {
  13. /// <summary>
  14. /// Error caused by the request.
  15. /// </summary>
  16. [EditorBrowsable(EditorBrowsableState.Never)]
  17. [JsonProperty("error")]
  18. public ErrorResponse.ErrorFields Error { get; set; }
  19. /// <summary>
  20. /// The user's username.
  21. /// </summary>
  22. [EditorBrowsable(EditorBrowsableState.Never)]
  23. [JsonProperty("user")]
  24. public string User { get; set; }
  25. /// <summary>
  26. /// The access token.
  27. /// </summary>
  28. [EditorBrowsable(EditorBrowsableState.Never)]
  29. [JsonProperty("accessToken")]
  30. public string AccessToken { get; set; }
  31. /// <summary>
  32. /// The refresh token.
  33. /// </summary>
  34. [EditorBrowsable(EditorBrowsableState.Never)]
  35. [JsonProperty("refreshToken")]
  36. public string RefreshToken { get; set; }
  37. }
  38. }