| 12345678910111213141516171819202122232425262728293031323334 |
- 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;
- }
- }
|