// // 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 LandMetaDataMutable { [JsonProperty("LandId")] public int LandId { get; set; } [JsonProperty("Owner")] public string Owner { get; set; } [JsonProperty("Editor")] public EditorType Editor { get; set; } [JsonProperty("LinkedItem")] public int LinkedItem { get; set; } [JsonProperty("NonAuction")] public bool NonAuction { get; set; } [JsonProperty("RentalStateSwitch")] public bool RentalStateSwitch { get; set; } [JsonProperty("RentalAvailable")] public bool RentalAvailable { get; set; } [JsonProperty("LandName")] public string LandName { get; set; } [JsonProperty("LandDesc")] public string LandDesc { get; set; } [JsonProperty("LandIcon")] public string LandIcon_ { get; set; } [JsonProperty("LandSize")] public SizeType LandSize { get; set; } [JsonProperty("LandType")] public LandType LandType { get; set; } [JsonProperty("BuildingSocket")] public double BuildingSocket_ { get; set; } [JsonProperty("CityType")] public string CityType { get; set; } [JsonProperty("BuildingArea")] public string BuildingArea_ { get; set; } [JsonProperty("BuildingId")] public int BuildingId_ { get; set; } [JsonProperty("SignSocket")] public double SignSocket_ { get; set; } [JsonProperty("SignId")] public string SignId_ { get; set; } [JsonProperty("LandPosition")] public string LandPosition_ { get; set; } [JsonProperty("DecoData")] public double DecoData_ { get; set; } [JsonProperty("AddressCity")] public string AddressCity_ { get; set; } [JsonProperty("AddressNum")] public double AddressNum_ { get; set; } [JsonProperty("LandFile")] public string LandFile { get; set; } [JsonProperty("NftUrl")] public string NftUrl_ { get; set; } } public partial class LandMetaTableMutable { [JsonProperty("LandMetaDataList")] public IList LandMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class LandMetaData { public readonly int LandId; public readonly string Owner; public readonly EditorType Editor; public readonly int LinkedItem; public readonly bool NonAuction; public readonly bool RentalStateSwitch; public readonly bool RentalAvailable; public readonly string LandName; public readonly string LandDesc; public readonly string LandIcon_; public readonly SizeType LandSize; public readonly LandType LandType; public readonly double BuildingSocket_; public readonly string CityType; public readonly string BuildingArea_; public readonly int BuildingId_; public readonly double SignSocket_; public readonly string SignId_; public readonly string LandPosition_; public readonly double DecoData_; public readonly string AddressCity_; public readonly double AddressNum_; public readonly string LandFile; public readonly string NftUrl_; public LandMetaData(LandMetaDataMutable data) { LandId = data.LandId; Owner = data.Owner; Editor = data.Editor; LinkedItem = data.LinkedItem; NonAuction = data.NonAuction; RentalStateSwitch = data.RentalStateSwitch; RentalAvailable = data.RentalAvailable; LandName = data.LandName; LandDesc = data.LandDesc; LandIcon_ = data.LandIcon_; LandSize = data.LandSize; LandType = data.LandType; BuildingSocket_ = data.BuildingSocket_; CityType = data.CityType; BuildingArea_ = data.BuildingArea_; BuildingId_ = data.BuildingId_; SignSocket_ = data.SignSocket_; SignId_ = data.SignId_; LandPosition_ = data.LandPosition_; DecoData_ = data.DecoData_; AddressCity_ = data.AddressCity_; AddressNum_ = data.AddressNum_; LandFile = data.LandFile; NftUrl_ = data.NftUrl_; } } public partial class LandMetaTable { public readonly IReadOnlyList LandMetaDataList; public LandMetaTable(LandMetaTableMutable data) { if(data.LandMetaDataList != null) LandMetaDataList = data.LandMetaDataList.Select(x => new LandMetaData(x)).ToList().AsReadOnly(); } } }