// // 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 InteriorMetaDataMutable { [JsonProperty("id")] public int id { get; set; } [JsonProperty("SnapType")] public ESnapType SnapType { get; set; } [JsonProperty("IgnoreBoxSize")] public string IgnoreBoxSize { get; set; } [JsonProperty("IgnoreBoxOffset")] public string IgnoreBoxOffset { get; set; } [JsonProperty("SubCategory_Id")] public string SubCategory_Id { get; set; } [JsonProperty("InteriorPoint")] public int InteriorPoint { get; set; } [JsonProperty("UseAd")] public bool UseAd { get; set; } [JsonProperty("AdPath")] public IList AdPath { get; set; } } public partial class InteriorMetaTableMutable { [JsonProperty("InteriorMetaDataList")] public IList InteriorMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class InteriorMetaData { public readonly int id; public readonly ESnapType SnapType; public readonly string IgnoreBoxSize; public readonly string IgnoreBoxOffset; public readonly string SubCategory_Id; public readonly int InteriorPoint; public readonly bool UseAd; public readonly IReadOnlyList AdPath; public InteriorMetaData(InteriorMetaDataMutable data) { id = data.id; SnapType = data.SnapType; IgnoreBoxSize = data.IgnoreBoxSize; IgnoreBoxOffset = data.IgnoreBoxOffset; SubCategory_Id = data.SubCategory_Id; InteriorPoint = data.InteriorPoint; UseAd = data.UseAd; if(data.AdPath != null) AdPath = data.AdPath.ToList().AsReadOnly(); } } public partial class InteriorMetaTable { public readonly IReadOnlyList InteriorMetaDataList; public InteriorMetaTable(InteriorMetaTableMutable data) { if(data.InteriorMetaDataList != null) InteriorMetaDataList = data.InteriorMetaDataList.Select(x => new InteriorMetaData(x)).ToList().AsReadOnly(); } } }