초기커밋
This commit is contained in:
71
ServerCommon/MetaAssets/MetaTable/BrandData.cs
Normal file
71
ServerCommon/MetaAssets/MetaTable/BrandData.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
// <auto-generated>
|
||||
// generated using ContentTool. DO NOT EDIT!
|
||||
// </auto-generated>
|
||||
|
||||
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 BrandMetaDataMutable
|
||||
{
|
||||
[JsonProperty("ID")]
|
||||
public int ID { get; set; }
|
||||
[JsonProperty("BrandName")]
|
||||
public string BrandName { get; set; }
|
||||
[JsonProperty("LogoLeft")]
|
||||
public string LogoLeft { get; set; }
|
||||
[JsonProperty("LogoCenter")]
|
||||
public string LogoCenter { get; set; }
|
||||
[JsonProperty("LogoRight")]
|
||||
public string LogoRight { get; set; }
|
||||
[JsonProperty("LogoText")]
|
||||
public string LogoText { get; set; }
|
||||
}
|
||||
|
||||
public partial class BrandMetaTableMutable
|
||||
{
|
||||
[JsonProperty("BrandMetaDataList")]
|
||||
public IList<BrandMetaDataMutable> BrandMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class BrandMetaData
|
||||
{
|
||||
public readonly int ID;
|
||||
public readonly string BrandName;
|
||||
public readonly string LogoLeft;
|
||||
public readonly string LogoCenter;
|
||||
public readonly string LogoRight;
|
||||
public readonly string LogoText;
|
||||
public BrandMetaData(BrandMetaDataMutable data)
|
||||
{
|
||||
ID = data.ID;
|
||||
BrandName = data.BrandName;
|
||||
LogoLeft = data.LogoLeft;
|
||||
LogoCenter = data.LogoCenter;
|
||||
LogoRight = data.LogoRight;
|
||||
LogoText = data.LogoText;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class BrandMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<BrandMetaData> BrandMetaDataList;
|
||||
public BrandMetaTable(BrandMetaTableMutable data)
|
||||
{
|
||||
if(data.BrandMetaDataList != null)
|
||||
BrandMetaDataList = data.BrandMetaDataList.Select(x => new BrandMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user