PO/Library/PackageCache/com.unity.collab-proxy@1.9.0/Editor/PlasticSCM/WebApi/CredentialsResponse.cs

35 lines
765 B
C#
Raw Normal View History

using System.Reflection;
using Unity.Plastic.Newtonsoft.Json;
using PlasticGui.WebApi.Responses;
namespace Unity.PlasticSCM.Editor.WebApi
{
[ObfuscationAttribute(Exclude = true)]
public class CredentialsResponse
{
[JsonProperty("error")]
public ErrorResponse.ErrorFields Error { get; set; }
public enum TokenType : int
{
Password = 0,
Bearer = 1,
}
[JsonIgnore]
public TokenType Type
{
get { return (TokenType)TokenTypeValue; }
}
[JsonProperty("email")]
public string Email;
[JsonProperty("token")]
public string Token;
[JsonProperty("tokenTypeValue")]
public int TokenTypeValue;
}
}