tokenObj.cs 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace CommonObj.model
  6. {
  7. public class tokenObj
  8. {
  9. [JsonProperty("key")]
  10. public string key { get; set; }
  11. [JsonProperty("token")]
  12. public string token { get; set; }
  13. [JsonProperty("users")]
  14. public string users { get; set; }
  15. [JsonProperty("password")]
  16. public string password { get; set; }
  17. [JsonProperty("channel")]
  18. public string channel { get; set; }
  19. [JsonProperty("type")] //type=LOGIN_USER,LOGIN_ADMIN,TEMP
  20. public string type { get; set; }
  21. [JsonProperty("msisdn")]
  22. public string msisdn { get; set; }
  23. [JsonProperty("role")]
  24. public string role { get; set; }
  25. [JsonProperty("obj")]
  26. public object obj { get; set; }
  27. public override string ToString()
  28. {
  29. return JsonConvert.SerializeObject(this);
  30. }
  31. }
  32. }