diff --git a/CoviDok/Api/Response.cs b/CoviDok/Api/GenericResponse.cs similarity index 64% rename from CoviDok/Api/Response.cs rename to CoviDok/Api/GenericResponse.cs index 11d9837..4a65b10 100644 --- a/CoviDok/Api/Response.cs +++ b/CoviDok/Api/GenericResponse.cs @@ -5,10 +5,16 @@ using System.Threading.Tasks; namespace CoviDok.Api { - public class Response + public class GenericResponse { public int Version { get; set; } - public string Status { get; set; } + public Status Status { get; set; } public Dictionary Body = new Dictionary(); } + + public enum Status + { + Error, + Success + } } diff --git a/CoviDok/Api/Response/AuthIdentity.cs b/CoviDok/Api/Response/AuthIdentity.cs new file mode 100644 index 0000000..babd2ee --- /dev/null +++ b/CoviDok/Api/Response/AuthIdentity.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace CoviDok.Api.Response +{ + public class AuthIdentity + { + public string Id { get; set; } + public string FirstName { get; set; } + public string LastName { get; set; } + public Role Role { get; set; } + } +}