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.

26 lines
599 B

2 years ago
  1. using Newtonsoft.Json;
  2. namespace EasyBL.WebApi.Models
  3. {
  4. public class HttpResponse
  5. {
  6. public int StatusCode { get; set; }
  7. public object Data { get; set; }
  8. public string Info { get; set; }
  9. }
  10. public class TokenResult : HttpResponse
  11. {
  12. public TicketAuth Result
  13. {
  14. get
  15. {
  16. if (StatusCode == (int)StatusCodeEnum.Success)
  17. {
  18. return JsonConvert.DeserializeObject<TicketAuth>(Data.ToString());
  19. }
  20. return null;
  21. }
  22. }
  23. }
  24. }