mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
86 lines
2.4 KiB
C#
86 lines
2.4 KiB
C#
// <auto-generated />
|
|
//
|
|
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
|
|
//
|
|
// using FModel;
|
|
//
|
|
// var itemsIdParser = ItemsIdParser.FromJson(jsonString);
|
|
|
|
namespace FModel
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Globalization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
public partial class ItemsIdParser
|
|
{
|
|
[JsonProperty("export_type")]
|
|
public string ExportType { get; set; }
|
|
|
|
[JsonProperty("CharacterParts")]
|
|
public string[] CharacterParts { get; set; }
|
|
|
|
[JsonProperty("Rarity")]
|
|
public string Rarity { get; set; }
|
|
|
|
[JsonProperty("DisplayName")]
|
|
public string DisplayName { get; set; }
|
|
|
|
[JsonProperty("ShortDescription")]
|
|
public string ShortDescription { get; set; }
|
|
|
|
[JsonProperty("Description")]
|
|
public string Description { get; set; }
|
|
|
|
[JsonProperty("GameplayTags")]
|
|
public GameplayTags GameplayTags { get; set; }
|
|
|
|
[JsonProperty("SmallPreviewImage")]
|
|
public PreviewImage SmallPreviewImage { get; set; }
|
|
|
|
[JsonProperty("LargePreviewImage")]
|
|
public PreviewImage LargePreviewImage { get; set; }
|
|
}
|
|
|
|
public partial class GameplayTags
|
|
{
|
|
[JsonProperty("gameplay_tags")]
|
|
public string[] GameplayTagsGameplayTags { get; set; }
|
|
}
|
|
|
|
public partial class PreviewImage
|
|
{
|
|
[JsonProperty("asset_path_name")]
|
|
public string AssetPathName { get; set; }
|
|
|
|
[JsonProperty("sub_path_string")]
|
|
public string SubPathString { get; set; }
|
|
}
|
|
|
|
public partial class ItemsIdParser
|
|
{
|
|
public static ItemsIdParser[] FromJson(string json) => JsonConvert.DeserializeObject<ItemsIdParser[]>(json, FModel.Converter.Settings);
|
|
}
|
|
|
|
public static class Serialize
|
|
{
|
|
public static string ToJson(this ItemsIdParser[] self) => JsonConvert.SerializeObject(self, FModel.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 }
|
|
},
|
|
};
|
|
}
|
|
}
|