Firstborn/Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/WebApi/CredentialsResponse.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

62 lines
1.4 KiB
C#

using Unity.Plastic.Newtonsoft.Json;
using PlasticGui.WebApi.Responses;
namespace Unity.PlasticSCM.Editor.WebApi
{
/// <summary>
/// Response to credentials request.
/// </summary>
public class CredentialsResponse
{
/// <summary>
/// Error caused by the request.
/// </summary>
[JsonProperty("error")]
public ErrorResponse.ErrorFields Error { get; set; }
/// <summary>
/// Type of the token.
/// </summary>
public enum TokenType : int
{
/// <summary>
/// Password token.
/// </summary>
Password = 0,
/// <summary>
/// Bearer token.
/// </summary>
Bearer = 1,
}
/// <summary>
/// Get the type of the token.
/// </summary>
[JsonIgnore]
public TokenType Type
{
get { return (TokenType)TokenTypeValue; }
}
/// <summary>
/// The user's email.
/// </summary>
[JsonProperty("email")]
public string Email;
/// <summary>
/// The credential's token.
/// </summary>
[JsonProperty("token")]
public string Token;
/// <summary>
/// The token type represented as an integer.
/// </summary>
[JsonProperty("tokenTypeValue")]
public int TokenTypeValue;
}
}