//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; namespace Server.Config { public sealed partial class DiamondMallConfig : Luban.BeanBase { public DiamondMallConfig(ByteBuf _buf) { Id = _buf.ReadInt(); PlatProductId = _buf.ReadString(); Name = _buf.ReadString(); Price = _buf.ReadInt(); AppStoreType = _buf.ReadInt(); NotShelved = _buf.ReadBool(); {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Packages = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); Packages[__index0] = __e0;}} {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Gift = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); Gift[__index0] = __e0;}} Sort = _buf.ReadInt(); Desc = _buf.ReadString(); } public static DiamondMallConfig DeserializeDiamondMallConfig(ByteBuf _buf) { return new DiamondMallConfig(_buf); } /// /// 商品ID /// public readonly int Id; /// /// 第三方平台Id /// public readonly string PlatProductId; /// /// 商品名称 /// public readonly string Name; /// /// 价格(人民币元) /// public readonly int Price; /// /// app商店类型
0 默认
1 微信小游戏
2 应用包
3 AppStore
4 官网
5 华为
6 公众号
7 小米
///
public readonly int AppStoreType; /// /// 未上架 /// public readonly bool NotShelved; /// /// 商品包 /// public readonly ResData[] Packages; /// /// 赠送包 /// public readonly ResData[] Gift; /// /// 排序数字
降序 ///
public readonly int Sort; /// /// 描述 /// public readonly string Desc; public const int __ID__ = 1355365066; public override int GetTypeId() => __ID__; public override string ToString() { return "{ " + "id:" + Id + "," + "platProductId:" + PlatProductId + "," + "name:" + Name + "," + "price:" + Price + "," + "appStoreType:" + AppStoreType + "," + "notShelved:" + NotShelved + "," + "packages:" + Luban.StringUtil.CollectionToString(Packages) + "," + "gift:" + Luban.StringUtil.CollectionToString(Gift) + "," + "sort:" + Sort + "," + "desc:" + Desc + "," + "}"; } } }