125 lines
4.4 KiB
C#
125 lines
4.4 KiB
C#
// <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 ItemMetaListMutable
|
|
{
|
|
[JsonProperty("Id")]
|
|
public int Id { get; set; }
|
|
[JsonProperty("Value")]
|
|
public double Value { get; set; }
|
|
}
|
|
|
|
public partial class ProductMetaDataMutable
|
|
{
|
|
[JsonProperty("Id")]
|
|
public int Id { get; set; }
|
|
[JsonProperty("Product_Name")]
|
|
public string Product_Name { get; set; }
|
|
[JsonProperty("Product_Desc")]
|
|
public string Product_Desc { get; set; }
|
|
[JsonProperty("First_List")]
|
|
public IList<ItemMetaListMutable> First_List { get; set; }
|
|
[JsonProperty("Storage_Period_First")]
|
|
public int Storage_Period_First { get; set; }
|
|
[JsonProperty("SystemMail_First")]
|
|
public string SystemMail_First { get; set; }
|
|
[JsonProperty("ItemID_First")]
|
|
public int ItemID_First { get; set; }
|
|
[JsonProperty("Repeat_List")]
|
|
public IList<ItemMetaListMutable> Repeat_List { get; set; }
|
|
[JsonProperty("Storage_Period_Repeat")]
|
|
public int Storage_Period_Repeat { get; set; }
|
|
[JsonProperty("SystemMail_Repeat")]
|
|
public string SystemMail_Repeat { get; set; }
|
|
[JsonProperty("ItemID_Repeat")]
|
|
public int ItemID_Repeat { get; set; }
|
|
[JsonProperty("Mail_Repeat_Count")]
|
|
public int Mail_Repeat_Count { get; set; }
|
|
[JsonProperty("Mail_Repeat_Interval")]
|
|
public int Mail_Repeat_Interval { get; set; }
|
|
[JsonProperty("Is_Refund")]
|
|
public bool Is_Refund { get; set; }
|
|
}
|
|
|
|
public partial class ProductMetaTableMutable
|
|
{
|
|
[JsonProperty("ProductMetaDataList")]
|
|
public IList<ProductMetaDataMutable> ProductMetaDataList { get; set; }
|
|
}
|
|
|
|
//////////////////////////////
|
|
// readonly class
|
|
//////////////////////////////
|
|
public partial class ItemMetaList
|
|
{
|
|
public readonly int Id;
|
|
public readonly double Value;
|
|
public ItemMetaList(ItemMetaListMutable data)
|
|
{
|
|
Id = data.Id;
|
|
Value = data.Value;
|
|
}
|
|
}
|
|
|
|
public partial class ProductMetaData
|
|
{
|
|
public readonly int Id;
|
|
public readonly string Product_Name;
|
|
public readonly string Product_Desc;
|
|
public readonly IReadOnlyList<ItemMetaList> First_List;
|
|
public readonly int Storage_Period_First;
|
|
public readonly string SystemMail_First;
|
|
public readonly int ItemID_First;
|
|
public readonly IReadOnlyList<ItemMetaList> Repeat_List;
|
|
public readonly int Storage_Period_Repeat;
|
|
public readonly string SystemMail_Repeat;
|
|
public readonly int ItemID_Repeat;
|
|
public readonly int Mail_Repeat_Count;
|
|
public readonly int Mail_Repeat_Interval;
|
|
public readonly bool Is_Refund;
|
|
public ProductMetaData(ProductMetaDataMutable data)
|
|
{
|
|
Id = data.Id;
|
|
Product_Name = data.Product_Name;
|
|
Product_Desc = data.Product_Desc;
|
|
if(data.First_List != null)
|
|
First_List = data.First_List.Select(x => new ItemMetaList(x)).ToList().AsReadOnly();
|
|
Storage_Period_First = data.Storage_Period_First;
|
|
SystemMail_First = data.SystemMail_First;
|
|
ItemID_First = data.ItemID_First;
|
|
if(data.Repeat_List != null)
|
|
Repeat_List = data.Repeat_List.Select(x => new ItemMetaList(x)).ToList().AsReadOnly();
|
|
Storage_Period_Repeat = data.Storage_Period_Repeat;
|
|
SystemMail_Repeat = data.SystemMail_Repeat;
|
|
ItemID_Repeat = data.ItemID_Repeat;
|
|
Mail_Repeat_Count = data.Mail_Repeat_Count;
|
|
Mail_Repeat_Interval = data.Mail_Repeat_Interval;
|
|
Is_Refund = data.Is_Refund;
|
|
}
|
|
}
|
|
|
|
public partial class ProductMetaTable
|
|
{
|
|
public readonly IReadOnlyList<ProductMetaData> ProductMetaDataList;
|
|
public ProductMetaTable(ProductMetaTableMutable data)
|
|
{
|
|
if(data.ProductMetaDataList != null)
|
|
ProductMetaDataList = data.ProductMetaDataList.Select(x => new ProductMetaData(x)).ToList().AsReadOnly();
|
|
}
|
|
}
|
|
|
|
}
|