using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ARC.GMP.Models { public class AuthorizeUserByRoleModel { public int code { get; set; } public string message { get; set; } public UserDetail data { get; set; } } public class UserDetail { [JsonProperty("userName")] public string UserName { get; set; } [JsonProperty("isAuthorized")] public bool IsAuthorized { get; set; } [JsonProperty("roleId")] public long RoleId { get; set; } [JsonProperty("userAccesses")] public List UserAccesses { get; set; } } public class UserAccessDetail { [JsonProperty("entityId")] public long EntityId { get; set; } [JsonProperty("entityName")] public string EntityName { get; set; } [JsonProperty("entityAction")] public string EntityAction { get; set; } } public class AuthenticationDetail { public bool IsAuthenticated { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string MiddleName { get; set; } public string FullName { get; set; } public string UserName { get; set; } public string Email { get; set; } public string Domain { get; set; } public string Message { get; set; } } public class UserAuthorizeResponse { public bool IsAuthorized { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string UserName { get; set; } public string Email { get; set; } public string roleId { get; set; } public List Permissions { get; set; } } public class UserAccessResponse { public string entityName { get; set; } public string Create { get; set; } public string Update { get; set; } public string Read { get; set; } public string Delete { get; set; } } }