chargeObj.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models
  7. {
  8. [Serializable]
  9. public class chargeObj
  10. {
  11. [JsonProperty("username")]
  12. public string username { get; set; }
  13. [JsonProperty("password")]
  14. public string password { get; set; }
  15. [JsonProperty("serviceid")]
  16. public string serviceid { get; set; }
  17. [JsonProperty("msisdn")]
  18. public string msisdn { get; set; }
  19. [JsonProperty("chargetime")]
  20. public string chargetime { get; set; }
  21. [JsonProperty("paramss")]
  22. public string paramss { get; set; }
  23. [JsonProperty("mode")]
  24. public string mode { get; set; }
  25. [JsonProperty("amount")]
  26. public string amount { get; set; }
  27. [JsonProperty("prefix")]
  28. public string prefix { get; set; }
  29. [JsonProperty("cmd")]
  30. public string cmd { get; set; }
  31. [JsonProperty("transaction")]
  32. public string transaction { get; set; }
  33. public override string ToString()
  34. {
  35. return JsonConvert.SerializeObject(this);
  36. }
  37. }
  38. }