PlayTop.cs 904 B

123456789101112131415161718192021222324252627282930313233
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace WebChallenge.Models
  6. {
  7. public class PlayTopReq : Posting
  8. {
  9. public string fromdate { get; set; }
  10. public string todate { get; set; }
  11. public string top { get; set; }
  12. }
  13. public class TopUser
  14. {
  15. public string msisdn { get; set; }
  16. public string totalScore { get; set; }
  17. public string totalTime { get; set; }
  18. public string timeUpdate { get; set; }
  19. public string seq { get; set; }
  20. }
  21. public class PlayTopResponse
  22. {
  23. public string status { get; set; }
  24. public string message { get; set; }
  25. public List<TopUser> listTop { get; set; }
  26. public static new PlayTopResponse Parse(string json)
  27. {
  28. return JsonConvert.DeserializeObject<PlayTopResponse>(json);
  29. }
  30. }
  31. }