// // // To parse this JSON data, add NuGet 'Newtonsoft.Json' then do: // // using trainav.web.JSON; // // var listOrdersResponse = ListOrdersResponse.FromJson(jsonString); using System.Collections.Generic; using Newtonsoft.Json; namespace trainav.web.JSON.ListOrdersResponse { public partial class ListOrdersResponse { [JsonProperty("?xml", NullValueHandling = NullValueHandling.Ignore)] public Xml Xml { get; set; } [JsonProperty("rporderheadlist", NullValueHandling = NullValueHandling.Ignore)] public Rporderheadlist Rporderheadlist { get; set; } } public class Rporderheadlist { [JsonProperty("@version", NullValueHandling = NullValueHandling.Ignore)] public string Version { get; set; } [JsonProperty("rpheader", NullValueHandling = NullValueHandling.Ignore)] public Rpheader Rpheader { get; set; } [JsonProperty("orderheadlist", NullValueHandling = NullValueHandling.Ignore)] public Orderheadlist Orderheadlist { get; set; } } public class Orderheadlist { [JsonProperty("orderhead", NullValueHandling = NullValueHandling.Ignore)] public List Orderhead { get; set; } } public class Orderhead { [JsonProperty("@ldt", NullValueHandling = NullValueHandling.Ignore)] public string Ldt { get; set; } [JsonProperty("@on", NullValueHandling = NullValueHandling.Ignore)] public string On { get; set; } [JsonProperty("authtmp", NullValueHandling = NullValueHandling.Ignore)] public Authtmp Authtmp { get; set; } } public class Authtmp { [JsonProperty("@htmp", NullValueHandling = NullValueHandling.Ignore)] public string Htmp { get; set; } [JsonProperty("@ts", NullValueHandling = NullValueHandling.Ignore)] public string Ts { get; set; } } public class Rpheader { [JsonProperty("@tnr", NullValueHandling = NullValueHandling.Ignore)] public string Tnr { get; set; } [JsonProperty("@ts", NullValueHandling = NullValueHandling.Ignore)] public string Ts { get; set; } } public class Xml { [JsonProperty("@version", NullValueHandling = NullValueHandling.Ignore)] public string Version { get; set; } [JsonProperty("@encoding", NullValueHandling = NullValueHandling.Ignore)] public string Encoding { get; set; } } public partial class ListOrdersResponse { public static ListOrdersResponse FromJson(string json) => JsonConvert.DeserializeObject(json, Converter.Settings); } }