You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
599 B
27 lines
599 B
using Newtonsoft.Json;
|
|
|
|
namespace EasyBL.WebApi.Models
|
|
{
|
|
public class HttpResponse
|
|
{
|
|
public int StatusCode { get; set; }
|
|
public object Data { get; set; }
|
|
public string Info { get; set; }
|
|
}
|
|
|
|
public class TokenResult : HttpResponse
|
|
{
|
|
public TicketAuth Result
|
|
{
|
|
get
|
|
{
|
|
if (StatusCode == (int)StatusCodeEnum.Success)
|
|
{
|
|
return JsonConvert.DeserializeObject<TicketAuth>(Data.ToString());
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|