GuestResponse.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace GuestName.Models
  7. {
  8. public class Guest
  9. {
  10. public int id { get; set; }
  11. public string name { get; set; }
  12. public string phone { get; set; }
  13. public string organize { get; set; }
  14. public string position { get; set; }
  15. public int levelGuest { get; set; }
  16. public int numnerNext { get; set; }
  17. public int configNext { get; set; }
  18. public int status { get; set; }
  19. public int gender { get; set; }
  20. public string avatarUrl { get; set; }
  21. public DateTime createDate { get; set; }
  22. public DateTime submitTime { get; set; }
  23. public DateTime lastUpdate { get; set; }
  24. }
  25. public class GuestResponse
  26. {
  27. public int responseCode { get; set; }
  28. public string message { get; set; }
  29. public string errorCode { get; set; }
  30. public Guest guest { get; set; }
  31. public GuestResponse() { }
  32. public static GuestResponse Parse(String json)
  33. {
  34. return JsonConvert.DeserializeObject<GuestResponse>(json);
  35. }
  36. }
  37. }