using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] public class happyCall { [JsonProperty("id")] public string id { get; set; } [JsonProperty("msisdn")] public string msisdn { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("sysdate")] public string sysdate { get; set; } [JsonProperty("isSub")] public string isSub { get; set; } [JsonProperty("isWin")] public string isWin { get; set; } [JsonProperty("type")] public string type { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } public class happyCallList { [JsonProperty("status")] public string status { get; set; } [JsonProperty("message")] public string message { get; set; } [JsonProperty("listHappCall")] public happyCall[] listHappCall { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }