using Unity.Plastic.Newtonsoft.Json;
using PlasticGui.WebApi.Responses;
namespace Unity.PlasticSCM.Editor.WebApi
{
///
/// Response to token exchange request.
///
public class TokenExchangeResponse
{
///
/// Error caused by the request.
///
[JsonProperty("error")]
public ErrorResponse.ErrorFields Error { get; set; }
///
/// The user's username.
///
[JsonProperty("user")]
public string User { get; set; }
///
/// The access token.
///
[JsonProperty("accessToken")]
public string AccessToken { get; set; }
///
/// The refresh token.
///
[JsonProperty("refreshToken")]
public string RefreshToken { get; set; }
}
}