mirror of
https://github.com/4sval/FModel.git
synced 2026-04-29 01:27:31 -05:00
56 lines
1.7 KiB
C#
56 lines
1.7 KiB
C#
// <auto-generated />
|
|
//
|
|
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
|
|
//
|
|
// using FModel.Parser.LocResParser;
|
|
//
|
|
// var locResParser = LocResParser.FromJson(jsonString);
|
|
|
|
namespace FModel.Parser.LocResParser
|
|
{
|
|
using System.Globalization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
public partial class LocResParser
|
|
{
|
|
[JsonProperty("LocResText")]
|
|
public string LocResText { get; set; }
|
|
|
|
[JsonProperty("WorkerSetBonusTraitPattern")]
|
|
public string WorkerSetBonusTraitPattern { get; set; }
|
|
|
|
[JsonProperty("CompletionRewardFormat_All")]
|
|
public string CompletionRewardFormatAll { get; set; }
|
|
|
|
[JsonProperty("CompletionRewardFormat")]
|
|
public string CompletionRewardFormat { get; set; }
|
|
|
|
[JsonProperty("CosmeticItemDescription_SetMembership_NotRich")]
|
|
public string CosmeticItemDescriptionSetMembershipNotRich { get; set; }
|
|
}
|
|
|
|
public partial class LocResParser
|
|
{
|
|
public static LocResParser FromJson(string json) => JsonConvert.DeserializeObject<LocResParser>(json, Converter.Settings);
|
|
}
|
|
|
|
public static class Serialize
|
|
{
|
|
public static string ToJson(this LocResParser self) => JsonConvert.SerializeObject(self, 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 }
|
|
},
|
|
};
|
|
}
|
|
}
|