using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] // {"msisdn":"50940227941","users":"123","pass":"123","passnew":"1234","serviceId":"23","type":"DK","channel":"WEB"} public class usersObjRegist { [JsonProperty("msisdn")] public string msisdn { get; set; } [JsonProperty("users")] public string users { get; set; } [JsonProperty("pass")] public string pass { get; set; } [JsonProperty("passnew")] public string passnew { get; set; } [JsonProperty("serviceId")] public string serviceid { get; set; } [JsonProperty("command")] //"type":LOGIN,REGIST, CANCEL, RESETPASS, CHANGEPASS public string command { get; set; } [JsonProperty("channel")] public string channel { get; set; } [JsonProperty("role")] public string role { get; set; } [JsonProperty("token")] public string token { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }