182 lines
10 KiB
C#
182 lines
10 KiB
C#
// <auto-generated>
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
// </auto-generated>
|
|
|
|
namespace SCHALE.Common.FlatData
|
|
{
|
|
|
|
using global::System;
|
|
using global::System.Collections.Generic;
|
|
using global::SCHALE.Common.Crypto;
|
|
using global::Google.FlatBuffers;
|
|
|
|
public struct ShopRefreshExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static ShopRefreshExcel GetRootAsShopRefreshExcel(ByteBuffer _bb) { return GetRootAsShopRefreshExcel(_bb, new ShopRefreshExcel()); }
|
|
public static ShopRefreshExcel GetRootAsShopRefreshExcel(ByteBuffer _bb, ShopRefreshExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public ShopRefreshExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public bool IsLegacy { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
public long GoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public bool IsBundle { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
public long VisibleAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long DisplayOrder { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } }
|
|
public int RefreshGroup { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
public int Prob { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
public string BuyReportEventName { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetBuyReportEventNameBytes() { return __p.__vector_as_span<byte>(24, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(24); }
|
|
#endif
|
|
public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array<byte>(24); }
|
|
public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None_; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ShopRefreshExcel> CreateShopRefreshExcel(FlatBufferBuilder builder,
|
|
long Id = 0,
|
|
uint LocalizeEtcId = 0,
|
|
bool IsLegacy = false,
|
|
long GoodsId = 0,
|
|
bool IsBundle = false,
|
|
long VisibleAmount = 0,
|
|
long DisplayOrder = 0,
|
|
SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General,
|
|
int RefreshGroup = 0,
|
|
int Prob = 0,
|
|
StringOffset BuyReportEventNameOffset = default(StringOffset),
|
|
SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_) {
|
|
builder.StartTable(12);
|
|
ShopRefreshExcel.AddDisplayOrder(builder, DisplayOrder);
|
|
ShopRefreshExcel.AddVisibleAmount(builder, VisibleAmount);
|
|
ShopRefreshExcel.AddGoodsId(builder, GoodsId);
|
|
ShopRefreshExcel.AddId(builder, Id);
|
|
ShopRefreshExcel.AddDisplayTag(builder, DisplayTag);
|
|
ShopRefreshExcel.AddBuyReportEventName(builder, BuyReportEventNameOffset);
|
|
ShopRefreshExcel.AddProb(builder, Prob);
|
|
ShopRefreshExcel.AddRefreshGroup(builder, RefreshGroup);
|
|
ShopRefreshExcel.AddCategoryType(builder, CategoryType);
|
|
ShopRefreshExcel.AddLocalizeEtcId(builder, LocalizeEtcId);
|
|
ShopRefreshExcel.AddIsBundle(builder, IsBundle);
|
|
ShopRefreshExcel.AddIsLegacy(builder, IsLegacy);
|
|
return ShopRefreshExcel.EndShopRefreshExcel(builder);
|
|
}
|
|
|
|
public static void StartShopRefreshExcel(FlatBufferBuilder builder) { builder.StartTable(12); }
|
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
|
|
public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(1, localizeEtcId, 0); }
|
|
public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(2, isLegacy, false); }
|
|
public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(3, goodsId, 0); }
|
|
public static void AddIsBundle(FlatBufferBuilder builder, bool isBundle) { builder.AddBool(4, isBundle, false); }
|
|
public static void AddVisibleAmount(FlatBufferBuilder builder, long visibleAmount) { builder.AddLong(5, visibleAmount, 0); }
|
|
public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(6, displayOrder, 0); }
|
|
public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(7, (int)categoryType, 0); }
|
|
public static void AddRefreshGroup(FlatBufferBuilder builder, int refreshGroup) { builder.AddInt(8, refreshGroup, 0); }
|
|
public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(9, prob, 0); }
|
|
public static void AddBuyReportEventName(FlatBufferBuilder builder, StringOffset buyReportEventNameOffset) { builder.AddOffset(10, buyReportEventNameOffset.Value, 0); }
|
|
public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(11, (int)displayTag, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.ShopRefreshExcel> EndShopRefreshExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.ShopRefreshExcel>(o);
|
|
}
|
|
public ShopRefreshExcelT UnPack() {
|
|
var _o = new ShopRefreshExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(ShopRefreshExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("ShopRefresh");
|
|
_o.Id = TableEncryptionService.Convert(this.Id, key);
|
|
_o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key);
|
|
_o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key);
|
|
_o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key);
|
|
_o.IsBundle = TableEncryptionService.Convert(this.IsBundle, key);
|
|
_o.VisibleAmount = TableEncryptionService.Convert(this.VisibleAmount, key);
|
|
_o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key);
|
|
_o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key);
|
|
_o.RefreshGroup = TableEncryptionService.Convert(this.RefreshGroup, key);
|
|
_o.Prob = TableEncryptionService.Convert(this.Prob, key);
|
|
_o.BuyReportEventName = TableEncryptionService.Convert(this.BuyReportEventName, key);
|
|
_o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.ShopRefreshExcel> Pack(FlatBufferBuilder builder, ShopRefreshExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ShopRefreshExcel>);
|
|
var _BuyReportEventName = _o.BuyReportEventName == null ? default(StringOffset) : builder.CreateString(_o.BuyReportEventName);
|
|
return CreateShopRefreshExcel(
|
|
builder,
|
|
_o.Id,
|
|
_o.LocalizeEtcId,
|
|
_o.IsLegacy,
|
|
_o.GoodsId,
|
|
_o.IsBundle,
|
|
_o.VisibleAmount,
|
|
_o.DisplayOrder,
|
|
_o.CategoryType,
|
|
_o.RefreshGroup,
|
|
_o.Prob,
|
|
_BuyReportEventName,
|
|
_o.DisplayTag);
|
|
}
|
|
}
|
|
|
|
public class ShopRefreshExcelT
|
|
{
|
|
public long Id { get; set; }
|
|
public uint LocalizeEtcId { get; set; }
|
|
public bool IsLegacy { get; set; }
|
|
public long GoodsId { get; set; }
|
|
public bool IsBundle { get; set; }
|
|
public long VisibleAmount { get; set; }
|
|
public long DisplayOrder { get; set; }
|
|
public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; }
|
|
public int RefreshGroup { get; set; }
|
|
public int Prob { get; set; }
|
|
public string BuyReportEventName { get; set; }
|
|
public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get; set; }
|
|
|
|
public ShopRefreshExcelT() {
|
|
this.Id = 0;
|
|
this.LocalizeEtcId = 0;
|
|
this.IsLegacy = false;
|
|
this.GoodsId = 0;
|
|
this.IsBundle = false;
|
|
this.VisibleAmount = 0;
|
|
this.DisplayOrder = 0;
|
|
this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General;
|
|
this.RefreshGroup = 0;
|
|
this.Prob = 0;
|
|
this.BuyReportEventName = null;
|
|
this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_;
|
|
}
|
|
}
|
|
|
|
|
|
static public class ShopRefreshExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*LocalizeEtcId*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*IsLegacy*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*GoodsId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*IsBundle*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyField(tablePos, 14 /*VisibleAmount*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*DisplayOrder*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 18 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*RefreshGroup*/, 4 /*int*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 22 /*Prob*/, 4 /*int*/, 4, false)
|
|
&& verifier.VerifyString(tablePos, 24 /*BuyReportEventName*/, false)
|
|
&& verifier.VerifyField(tablePos, 26 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|