using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] // {"usersId":"123","fullName":"Buihuuquang","sex":"Nam","address":"Yen nghia","province":"HaDong","cardNumber":"123","email":"quangbh@yahoo.com","company":"Viettech","description":"ha ha","picture":"/data/quangbh.jpg"} public class usersObjProfile { [JsonProperty("status")] public string status { get; set; } [JsonProperty("message")] public string message { get; set; } [JsonProperty("id")] public string id { get; set; } [JsonProperty("usersId")] public string usersId { get; set; } [JsonProperty("users")] public string users { get; set; } [JsonProperty("serviceId")] public string serviceid { get; set; } [JsonProperty("fullName")] public string fullName { get; set; } [JsonProperty("sex")] public string sex { get; set; } [JsonProperty("address")] public string address { get; set; } [JsonProperty("provinceId")] public string provinceId { get; set; } [JsonProperty("cardNumber")] public string cardNumber { get; set; } [JsonProperty("email")] public string email { get; set; } [JsonProperty("company")] public string company { get; set; } [JsonProperty("description")] public string description { get; set; } [JsonProperty("picture")] public string picture { get; set; } [JsonProperty("sexNeed")] public string sexNeed { get; set; } [JsonProperty("birthday")] public string birthday { get; set; } [JsonProperty("height")] public string height { get; set; } [JsonProperty("weight")] public string weight { get; set; } [JsonProperty("work")] public string work { get; set; } [JsonProperty("isLike")] public string isLike { get; set; } [JsonProperty("totalLike")] public string totalLike { get; set; } [JsonProperty("totalPic")] public string totalPic { get; set; } [JsonProperty("totalView")] public string totalView { get; set; } [JsonProperty("lookingFor")] public string lookingFor { get; set; } [JsonProperty("listInterests")] public usersInterests[] listInterests { get; set; } [JsonProperty("listGift")] public usersGift[] listGift { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }