2024-04-21 00:21:57 +00:00
|
|
|
// <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;
|
2024-04-29 15:52:45 +00:00
|
|
|
using global::SCHALE.Common.Crypto;
|
2024-04-21 00:21:57 +00:00
|
|
|
using global::Google.FlatBuffers;
|
|
|
|
|
|
|
|
public struct CouponStuffExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static CouponStuffExcel GetRootAsCouponStuffExcel(ByteBuffer _bb) { return GetRootAsCouponStuffExcel(_bb, new CouponStuffExcel()); }
|
|
|
|
public static CouponStuffExcel GetRootAsCouponStuffExcel(ByteBuffer _bb, CouponStuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public CouponStuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long StuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-29 16:52:25 +00:00
|
|
|
public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long ParcelId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public int LimitAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
|
|
public string CouponStuffNameLocalizeKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetCouponStuffNameLocalizeKeyBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetCouponStuffNameLocalizeKeyBytes() { return __p.__vector_as_arraysegment(12); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetCouponStuffNameLocalizeKeyArray() { return __p.__vector_as_array<byte>(12); }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CouponStuffExcel> CreateCouponStuffExcel(FlatBufferBuilder builder,
|
|
|
|
long StuffId = 0,
|
2024-12-29 16:52:25 +00:00
|
|
|
SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_,
|
2024-04-21 00:21:57 +00:00
|
|
|
long ParcelId = 0,
|
|
|
|
int LimitAmount = 0,
|
|
|
|
StringOffset CouponStuffNameLocalizeKeyOffset = default(StringOffset)) {
|
|
|
|
builder.StartTable(5);
|
|
|
|
CouponStuffExcel.AddParcelId(builder, ParcelId);
|
|
|
|
CouponStuffExcel.AddStuffId(builder, StuffId);
|
|
|
|
CouponStuffExcel.AddCouponStuffNameLocalizeKey(builder, CouponStuffNameLocalizeKeyOffset);
|
|
|
|
CouponStuffExcel.AddLimitAmount(builder, LimitAmount);
|
2024-11-08 10:52:05 +00:00
|
|
|
CouponStuffExcel.AddParcelType_(builder, ParcelType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
return CouponStuffExcel.EndCouponStuffExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartCouponStuffExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
|
|
|
|
public static void AddStuffId(FlatBufferBuilder builder, long stuffId) { builder.AddLong(0, stuffId, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddParcelType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType_) { builder.AddInt(1, (int)parcelType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(2, parcelId, 0); }
|
|
|
|
public static void AddLimitAmount(FlatBufferBuilder builder, int limitAmount) { builder.AddInt(3, limitAmount, 0); }
|
|
|
|
public static void AddCouponStuffNameLocalizeKey(FlatBufferBuilder builder, StringOffset couponStuffNameLocalizeKeyOffset) { builder.AddOffset(4, couponStuffNameLocalizeKeyOffset.Value, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CouponStuffExcel> EndCouponStuffExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.CouponStuffExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public CouponStuffExcelT UnPack() {
|
|
|
|
var _o = new CouponStuffExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(CouponStuffExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("CouponStuff");
|
|
|
|
_o.StuffId = TableEncryptionService.Convert(this.StuffId, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ParcelType_ = TableEncryptionService.Convert(this.ParcelType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key);
|
|
|
|
_o.LimitAmount = TableEncryptionService.Convert(this.LimitAmount, key);
|
|
|
|
_o.CouponStuffNameLocalizeKey = TableEncryptionService.Convert(this.CouponStuffNameLocalizeKey, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CouponStuffExcel> Pack(FlatBufferBuilder builder, CouponStuffExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CouponStuffExcel>);
|
|
|
|
var _CouponStuffNameLocalizeKey = _o.CouponStuffNameLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.CouponStuffNameLocalizeKey);
|
|
|
|
return CreateCouponStuffExcel(
|
|
|
|
builder,
|
|
|
|
_o.StuffId,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ParcelType_,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ParcelId,
|
|
|
|
_o.LimitAmount,
|
|
|
|
_CouponStuffNameLocalizeKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class CouponStuffExcelT
|
|
|
|
{
|
|
|
|
public long StuffId { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.ParcelType ParcelType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long ParcelId { get; set; }
|
|
|
|
public int LimitAmount { get; set; }
|
|
|
|
public string CouponStuffNameLocalizeKey { get; set; }
|
|
|
|
|
|
|
|
public CouponStuffExcelT() {
|
|
|
|
this.StuffId = 0;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.ParcelId = 0;
|
|
|
|
this.LimitAmount = 0;
|
|
|
|
this.CouponStuffNameLocalizeKey = null;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class CouponStuffExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*StuffId*/, 8 /*long*/, 8, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 8 /*ParcelId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 10 /*LimitAmount*/, 4 /*int*/, 4, false)
|
|
|
|
&& verifier.VerifyString(tablePos, 12 /*CouponStuffNameLocalizeKey*/, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|