Maze / Library /PackageCache /com.unity.collab-proxy@2.0.4 /Editor /PlasticSCM /WebApi /CredentialsResponse.cs
| 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> | |
| [] | |
| 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> | |
| [] | |
| public TokenType Type | |
| { | |
| get { return (TokenType)TokenTypeValue; } | |
| } | |
| /// <summary> | |
| /// The user's email. | |
| /// </summary> | |
| [] | |
| public string Email; | |
| /// <summary> | |
| /// The credential's token. | |
| /// </summary> | |
| [] | |
| public string Token; | |
| /// <summary> | |
| /// The token type represented as an integer. | |
| /// </summary> | |
| [] | |
| public int TokenTypeValue; | |
| } | |
| } | |