// // generated using ContentTool. DO NOT EDIT! // using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Collections.ObjectModel; using Newtonsoft.Json.Converters; using Newtonsoft.Json; namespace MetaAssets { #pragma warning disable public partial class ShopMetaDataMutable { [JsonProperty("Id")] public int Id { get; set; } [JsonProperty("Name")] public string Name { get; set; } [JsonProperty("ResetTime")] public int ResetTime { get; set; } [JsonProperty("ShopProduct_Group_Id")] public int ShopProduct_Group_Id { get; set; } [JsonProperty("ShopProduct_List")] public int ShopProduct_List { get; set; } [JsonProperty("is_Renewal")] public bool is_Renewal { get; set; } [JsonProperty("RenewalMaxCount")] public int RenewalMaxCount { get; set; } [JsonProperty("RenewalCurrency")] public int RenewalCurrency { get; set; } [JsonProperty("RenewalCurrencyValue")] public int RenewalCurrencyValue { get; set; } } public partial class ShopMetaTableMutable { [JsonProperty("ShopMetaDataList")] public IList ShopMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class ShopMetaData { public readonly int Id; public readonly string Name; public readonly int ResetTime; public readonly int ShopProduct_Group_Id; public readonly int ShopProduct_List; public readonly bool is_Renewal; public readonly int RenewalMaxCount; public readonly int RenewalCurrency; public readonly int RenewalCurrencyValue; public ShopMetaData(ShopMetaDataMutable data) { Id = data.Id; Name = data.Name; ResetTime = data.ResetTime; ShopProduct_Group_Id = data.ShopProduct_Group_Id; ShopProduct_List = data.ShopProduct_List; is_Renewal = data.is_Renewal; RenewalMaxCount = data.RenewalMaxCount; RenewalCurrency = data.RenewalCurrency; RenewalCurrencyValue = data.RenewalCurrencyValue; } } public partial class ShopMetaTable { public readonly IReadOnlyList ShopMetaDataList; public ShopMetaTable(ShopMetaTableMutable data) { if(data.ShopMetaDataList != null) ShopMetaDataList = data.ShopMetaDataList.Select(x => new ShopMetaData(x)).ToList().AsReadOnly(); } } }