ibms-dome/Repository/Models/obixHistory.cs

168 lines
4.3 KiB
C#
Raw Permalink Normal View History

2023-03-07 15:02:29 +08:00
using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
using System.Globalization;
using System;
using System.Collections.Generic;
namespace Repository.Models.CodeBeautify
{
//public class obixHistory
//{
//}
public partial class obixHistory
{
[JsonProperty("obj")]
public Objs Obj { get; set; }
}
public class Objs
{
[JsonProperty("ref")]
public Refs Ref { get; set; }
[JsonProperty("_xmlns")]
public Uri Xmlns { get; set; }
[JsonProperty("_xmlns:xsi")]
public Uri XmlnsXsi { get; set; }
[JsonProperty("_href")]
public Uri Href { get; set; }
[JsonProperty("_display")]
public string Display { get; set; }
[JsonProperty("_icon")]
public string Icon { get; set; }
[JsonProperty("_xsi:schemaLocation")]
public Uri XsiSchemaLocation { get; set; }
}
public class Refs
{
[JsonProperty("_name")]
public string Name { get; set; }
[JsonProperty("_href")]
public string Href { get; set; }
[JsonProperty("_display")]
public string Display { get; set; }
[JsonProperty("_icon")]
public string Icon { get; set; }
}
public partial class obixHistory
{
public static obixHistory FromJson(string json) => JsonConvert.DeserializeObject<obixHistory>(json, CodeBeautify.Converter.Settings);
}
public static class Serialize
{
public static string ToJson(this obixHistory self) => JsonConvert.SerializeObject(self, CodeBeautify.Converter.Settings);
}
internal static class Converter
{
public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
{
MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
DateParseHandling = DateParseHandling.None,
Converters =
{
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
},
};
}
}
// <auto-generated />
//
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
// using CodeBeautify;
//
// var welcome4 = Welcome4.FromJson(jsonString);
//namespace CodeBeautify
//{
// using System;
// using System.Collections.Generic;
// using System.Globalization;
// using Newtonsoft.Json;
// using Newtonsoft.Json.Converters;
// public partial class Welcome4
// {
// [JsonProperty("obj")]
// public Obj Obj { get; set; }
// }
// public partial class Obj
// {
// [JsonProperty("ref")]
// public Ref Ref { get; set; }
// [JsonProperty("_xmlns")]
// public Uri Xmlns { get; set; }
// [JsonProperty("_xmlns:xsi")]
// public Uri XmlnsXsi { get; set; }
// [JsonProperty("_href")]
// public Uri Href { get; set; }
// [JsonProperty("_display")]
// public string Display { get; set; }
// [JsonProperty("_icon")]
// public string Icon { get; set; }
// [JsonProperty("_xsi:schemaLocation")]
// public Uri XsiSchemaLocation { get; set; }
// }
// public partial class Ref
// {
// [JsonProperty("_name")]
// public string Name { get; set; }
// [JsonProperty("_href")]
// public string Href { get; set; }
// [JsonProperty("_display")]
// public string Display { get; set; }
// [JsonProperty("_icon")]
// public string Icon { get; set; }
// }
// public partial class Welcome4
// {
// public static Welcome4 FromJson(string json) => JsonConvert.DeserializeObject<Welcome4>(json, CodeBeautify.Converter.Settings);
// }
// public static class Serialize
// {
// public static string ToJson(this Welcome4 self) => JsonConvert.SerializeObject(self, CodeBeautify.Converter.Settings);
// }
// internal static class Converter
// {
// public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
// {
// MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
// DateParseHandling = DateParseHandling.None,
// Converters =
// {
// new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
// },
// };
// }
//}