using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GuestName.Models { public class Guest { public int id { get; set; } public string name { get; set; } public string phone { get; set; } public string organize { get; set; } public string position { get; set; } public int levelGuest { get; set; } public int numnerNext { get; set; } public int configNext { get; set; } public int status { get; set; } public int gender { get; set; } public string avatarUrl { get; set; } public DateTime createDate { get; set; } public DateTime submitTime { get; set; } public DateTime lastUpdate { get; set; } } public class GuestResponse { public int responseCode { get; set; } public string message { get; set; } public string errorCode { get; set; } public Guest guest { get; set; } public GuestResponse() { } public static GuestResponse Parse(String json) { return JsonConvert.DeserializeObject(json); } } }