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.

38 lines
940 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Wing.Model
  7. {
  8. public class WTokenResponse : WingApiResponse
  9. {
  10. public WTokenData Data { get; set; }
  11. }
  12. public class WTokenData
  13. {
  14. public string AccessCode { get; set; }
  15. public int ExpiryTime { get; set; }
  16. public string TokenType { get; set; }
  17. public string Scope { get; set; }
  18. }
  19. public class WingApiResponse
  20. {
  21. public bool Success { get; set; }
  22. public string StatusCode { get; set; }
  23. public object MessageType { get; set; }
  24. public string StatusDescription { get; set; }
  25. }
  26. public class ApiException
  27. {
  28. public string error_code { get; set; }
  29. public string message { get; set; }
  30. public string error { get; set; }
  31. public string error_description { get; set; }
  32. }
  33. }