usersObjCoin.cs 697 B

12345678910111213141516171819202122232425262728293031
  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. // {"userId":"123","coin":"23","type":"1","tranCode":"ADD"}
  10. public class usersObjCoin
  11. {
  12. [JsonProperty("userId")]
  13. public string userId { get; set; }
  14. [JsonProperty("coin")]
  15. public string coin { get; set; }
  16. [JsonProperty("type")]
  17. public string type { get; set; }
  18. [JsonProperty("tranCode")]
  19. public string tranCode { get; set; }
  20. public override string ToString()
  21. {
  22. return JsonConvert.SerializeObject(this);
  23. }
  24. }
  25. }