usersObjRegist.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // {"msisdn":"50940227941","users":"123","pass":"123","passnew":"1234","serviceId":"23","type":"DK","channel":"WEB"}
  10. public class usersObjRegist
  11. {
  12. [JsonProperty("msisdn")]
  13. public string msisdn { get; set; }
  14. [JsonProperty("users")]
  15. public string users { get; set; }
  16. [JsonProperty("pass")]
  17. public string pass { get; set; }
  18. [JsonProperty("passnew")]
  19. public string passnew { get; set; }
  20. [JsonProperty("serviceId")]
  21. public string serviceid { get; set; }
  22. [JsonProperty("command")] //"type":LOGIN,REGIST, CANCEL, RESETPASS, CHANGEPASS
  23. public string command { get; set; }
  24. [JsonProperty("channel")]
  25. public string channel { get; set; }
  26. [JsonProperty("role")]
  27. public string role { get; set; }
  28. [JsonProperty("token")]
  29. public string token { get; set; }
  30. public override string ToString()
  31. {
  32. return JsonConvert.SerializeObject(this);
  33. }
  34. }
  35. }