phase 8: lobby UI + cross-stack lobby command catalog + TS FlatBuffers
- Extend pkg/model/lobby and pkg/schema/fbs/lobby.fbs with public-games
list, my-applications/invites lists, game-create, application-submit,
invite-redeem/decline. Mirror the matching transcoder pairs and Go
fixture round-trip tests.
- Wire the seven new lobby message types through
gateway/internal/backendclient/{routes,lobby_commands}.go with
per-command REST helpers, JSON-tolerant decoding of backend wire
shapes, and httptest-based unit coverage for success / 4xx / 5xx /
503 across each command.
- Introduce TS-side FlatBuffers via the `flatbuffers` runtime dep, a
`make fbs-ts` target driving flatc, and the generated bindings under
ui/frontend/src/proto/galaxy/fbs. Phase 7's `user.account.get` decode
now uses these bindings as well, closing the JSON.parse vs
FlatBuffers gap that would have failed against a real local stack.
- Replace the placeholder lobby with five sections (my games, pending
invitations, my applications, public games, create new game) and the
/lobby/create form. Submit-application uses an inline race-name
form on the public-game card; create-game keeps name / description /
turn_schedule / enrollment_ends_at always visible and the rest under
an Advanced toggle with TS-side defaults.
- Update lobby/+page.svelte to throw LobbyError on non-ok result codes;
GalaxyClient.executeCommand now returns { resultCode, payloadBytes }.
- Vitest binding round-trips, lobby.ts wrapper unit tests, lobby-page
+ lobby-create component tests, Playwright lobby-flow.spec covering
create / submit / accept across all four projects. Phase 7 e2e was
migrated to the FlatBuffers fixtures and to click+fill against the
Safari-autofill readonly inputs.
- Mark Phase 8 done in ui/PLAN.md, mirror the wire-format note into
Phase 7, append the new lobby commands to gateway/README.md and
docs/ARCHITECTURE.md, add ui/docs/lobby.md.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
export { ApplicationSubmitRequest, ApplicationSubmitRequestT } from './lobby/application-submit-request.js';
|
||||
export { ApplicationSubmitResponse, ApplicationSubmitResponseT } from './lobby/application-submit-response.js';
|
||||
export { ApplicationSummary, ApplicationSummaryT } from './lobby/application-summary.js';
|
||||
export { ErrorBody, ErrorBodyT } from './lobby/error-body.js';
|
||||
export { ErrorResponse, ErrorResponseT } from './lobby/error-response.js';
|
||||
export { GameCreateRequest, GameCreateRequestT } from './lobby/game-create-request.js';
|
||||
export { GameCreateResponse, GameCreateResponseT } from './lobby/game-create-response.js';
|
||||
export { GameSummary, GameSummaryT } from './lobby/game-summary.js';
|
||||
export { InviteDeclineRequest, InviteDeclineRequestT } from './lobby/invite-decline-request.js';
|
||||
export { InviteDeclineResponse, InviteDeclineResponseT } from './lobby/invite-decline-response.js';
|
||||
export { InviteRedeemRequest, InviteRedeemRequestT } from './lobby/invite-redeem-request.js';
|
||||
export { InviteRedeemResponse, InviteRedeemResponseT } from './lobby/invite-redeem-response.js';
|
||||
export { InviteSummary, InviteSummaryT } from './lobby/invite-summary.js';
|
||||
export { MyApplicationsListRequest, MyApplicationsListRequestT } from './lobby/my-applications-list-request.js';
|
||||
export { MyApplicationsListResponse, MyApplicationsListResponseT } from './lobby/my-applications-list-response.js';
|
||||
export { MyGamesListRequest, MyGamesListRequestT } from './lobby/my-games-list-request.js';
|
||||
export { MyGamesListResponse, MyGamesListResponseT } from './lobby/my-games-list-response.js';
|
||||
export { MyInvitesListRequest, MyInvitesListRequestT } from './lobby/my-invites-list-request.js';
|
||||
export { MyInvitesListResponse, MyInvitesListResponseT } from './lobby/my-invites-list-response.js';
|
||||
export { OpenEnrollmentRequest, OpenEnrollmentRequestT } from './lobby/open-enrollment-request.js';
|
||||
export { OpenEnrollmentResponse, OpenEnrollmentResponseT } from './lobby/open-enrollment-response.js';
|
||||
export { PublicGamesListRequest, PublicGamesListRequestT } from './lobby/public-games-list-request.js';
|
||||
export { PublicGamesListResponse, PublicGamesListResponseT } from './lobby/public-games-list-response.js';
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ApplicationSubmitRequest implements flatbuffers.IUnpackableObject<ApplicationSubmitRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ApplicationSubmitRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsApplicationSubmitRequest(bb:flatbuffers.ByteBuffer, obj?:ApplicationSubmitRequest):ApplicationSubmitRequest {
|
||||
return (obj || new ApplicationSubmitRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsApplicationSubmitRequest(bb:flatbuffers.ByteBuffer, obj?:ApplicationSubmitRequest):ApplicationSubmitRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ApplicationSubmitRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
raceName():string|null
|
||||
raceName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
raceName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startApplicationSubmitRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addRaceName(builder:flatbuffers.Builder, raceNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, raceNameOffset, 0);
|
||||
}
|
||||
|
||||
static endApplicationSubmitRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createApplicationSubmitRequest(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset, raceNameOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ApplicationSubmitRequest.startApplicationSubmitRequest(builder);
|
||||
ApplicationSubmitRequest.addGameId(builder, gameIdOffset);
|
||||
ApplicationSubmitRequest.addRaceName(builder, raceNameOffset);
|
||||
return ApplicationSubmitRequest.endApplicationSubmitRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): ApplicationSubmitRequestT {
|
||||
return new ApplicationSubmitRequestT(
|
||||
this.gameId(),
|
||||
this.raceName()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ApplicationSubmitRequestT): void {
|
||||
_o.gameId = this.gameId();
|
||||
_o.raceName = this.raceName();
|
||||
}
|
||||
}
|
||||
|
||||
export class ApplicationSubmitRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public raceName: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const raceName = (this.raceName !== null ? builder.createString(this.raceName!) : 0);
|
||||
|
||||
return ApplicationSubmitRequest.createApplicationSubmitRequest(builder,
|
||||
gameId,
|
||||
raceName
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ApplicationSummary, ApplicationSummaryT } from './application-summary.js';
|
||||
|
||||
|
||||
export class ApplicationSubmitResponse implements flatbuffers.IUnpackableObject<ApplicationSubmitResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ApplicationSubmitResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsApplicationSubmitResponse(bb:flatbuffers.ByteBuffer, obj?:ApplicationSubmitResponse):ApplicationSubmitResponse {
|
||||
return (obj || new ApplicationSubmitResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsApplicationSubmitResponse(bb:flatbuffers.ByteBuffer, obj?:ApplicationSubmitResponse):ApplicationSubmitResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ApplicationSubmitResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
application(obj?:ApplicationSummary):ApplicationSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new ApplicationSummary()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startApplicationSubmitResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addApplication(builder:flatbuffers.Builder, applicationOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, applicationOffset, 0);
|
||||
}
|
||||
|
||||
static endApplicationSubmitResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createApplicationSubmitResponse(builder:flatbuffers.Builder, applicationOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ApplicationSubmitResponse.startApplicationSubmitResponse(builder);
|
||||
ApplicationSubmitResponse.addApplication(builder, applicationOffset);
|
||||
return ApplicationSubmitResponse.endApplicationSubmitResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): ApplicationSubmitResponseT {
|
||||
return new ApplicationSubmitResponseT(
|
||||
(this.application() !== null ? this.application()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ApplicationSubmitResponseT): void {
|
||||
_o.application = (this.application() !== null ? this.application()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class ApplicationSubmitResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public application: ApplicationSummaryT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const application = (this.application !== null ? this.application!.pack(builder) : 0);
|
||||
|
||||
return ApplicationSubmitResponse.createApplicationSubmitResponse(builder,
|
||||
application
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ApplicationSummary implements flatbuffers.IUnpackableObject<ApplicationSummaryT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ApplicationSummary {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsApplicationSummary(bb:flatbuffers.ByteBuffer, obj?:ApplicationSummary):ApplicationSummary {
|
||||
return (obj || new ApplicationSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsApplicationSummary(bb:flatbuffers.ByteBuffer, obj?:ApplicationSummary):ApplicationSummary {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ApplicationSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
applicationId():string|null
|
||||
applicationId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
applicationId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
applicantUserId():string|null
|
||||
applicantUserId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
applicantUserId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
raceName():string|null
|
||||
raceName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
raceName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
status():string|null
|
||||
status(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
status(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
createdAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
decidedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startApplicationSummary(builder:flatbuffers.Builder) {
|
||||
builder.startObject(7);
|
||||
}
|
||||
|
||||
static addApplicationId(builder:flatbuffers.Builder, applicationIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, applicationIdOffset, 0);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addApplicantUserId(builder:flatbuffers.Builder, applicantUserIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, applicantUserIdOffset, 0);
|
||||
}
|
||||
|
||||
static addRaceName(builder:flatbuffers.Builder, raceNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, raceNameOffset, 0);
|
||||
}
|
||||
|
||||
static addStatus(builder:flatbuffers.Builder, statusOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(4, statusOffset, 0);
|
||||
}
|
||||
|
||||
static addCreatedAtMs(builder:flatbuffers.Builder, createdAtMs:bigint) {
|
||||
builder.addFieldInt64(5, createdAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addDecidedAtMs(builder:flatbuffers.Builder, decidedAtMs:bigint) {
|
||||
builder.addFieldInt64(6, decidedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endApplicationSummary(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createApplicationSummary(builder:flatbuffers.Builder, applicationIdOffset:flatbuffers.Offset, gameIdOffset:flatbuffers.Offset, applicantUserIdOffset:flatbuffers.Offset, raceNameOffset:flatbuffers.Offset, statusOffset:flatbuffers.Offset, createdAtMs:bigint, decidedAtMs:bigint):flatbuffers.Offset {
|
||||
ApplicationSummary.startApplicationSummary(builder);
|
||||
ApplicationSummary.addApplicationId(builder, applicationIdOffset);
|
||||
ApplicationSummary.addGameId(builder, gameIdOffset);
|
||||
ApplicationSummary.addApplicantUserId(builder, applicantUserIdOffset);
|
||||
ApplicationSummary.addRaceName(builder, raceNameOffset);
|
||||
ApplicationSummary.addStatus(builder, statusOffset);
|
||||
ApplicationSummary.addCreatedAtMs(builder, createdAtMs);
|
||||
ApplicationSummary.addDecidedAtMs(builder, decidedAtMs);
|
||||
return ApplicationSummary.endApplicationSummary(builder);
|
||||
}
|
||||
|
||||
unpack(): ApplicationSummaryT {
|
||||
return new ApplicationSummaryT(
|
||||
this.applicationId(),
|
||||
this.gameId(),
|
||||
this.applicantUserId(),
|
||||
this.raceName(),
|
||||
this.status(),
|
||||
this.createdAtMs(),
|
||||
this.decidedAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ApplicationSummaryT): void {
|
||||
_o.applicationId = this.applicationId();
|
||||
_o.gameId = this.gameId();
|
||||
_o.applicantUserId = this.applicantUserId();
|
||||
_o.raceName = this.raceName();
|
||||
_o.status = this.status();
|
||||
_o.createdAtMs = this.createdAtMs();
|
||||
_o.decidedAtMs = this.decidedAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class ApplicationSummaryT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public applicationId: string|Uint8Array|null = null,
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public applicantUserId: string|Uint8Array|null = null,
|
||||
public raceName: string|Uint8Array|null = null,
|
||||
public status: string|Uint8Array|null = null,
|
||||
public createdAtMs: bigint = BigInt('0'),
|
||||
public decidedAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const applicationId = (this.applicationId !== null ? builder.createString(this.applicationId!) : 0);
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const applicantUserId = (this.applicantUserId !== null ? builder.createString(this.applicantUserId!) : 0);
|
||||
const raceName = (this.raceName !== null ? builder.createString(this.raceName!) : 0);
|
||||
const status = (this.status !== null ? builder.createString(this.status!) : 0);
|
||||
|
||||
return ApplicationSummary.createApplicationSummary(builder,
|
||||
applicationId,
|
||||
gameId,
|
||||
applicantUserId,
|
||||
raceName,
|
||||
status,
|
||||
this.createdAtMs,
|
||||
this.decidedAtMs
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ErrorBody implements flatbuffers.IUnpackableObject<ErrorBodyT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ErrorBody {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsErrorBody(bb:flatbuffers.ByteBuffer, obj?:ErrorBody):ErrorBody {
|
||||
return (obj || new ErrorBody()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsErrorBody(bb:flatbuffers.ByteBuffer, obj?:ErrorBody):ErrorBody {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ErrorBody()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
code():string|null
|
||||
code(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
code(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
message():string|null
|
||||
message(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
message(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startErrorBody(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addCode(builder:flatbuffers.Builder, codeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, codeOffset, 0);
|
||||
}
|
||||
|
||||
static addMessage(builder:flatbuffers.Builder, messageOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, messageOffset, 0);
|
||||
}
|
||||
|
||||
static endErrorBody(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createErrorBody(builder:flatbuffers.Builder, codeOffset:flatbuffers.Offset, messageOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ErrorBody.startErrorBody(builder);
|
||||
ErrorBody.addCode(builder, codeOffset);
|
||||
ErrorBody.addMessage(builder, messageOffset);
|
||||
return ErrorBody.endErrorBody(builder);
|
||||
}
|
||||
|
||||
unpack(): ErrorBodyT {
|
||||
return new ErrorBodyT(
|
||||
this.code(),
|
||||
this.message()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ErrorBodyT): void {
|
||||
_o.code = this.code();
|
||||
_o.message = this.message();
|
||||
}
|
||||
}
|
||||
|
||||
export class ErrorBodyT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public code: string|Uint8Array|null = null,
|
||||
public message: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const code = (this.code !== null ? builder.createString(this.code!) : 0);
|
||||
const message = (this.message !== null ? builder.createString(this.message!) : 0);
|
||||
|
||||
return ErrorBody.createErrorBody(builder,
|
||||
code,
|
||||
message
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ErrorBody, ErrorBodyT } from './error-body.js';
|
||||
|
||||
|
||||
export class ErrorResponse implements flatbuffers.IUnpackableObject<ErrorResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ErrorResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsErrorResponse(bb:flatbuffers.ByteBuffer, obj?:ErrorResponse):ErrorResponse {
|
||||
return (obj || new ErrorResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsErrorResponse(bb:flatbuffers.ByteBuffer, obj?:ErrorResponse):ErrorResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ErrorResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
error(obj?:ErrorBody):ErrorBody|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new ErrorBody()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startErrorResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addError(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, errorOffset, 0);
|
||||
}
|
||||
|
||||
static endErrorResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createErrorResponse(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ErrorResponse.startErrorResponse(builder);
|
||||
ErrorResponse.addError(builder, errorOffset);
|
||||
return ErrorResponse.endErrorResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): ErrorResponseT {
|
||||
return new ErrorResponseT(
|
||||
(this.error() !== null ? this.error()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ErrorResponseT): void {
|
||||
_o.error = (this.error() !== null ? this.error()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class ErrorResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public error: ErrorBodyT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const error = (this.error !== null ? this.error!.pack(builder) : 0);
|
||||
|
||||
return ErrorResponse.createErrorResponse(builder,
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class GameCreateRequest implements flatbuffers.IUnpackableObject<GameCreateRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):GameCreateRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsGameCreateRequest(bb:flatbuffers.ByteBuffer, obj?:GameCreateRequest):GameCreateRequest {
|
||||
return (obj || new GameCreateRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsGameCreateRequest(bb:flatbuffers.ByteBuffer, obj?:GameCreateRequest):GameCreateRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new GameCreateRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameName():string|null
|
||||
gameName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
description():string|null
|
||||
description(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
description(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
minPlayers():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
maxPlayers():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
startGapHours():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
startGapPlayers():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
enrollmentEndsAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
turnSchedule():string|null
|
||||
turnSchedule(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
turnSchedule(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 18);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
targetEngineVersion():string|null
|
||||
targetEngineVersion(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
targetEngineVersion(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 20);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startGameCreateRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(9);
|
||||
}
|
||||
|
||||
static addGameName(builder:flatbuffers.Builder, gameNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameNameOffset, 0);
|
||||
}
|
||||
|
||||
static addDescription(builder:flatbuffers.Builder, descriptionOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, descriptionOffset, 0);
|
||||
}
|
||||
|
||||
static addMinPlayers(builder:flatbuffers.Builder, minPlayers:number) {
|
||||
builder.addFieldInt32(2, minPlayers, 0);
|
||||
}
|
||||
|
||||
static addMaxPlayers(builder:flatbuffers.Builder, maxPlayers:number) {
|
||||
builder.addFieldInt32(3, maxPlayers, 0);
|
||||
}
|
||||
|
||||
static addStartGapHours(builder:flatbuffers.Builder, startGapHours:number) {
|
||||
builder.addFieldInt32(4, startGapHours, 0);
|
||||
}
|
||||
|
||||
static addStartGapPlayers(builder:flatbuffers.Builder, startGapPlayers:number) {
|
||||
builder.addFieldInt32(5, startGapPlayers, 0);
|
||||
}
|
||||
|
||||
static addEnrollmentEndsAtMs(builder:flatbuffers.Builder, enrollmentEndsAtMs:bigint) {
|
||||
builder.addFieldInt64(6, enrollmentEndsAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addTurnSchedule(builder:flatbuffers.Builder, turnScheduleOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(7, turnScheduleOffset, 0);
|
||||
}
|
||||
|
||||
static addTargetEngineVersion(builder:flatbuffers.Builder, targetEngineVersionOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(8, targetEngineVersionOffset, 0);
|
||||
}
|
||||
|
||||
static endGameCreateRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createGameCreateRequest(builder:flatbuffers.Builder, gameNameOffset:flatbuffers.Offset, descriptionOffset:flatbuffers.Offset, minPlayers:number, maxPlayers:number, startGapHours:number, startGapPlayers:number, enrollmentEndsAtMs:bigint, turnScheduleOffset:flatbuffers.Offset, targetEngineVersionOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
GameCreateRequest.startGameCreateRequest(builder);
|
||||
GameCreateRequest.addGameName(builder, gameNameOffset);
|
||||
GameCreateRequest.addDescription(builder, descriptionOffset);
|
||||
GameCreateRequest.addMinPlayers(builder, minPlayers);
|
||||
GameCreateRequest.addMaxPlayers(builder, maxPlayers);
|
||||
GameCreateRequest.addStartGapHours(builder, startGapHours);
|
||||
GameCreateRequest.addStartGapPlayers(builder, startGapPlayers);
|
||||
GameCreateRequest.addEnrollmentEndsAtMs(builder, enrollmentEndsAtMs);
|
||||
GameCreateRequest.addTurnSchedule(builder, turnScheduleOffset);
|
||||
GameCreateRequest.addTargetEngineVersion(builder, targetEngineVersionOffset);
|
||||
return GameCreateRequest.endGameCreateRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): GameCreateRequestT {
|
||||
return new GameCreateRequestT(
|
||||
this.gameName(),
|
||||
this.description(),
|
||||
this.minPlayers(),
|
||||
this.maxPlayers(),
|
||||
this.startGapHours(),
|
||||
this.startGapPlayers(),
|
||||
this.enrollmentEndsAtMs(),
|
||||
this.turnSchedule(),
|
||||
this.targetEngineVersion()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: GameCreateRequestT): void {
|
||||
_o.gameName = this.gameName();
|
||||
_o.description = this.description();
|
||||
_o.minPlayers = this.minPlayers();
|
||||
_o.maxPlayers = this.maxPlayers();
|
||||
_o.startGapHours = this.startGapHours();
|
||||
_o.startGapPlayers = this.startGapPlayers();
|
||||
_o.enrollmentEndsAtMs = this.enrollmentEndsAtMs();
|
||||
_o.turnSchedule = this.turnSchedule();
|
||||
_o.targetEngineVersion = this.targetEngineVersion();
|
||||
}
|
||||
}
|
||||
|
||||
export class GameCreateRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameName: string|Uint8Array|null = null,
|
||||
public description: string|Uint8Array|null = null,
|
||||
public minPlayers: number = 0,
|
||||
public maxPlayers: number = 0,
|
||||
public startGapHours: number = 0,
|
||||
public startGapPlayers: number = 0,
|
||||
public enrollmentEndsAtMs: bigint = BigInt('0'),
|
||||
public turnSchedule: string|Uint8Array|null = null,
|
||||
public targetEngineVersion: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameName = (this.gameName !== null ? builder.createString(this.gameName!) : 0);
|
||||
const description = (this.description !== null ? builder.createString(this.description!) : 0);
|
||||
const turnSchedule = (this.turnSchedule !== null ? builder.createString(this.turnSchedule!) : 0);
|
||||
const targetEngineVersion = (this.targetEngineVersion !== null ? builder.createString(this.targetEngineVersion!) : 0);
|
||||
|
||||
return GameCreateRequest.createGameCreateRequest(builder,
|
||||
gameName,
|
||||
description,
|
||||
this.minPlayers,
|
||||
this.maxPlayers,
|
||||
this.startGapHours,
|
||||
this.startGapPlayers,
|
||||
this.enrollmentEndsAtMs,
|
||||
turnSchedule,
|
||||
targetEngineVersion
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { GameSummary, GameSummaryT } from './game-summary.js';
|
||||
|
||||
|
||||
export class GameCreateResponse implements flatbuffers.IUnpackableObject<GameCreateResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):GameCreateResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsGameCreateResponse(bb:flatbuffers.ByteBuffer, obj?:GameCreateResponse):GameCreateResponse {
|
||||
return (obj || new GameCreateResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsGameCreateResponse(bb:flatbuffers.ByteBuffer, obj?:GameCreateResponse):GameCreateResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new GameCreateResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
game(obj?:GameSummary):GameSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new GameSummary()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startGameCreateResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addGame(builder:flatbuffers.Builder, gameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameOffset, 0);
|
||||
}
|
||||
|
||||
static endGameCreateResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createGameCreateResponse(builder:flatbuffers.Builder, gameOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
GameCreateResponse.startGameCreateResponse(builder);
|
||||
GameCreateResponse.addGame(builder, gameOffset);
|
||||
return GameCreateResponse.endGameCreateResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): GameCreateResponseT {
|
||||
return new GameCreateResponseT(
|
||||
(this.game() !== null ? this.game()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: GameCreateResponseT): void {
|
||||
_o.game = (this.game() !== null ? this.game()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class GameCreateResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public game: GameSummaryT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const game = (this.game !== null ? this.game!.pack(builder) : 0);
|
||||
|
||||
return GameCreateResponse.createGameCreateResponse(builder,
|
||||
game
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class GameSummary implements flatbuffers.IUnpackableObject<GameSummaryT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):GameSummary {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsGameSummary(bb:flatbuffers.ByteBuffer, obj?:GameSummary):GameSummary {
|
||||
return (obj || new GameSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsGameSummary(bb:flatbuffers.ByteBuffer, obj?:GameSummary):GameSummary {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new GameSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
gameName():string|null
|
||||
gameName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
gameType():string|null
|
||||
gameType(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameType(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
status():string|null
|
||||
status(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
status(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
ownerUserId():string|null
|
||||
ownerUserId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
ownerUserId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
minPlayers():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
maxPlayers():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
enrollmentEndsAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 18);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
createdAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 20);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
updatedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 22);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startGameSummary(builder:flatbuffers.Builder) {
|
||||
builder.startObject(10);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addGameName(builder:flatbuffers.Builder, gameNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, gameNameOffset, 0);
|
||||
}
|
||||
|
||||
static addGameType(builder:flatbuffers.Builder, gameTypeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, gameTypeOffset, 0);
|
||||
}
|
||||
|
||||
static addStatus(builder:flatbuffers.Builder, statusOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, statusOffset, 0);
|
||||
}
|
||||
|
||||
static addOwnerUserId(builder:flatbuffers.Builder, ownerUserIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(4, ownerUserIdOffset, 0);
|
||||
}
|
||||
|
||||
static addMinPlayers(builder:flatbuffers.Builder, minPlayers:number) {
|
||||
builder.addFieldInt32(5, minPlayers, 0);
|
||||
}
|
||||
|
||||
static addMaxPlayers(builder:flatbuffers.Builder, maxPlayers:number) {
|
||||
builder.addFieldInt32(6, maxPlayers, 0);
|
||||
}
|
||||
|
||||
static addEnrollmentEndsAtMs(builder:flatbuffers.Builder, enrollmentEndsAtMs:bigint) {
|
||||
builder.addFieldInt64(7, enrollmentEndsAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addCreatedAtMs(builder:flatbuffers.Builder, createdAtMs:bigint) {
|
||||
builder.addFieldInt64(8, createdAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addUpdatedAtMs(builder:flatbuffers.Builder, updatedAtMs:bigint) {
|
||||
builder.addFieldInt64(9, updatedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endGameSummary(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createGameSummary(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset, gameNameOffset:flatbuffers.Offset, gameTypeOffset:flatbuffers.Offset, statusOffset:flatbuffers.Offset, ownerUserIdOffset:flatbuffers.Offset, minPlayers:number, maxPlayers:number, enrollmentEndsAtMs:bigint, createdAtMs:bigint, updatedAtMs:bigint):flatbuffers.Offset {
|
||||
GameSummary.startGameSummary(builder);
|
||||
GameSummary.addGameId(builder, gameIdOffset);
|
||||
GameSummary.addGameName(builder, gameNameOffset);
|
||||
GameSummary.addGameType(builder, gameTypeOffset);
|
||||
GameSummary.addStatus(builder, statusOffset);
|
||||
GameSummary.addOwnerUserId(builder, ownerUserIdOffset);
|
||||
GameSummary.addMinPlayers(builder, minPlayers);
|
||||
GameSummary.addMaxPlayers(builder, maxPlayers);
|
||||
GameSummary.addEnrollmentEndsAtMs(builder, enrollmentEndsAtMs);
|
||||
GameSummary.addCreatedAtMs(builder, createdAtMs);
|
||||
GameSummary.addUpdatedAtMs(builder, updatedAtMs);
|
||||
return GameSummary.endGameSummary(builder);
|
||||
}
|
||||
|
||||
unpack(): GameSummaryT {
|
||||
return new GameSummaryT(
|
||||
this.gameId(),
|
||||
this.gameName(),
|
||||
this.gameType(),
|
||||
this.status(),
|
||||
this.ownerUserId(),
|
||||
this.minPlayers(),
|
||||
this.maxPlayers(),
|
||||
this.enrollmentEndsAtMs(),
|
||||
this.createdAtMs(),
|
||||
this.updatedAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: GameSummaryT): void {
|
||||
_o.gameId = this.gameId();
|
||||
_o.gameName = this.gameName();
|
||||
_o.gameType = this.gameType();
|
||||
_o.status = this.status();
|
||||
_o.ownerUserId = this.ownerUserId();
|
||||
_o.minPlayers = this.minPlayers();
|
||||
_o.maxPlayers = this.maxPlayers();
|
||||
_o.enrollmentEndsAtMs = this.enrollmentEndsAtMs();
|
||||
_o.createdAtMs = this.createdAtMs();
|
||||
_o.updatedAtMs = this.updatedAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class GameSummaryT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public gameName: string|Uint8Array|null = null,
|
||||
public gameType: string|Uint8Array|null = null,
|
||||
public status: string|Uint8Array|null = null,
|
||||
public ownerUserId: string|Uint8Array|null = null,
|
||||
public minPlayers: number = 0,
|
||||
public maxPlayers: number = 0,
|
||||
public enrollmentEndsAtMs: bigint = BigInt('0'),
|
||||
public createdAtMs: bigint = BigInt('0'),
|
||||
public updatedAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const gameName = (this.gameName !== null ? builder.createString(this.gameName!) : 0);
|
||||
const gameType = (this.gameType !== null ? builder.createString(this.gameType!) : 0);
|
||||
const status = (this.status !== null ? builder.createString(this.status!) : 0);
|
||||
const ownerUserId = (this.ownerUserId !== null ? builder.createString(this.ownerUserId!) : 0);
|
||||
|
||||
return GameSummary.createGameSummary(builder,
|
||||
gameId,
|
||||
gameName,
|
||||
gameType,
|
||||
status,
|
||||
ownerUserId,
|
||||
this.minPlayers,
|
||||
this.maxPlayers,
|
||||
this.enrollmentEndsAtMs,
|
||||
this.createdAtMs,
|
||||
this.updatedAtMs
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class InviteDeclineRequest implements flatbuffers.IUnpackableObject<InviteDeclineRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):InviteDeclineRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsInviteDeclineRequest(bb:flatbuffers.ByteBuffer, obj?:InviteDeclineRequest):InviteDeclineRequest {
|
||||
return (obj || new InviteDeclineRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsInviteDeclineRequest(bb:flatbuffers.ByteBuffer, obj?:InviteDeclineRequest):InviteDeclineRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new InviteDeclineRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
inviteId():string|null
|
||||
inviteId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
inviteId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startInviteDeclineRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addInviteId(builder:flatbuffers.Builder, inviteIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, inviteIdOffset, 0);
|
||||
}
|
||||
|
||||
static endInviteDeclineRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createInviteDeclineRequest(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset, inviteIdOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
InviteDeclineRequest.startInviteDeclineRequest(builder);
|
||||
InviteDeclineRequest.addGameId(builder, gameIdOffset);
|
||||
InviteDeclineRequest.addInviteId(builder, inviteIdOffset);
|
||||
return InviteDeclineRequest.endInviteDeclineRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): InviteDeclineRequestT {
|
||||
return new InviteDeclineRequestT(
|
||||
this.gameId(),
|
||||
this.inviteId()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: InviteDeclineRequestT): void {
|
||||
_o.gameId = this.gameId();
|
||||
_o.inviteId = this.inviteId();
|
||||
}
|
||||
}
|
||||
|
||||
export class InviteDeclineRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public inviteId: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const inviteId = (this.inviteId !== null ? builder.createString(this.inviteId!) : 0);
|
||||
|
||||
return InviteDeclineRequest.createInviteDeclineRequest(builder,
|
||||
gameId,
|
||||
inviteId
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { InviteSummary, InviteSummaryT } from './invite-summary.js';
|
||||
|
||||
|
||||
export class InviteDeclineResponse implements flatbuffers.IUnpackableObject<InviteDeclineResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):InviteDeclineResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsInviteDeclineResponse(bb:flatbuffers.ByteBuffer, obj?:InviteDeclineResponse):InviteDeclineResponse {
|
||||
return (obj || new InviteDeclineResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsInviteDeclineResponse(bb:flatbuffers.ByteBuffer, obj?:InviteDeclineResponse):InviteDeclineResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new InviteDeclineResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
invite(obj?:InviteSummary):InviteSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new InviteSummary()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startInviteDeclineResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addInvite(builder:flatbuffers.Builder, inviteOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, inviteOffset, 0);
|
||||
}
|
||||
|
||||
static endInviteDeclineResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createInviteDeclineResponse(builder:flatbuffers.Builder, inviteOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
InviteDeclineResponse.startInviteDeclineResponse(builder);
|
||||
InviteDeclineResponse.addInvite(builder, inviteOffset);
|
||||
return InviteDeclineResponse.endInviteDeclineResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): InviteDeclineResponseT {
|
||||
return new InviteDeclineResponseT(
|
||||
(this.invite() !== null ? this.invite()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: InviteDeclineResponseT): void {
|
||||
_o.invite = (this.invite() !== null ? this.invite()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class InviteDeclineResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public invite: InviteSummaryT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const invite = (this.invite !== null ? this.invite!.pack(builder) : 0);
|
||||
|
||||
return InviteDeclineResponse.createInviteDeclineResponse(builder,
|
||||
invite
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class InviteRedeemRequest implements flatbuffers.IUnpackableObject<InviteRedeemRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):InviteRedeemRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsInviteRedeemRequest(bb:flatbuffers.ByteBuffer, obj?:InviteRedeemRequest):InviteRedeemRequest {
|
||||
return (obj || new InviteRedeemRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsInviteRedeemRequest(bb:flatbuffers.ByteBuffer, obj?:InviteRedeemRequest):InviteRedeemRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new InviteRedeemRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
inviteId():string|null
|
||||
inviteId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
inviteId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startInviteRedeemRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addInviteId(builder:flatbuffers.Builder, inviteIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, inviteIdOffset, 0);
|
||||
}
|
||||
|
||||
static endInviteRedeemRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createInviteRedeemRequest(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset, inviteIdOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
InviteRedeemRequest.startInviteRedeemRequest(builder);
|
||||
InviteRedeemRequest.addGameId(builder, gameIdOffset);
|
||||
InviteRedeemRequest.addInviteId(builder, inviteIdOffset);
|
||||
return InviteRedeemRequest.endInviteRedeemRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): InviteRedeemRequestT {
|
||||
return new InviteRedeemRequestT(
|
||||
this.gameId(),
|
||||
this.inviteId()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: InviteRedeemRequestT): void {
|
||||
_o.gameId = this.gameId();
|
||||
_o.inviteId = this.inviteId();
|
||||
}
|
||||
}
|
||||
|
||||
export class InviteRedeemRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public inviteId: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const inviteId = (this.inviteId !== null ? builder.createString(this.inviteId!) : 0);
|
||||
|
||||
return InviteRedeemRequest.createInviteRedeemRequest(builder,
|
||||
gameId,
|
||||
inviteId
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { InviteSummary, InviteSummaryT } from './invite-summary.js';
|
||||
|
||||
|
||||
export class InviteRedeemResponse implements flatbuffers.IUnpackableObject<InviteRedeemResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):InviteRedeemResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsInviteRedeemResponse(bb:flatbuffers.ByteBuffer, obj?:InviteRedeemResponse):InviteRedeemResponse {
|
||||
return (obj || new InviteRedeemResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsInviteRedeemResponse(bb:flatbuffers.ByteBuffer, obj?:InviteRedeemResponse):InviteRedeemResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new InviteRedeemResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
invite(obj?:InviteSummary):InviteSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new InviteSummary()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startInviteRedeemResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addInvite(builder:flatbuffers.Builder, inviteOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, inviteOffset, 0);
|
||||
}
|
||||
|
||||
static endInviteRedeemResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createInviteRedeemResponse(builder:flatbuffers.Builder, inviteOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
InviteRedeemResponse.startInviteRedeemResponse(builder);
|
||||
InviteRedeemResponse.addInvite(builder, inviteOffset);
|
||||
return InviteRedeemResponse.endInviteRedeemResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): InviteRedeemResponseT {
|
||||
return new InviteRedeemResponseT(
|
||||
(this.invite() !== null ? this.invite()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: InviteRedeemResponseT): void {
|
||||
_o.invite = (this.invite() !== null ? this.invite()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class InviteRedeemResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public invite: InviteSummaryT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const invite = (this.invite !== null ? this.invite!.pack(builder) : 0);
|
||||
|
||||
return InviteRedeemResponse.createInviteRedeemResponse(builder,
|
||||
invite
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,222 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class InviteSummary implements flatbuffers.IUnpackableObject<InviteSummaryT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):InviteSummary {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsInviteSummary(bb:flatbuffers.ByteBuffer, obj?:InviteSummary):InviteSummary {
|
||||
return (obj || new InviteSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsInviteSummary(bb:flatbuffers.ByteBuffer, obj?:InviteSummary):InviteSummary {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new InviteSummary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
inviteId():string|null
|
||||
inviteId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
inviteId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
inviterUserId():string|null
|
||||
inviterUserId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
inviterUserId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
invitedUserId():string|null
|
||||
invitedUserId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
invitedUserId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
code():string|null
|
||||
code(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
code(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
raceName():string|null
|
||||
raceName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
raceName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
status():string|null
|
||||
status(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
status(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
createdAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 18);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
expiresAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 20);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
decidedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 22);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startInviteSummary(builder:flatbuffers.Builder) {
|
||||
builder.startObject(10);
|
||||
}
|
||||
|
||||
static addInviteId(builder:flatbuffers.Builder, inviteIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, inviteIdOffset, 0);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addInviterUserId(builder:flatbuffers.Builder, inviterUserIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, inviterUserIdOffset, 0);
|
||||
}
|
||||
|
||||
static addInvitedUserId(builder:flatbuffers.Builder, invitedUserIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, invitedUserIdOffset, 0);
|
||||
}
|
||||
|
||||
static addCode(builder:flatbuffers.Builder, codeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(4, codeOffset, 0);
|
||||
}
|
||||
|
||||
static addRaceName(builder:flatbuffers.Builder, raceNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(5, raceNameOffset, 0);
|
||||
}
|
||||
|
||||
static addStatus(builder:flatbuffers.Builder, statusOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(6, statusOffset, 0);
|
||||
}
|
||||
|
||||
static addCreatedAtMs(builder:flatbuffers.Builder, createdAtMs:bigint) {
|
||||
builder.addFieldInt64(7, createdAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addExpiresAtMs(builder:flatbuffers.Builder, expiresAtMs:bigint) {
|
||||
builder.addFieldInt64(8, expiresAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addDecidedAtMs(builder:flatbuffers.Builder, decidedAtMs:bigint) {
|
||||
builder.addFieldInt64(9, decidedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endInviteSummary(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createInviteSummary(builder:flatbuffers.Builder, inviteIdOffset:flatbuffers.Offset, gameIdOffset:flatbuffers.Offset, inviterUserIdOffset:flatbuffers.Offset, invitedUserIdOffset:flatbuffers.Offset, codeOffset:flatbuffers.Offset, raceNameOffset:flatbuffers.Offset, statusOffset:flatbuffers.Offset, createdAtMs:bigint, expiresAtMs:bigint, decidedAtMs:bigint):flatbuffers.Offset {
|
||||
InviteSummary.startInviteSummary(builder);
|
||||
InviteSummary.addInviteId(builder, inviteIdOffset);
|
||||
InviteSummary.addGameId(builder, gameIdOffset);
|
||||
InviteSummary.addInviterUserId(builder, inviterUserIdOffset);
|
||||
InviteSummary.addInvitedUserId(builder, invitedUserIdOffset);
|
||||
InviteSummary.addCode(builder, codeOffset);
|
||||
InviteSummary.addRaceName(builder, raceNameOffset);
|
||||
InviteSummary.addStatus(builder, statusOffset);
|
||||
InviteSummary.addCreatedAtMs(builder, createdAtMs);
|
||||
InviteSummary.addExpiresAtMs(builder, expiresAtMs);
|
||||
InviteSummary.addDecidedAtMs(builder, decidedAtMs);
|
||||
return InviteSummary.endInviteSummary(builder);
|
||||
}
|
||||
|
||||
unpack(): InviteSummaryT {
|
||||
return new InviteSummaryT(
|
||||
this.inviteId(),
|
||||
this.gameId(),
|
||||
this.inviterUserId(),
|
||||
this.invitedUserId(),
|
||||
this.code(),
|
||||
this.raceName(),
|
||||
this.status(),
|
||||
this.createdAtMs(),
|
||||
this.expiresAtMs(),
|
||||
this.decidedAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: InviteSummaryT): void {
|
||||
_o.inviteId = this.inviteId();
|
||||
_o.gameId = this.gameId();
|
||||
_o.inviterUserId = this.inviterUserId();
|
||||
_o.invitedUserId = this.invitedUserId();
|
||||
_o.code = this.code();
|
||||
_o.raceName = this.raceName();
|
||||
_o.status = this.status();
|
||||
_o.createdAtMs = this.createdAtMs();
|
||||
_o.expiresAtMs = this.expiresAtMs();
|
||||
_o.decidedAtMs = this.decidedAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class InviteSummaryT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public inviteId: string|Uint8Array|null = null,
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public inviterUserId: string|Uint8Array|null = null,
|
||||
public invitedUserId: string|Uint8Array|null = null,
|
||||
public code: string|Uint8Array|null = null,
|
||||
public raceName: string|Uint8Array|null = null,
|
||||
public status: string|Uint8Array|null = null,
|
||||
public createdAtMs: bigint = BigInt('0'),
|
||||
public expiresAtMs: bigint = BigInt('0'),
|
||||
public decidedAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const inviteId = (this.inviteId !== null ? builder.createString(this.inviteId!) : 0);
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const inviterUserId = (this.inviterUserId !== null ? builder.createString(this.inviterUserId!) : 0);
|
||||
const invitedUserId = (this.invitedUserId !== null ? builder.createString(this.invitedUserId!) : 0);
|
||||
const code = (this.code !== null ? builder.createString(this.code!) : 0);
|
||||
const raceName = (this.raceName !== null ? builder.createString(this.raceName!) : 0);
|
||||
const status = (this.status !== null ? builder.createString(this.status!) : 0);
|
||||
|
||||
return InviteSummary.createInviteSummary(builder,
|
||||
inviteId,
|
||||
gameId,
|
||||
inviterUserId,
|
||||
invitedUserId,
|
||||
code,
|
||||
raceName,
|
||||
status,
|
||||
this.createdAtMs,
|
||||
this.expiresAtMs,
|
||||
this.decidedAtMs
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class MyApplicationsListRequest implements flatbuffers.IUnpackableObject<MyApplicationsListRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyApplicationsListRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyApplicationsListRequest(bb:flatbuffers.ByteBuffer, obj?:MyApplicationsListRequest):MyApplicationsListRequest {
|
||||
return (obj || new MyApplicationsListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyApplicationsListRequest(bb:flatbuffers.ByteBuffer, obj?:MyApplicationsListRequest):MyApplicationsListRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyApplicationsListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startMyApplicationsListRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endMyApplicationsListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createMyApplicationsListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
MyApplicationsListRequest.startMyApplicationsListRequest(builder);
|
||||
return MyApplicationsListRequest.endMyApplicationsListRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): MyApplicationsListRequestT {
|
||||
return new MyApplicationsListRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyApplicationsListRequestT): void {}
|
||||
}
|
||||
|
||||
export class MyApplicationsListRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return MyApplicationsListRequest.createMyApplicationsListRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ApplicationSummary, ApplicationSummaryT } from './application-summary.js';
|
||||
|
||||
|
||||
export class MyApplicationsListResponse implements flatbuffers.IUnpackableObject<MyApplicationsListResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyApplicationsListResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyApplicationsListResponse(bb:flatbuffers.ByteBuffer, obj?:MyApplicationsListResponse):MyApplicationsListResponse {
|
||||
return (obj || new MyApplicationsListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyApplicationsListResponse(bb:flatbuffers.ByteBuffer, obj?:MyApplicationsListResponse):MyApplicationsListResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyApplicationsListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
items(index: number, obj?:ApplicationSummary):ApplicationSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new ApplicationSummary()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
itemsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startMyApplicationsListResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addItems(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, itemsOffset, 0);
|
||||
}
|
||||
|
||||
static createItemsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startItemsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static endMyApplicationsListResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createMyApplicationsListResponse(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
MyApplicationsListResponse.startMyApplicationsListResponse(builder);
|
||||
MyApplicationsListResponse.addItems(builder, itemsOffset);
|
||||
return MyApplicationsListResponse.endMyApplicationsListResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): MyApplicationsListResponseT {
|
||||
return new MyApplicationsListResponseT(
|
||||
this.bb!.createObjList<ApplicationSummary, ApplicationSummaryT>(this.items.bind(this), this.itemsLength())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyApplicationsListResponseT): void {
|
||||
_o.items = this.bb!.createObjList<ApplicationSummary, ApplicationSummaryT>(this.items.bind(this), this.itemsLength());
|
||||
}
|
||||
}
|
||||
|
||||
export class MyApplicationsListResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public items: (ApplicationSummaryT)[] = []
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const items = MyApplicationsListResponse.createItemsVector(builder, builder.createObjectOffsetList(this.items));
|
||||
|
||||
return MyApplicationsListResponse.createMyApplicationsListResponse(builder,
|
||||
items
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class MyGamesListRequest implements flatbuffers.IUnpackableObject<MyGamesListRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyGamesListRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyGamesListRequest(bb:flatbuffers.ByteBuffer, obj?:MyGamesListRequest):MyGamesListRequest {
|
||||
return (obj || new MyGamesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyGamesListRequest(bb:flatbuffers.ByteBuffer, obj?:MyGamesListRequest):MyGamesListRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyGamesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startMyGamesListRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endMyGamesListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createMyGamesListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
MyGamesListRequest.startMyGamesListRequest(builder);
|
||||
return MyGamesListRequest.endMyGamesListRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): MyGamesListRequestT {
|
||||
return new MyGamesListRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyGamesListRequestT): void {}
|
||||
}
|
||||
|
||||
export class MyGamesListRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return MyGamesListRequest.createMyGamesListRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { GameSummary, GameSummaryT } from './game-summary.js';
|
||||
|
||||
|
||||
export class MyGamesListResponse implements flatbuffers.IUnpackableObject<MyGamesListResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyGamesListResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyGamesListResponse(bb:flatbuffers.ByteBuffer, obj?:MyGamesListResponse):MyGamesListResponse {
|
||||
return (obj || new MyGamesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyGamesListResponse(bb:flatbuffers.ByteBuffer, obj?:MyGamesListResponse):MyGamesListResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyGamesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
items(index: number, obj?:GameSummary):GameSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new GameSummary()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
itemsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startMyGamesListResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addItems(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, itemsOffset, 0);
|
||||
}
|
||||
|
||||
static createItemsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startItemsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static endMyGamesListResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static finishMyGamesListResponseBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
||||
builder.finish(offset);
|
||||
}
|
||||
|
||||
static finishSizePrefixedMyGamesListResponseBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
||||
builder.finish(offset, undefined, true);
|
||||
}
|
||||
|
||||
static createMyGamesListResponse(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
MyGamesListResponse.startMyGamesListResponse(builder);
|
||||
MyGamesListResponse.addItems(builder, itemsOffset);
|
||||
return MyGamesListResponse.endMyGamesListResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): MyGamesListResponseT {
|
||||
return new MyGamesListResponseT(
|
||||
this.bb!.createObjList<GameSummary, GameSummaryT>(this.items.bind(this), this.itemsLength())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyGamesListResponseT): void {
|
||||
_o.items = this.bb!.createObjList<GameSummary, GameSummaryT>(this.items.bind(this), this.itemsLength());
|
||||
}
|
||||
}
|
||||
|
||||
export class MyGamesListResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public items: (GameSummaryT)[] = []
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const items = MyGamesListResponse.createItemsVector(builder, builder.createObjectOffsetList(this.items));
|
||||
|
||||
return MyGamesListResponse.createMyGamesListResponse(builder,
|
||||
items
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class MyInvitesListRequest implements flatbuffers.IUnpackableObject<MyInvitesListRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyInvitesListRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyInvitesListRequest(bb:flatbuffers.ByteBuffer, obj?:MyInvitesListRequest):MyInvitesListRequest {
|
||||
return (obj || new MyInvitesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyInvitesListRequest(bb:flatbuffers.ByteBuffer, obj?:MyInvitesListRequest):MyInvitesListRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyInvitesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startMyInvitesListRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endMyInvitesListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createMyInvitesListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
MyInvitesListRequest.startMyInvitesListRequest(builder);
|
||||
return MyInvitesListRequest.endMyInvitesListRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): MyInvitesListRequestT {
|
||||
return new MyInvitesListRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyInvitesListRequestT): void {}
|
||||
}
|
||||
|
||||
export class MyInvitesListRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return MyInvitesListRequest.createMyInvitesListRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { InviteSummary, InviteSummaryT } from './invite-summary.js';
|
||||
|
||||
|
||||
export class MyInvitesListResponse implements flatbuffers.IUnpackableObject<MyInvitesListResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):MyInvitesListResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsMyInvitesListResponse(bb:flatbuffers.ByteBuffer, obj?:MyInvitesListResponse):MyInvitesListResponse {
|
||||
return (obj || new MyInvitesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsMyInvitesListResponse(bb:flatbuffers.ByteBuffer, obj?:MyInvitesListResponse):MyInvitesListResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new MyInvitesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
items(index: number, obj?:InviteSummary):InviteSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new InviteSummary()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
itemsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startMyInvitesListResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addItems(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, itemsOffset, 0);
|
||||
}
|
||||
|
||||
static createItemsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startItemsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static endMyInvitesListResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createMyInvitesListResponse(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
MyInvitesListResponse.startMyInvitesListResponse(builder);
|
||||
MyInvitesListResponse.addItems(builder, itemsOffset);
|
||||
return MyInvitesListResponse.endMyInvitesListResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): MyInvitesListResponseT {
|
||||
return new MyInvitesListResponseT(
|
||||
this.bb!.createObjList<InviteSummary, InviteSummaryT>(this.items.bind(this), this.itemsLength())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: MyInvitesListResponseT): void {
|
||||
_o.items = this.bb!.createObjList<InviteSummary, InviteSummaryT>(this.items.bind(this), this.itemsLength());
|
||||
}
|
||||
}
|
||||
|
||||
export class MyInvitesListResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public items: (InviteSummaryT)[] = []
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const items = MyInvitesListResponse.createItemsVector(builder, builder.createObjectOffsetList(this.items));
|
||||
|
||||
return MyInvitesListResponse.createMyInvitesListResponse(builder,
|
||||
items
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class OpenEnrollmentRequest implements flatbuffers.IUnpackableObject<OpenEnrollmentRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):OpenEnrollmentRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsOpenEnrollmentRequest(bb:flatbuffers.ByteBuffer, obj?:OpenEnrollmentRequest):OpenEnrollmentRequest {
|
||||
return (obj || new OpenEnrollmentRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsOpenEnrollmentRequest(bb:flatbuffers.ByteBuffer, obj?:OpenEnrollmentRequest):OpenEnrollmentRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new OpenEnrollmentRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startOpenEnrollmentRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static endOpenEnrollmentRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createOpenEnrollmentRequest(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
OpenEnrollmentRequest.startOpenEnrollmentRequest(builder);
|
||||
OpenEnrollmentRequest.addGameId(builder, gameIdOffset);
|
||||
return OpenEnrollmentRequest.endOpenEnrollmentRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): OpenEnrollmentRequestT {
|
||||
return new OpenEnrollmentRequestT(
|
||||
this.gameId()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: OpenEnrollmentRequestT): void {
|
||||
_o.gameId = this.gameId();
|
||||
}
|
||||
}
|
||||
|
||||
export class OpenEnrollmentRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
|
||||
return OpenEnrollmentRequest.createOpenEnrollmentRequest(builder,
|
||||
gameId
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class OpenEnrollmentResponse implements flatbuffers.IUnpackableObject<OpenEnrollmentResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):OpenEnrollmentResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsOpenEnrollmentResponse(bb:flatbuffers.ByteBuffer, obj?:OpenEnrollmentResponse):OpenEnrollmentResponse {
|
||||
return (obj || new OpenEnrollmentResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsOpenEnrollmentResponse(bb:flatbuffers.ByteBuffer, obj?:OpenEnrollmentResponse):OpenEnrollmentResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new OpenEnrollmentResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
gameId():string|null
|
||||
gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
gameId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
status():string|null
|
||||
status(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
status(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startOpenEnrollmentResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, gameIdOffset, 0);
|
||||
}
|
||||
|
||||
static addStatus(builder:flatbuffers.Builder, statusOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, statusOffset, 0);
|
||||
}
|
||||
|
||||
static endOpenEnrollmentResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createOpenEnrollmentResponse(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset, statusOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
OpenEnrollmentResponse.startOpenEnrollmentResponse(builder);
|
||||
OpenEnrollmentResponse.addGameId(builder, gameIdOffset);
|
||||
OpenEnrollmentResponse.addStatus(builder, statusOffset);
|
||||
return OpenEnrollmentResponse.endOpenEnrollmentResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): OpenEnrollmentResponseT {
|
||||
return new OpenEnrollmentResponseT(
|
||||
this.gameId(),
|
||||
this.status()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: OpenEnrollmentResponseT): void {
|
||||
_o.gameId = this.gameId();
|
||||
_o.status = this.status();
|
||||
}
|
||||
}
|
||||
|
||||
export class OpenEnrollmentResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public gameId: string|Uint8Array|null = null,
|
||||
public status: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const gameId = (this.gameId !== null ? builder.createString(this.gameId!) : 0);
|
||||
const status = (this.status !== null ? builder.createString(this.status!) : 0);
|
||||
|
||||
return OpenEnrollmentResponse.createOpenEnrollmentResponse(builder,
|
||||
gameId,
|
||||
status
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class PublicGamesListRequest implements flatbuffers.IUnpackableObject<PublicGamesListRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):PublicGamesListRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsPublicGamesListRequest(bb:flatbuffers.ByteBuffer, obj?:PublicGamesListRequest):PublicGamesListRequest {
|
||||
return (obj || new PublicGamesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsPublicGamesListRequest(bb:flatbuffers.ByteBuffer, obj?:PublicGamesListRequest):PublicGamesListRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new PublicGamesListRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
page():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
pageSize():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startPublicGamesListRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addPage(builder:flatbuffers.Builder, page:number) {
|
||||
builder.addFieldInt32(0, page, 0);
|
||||
}
|
||||
|
||||
static addPageSize(builder:flatbuffers.Builder, pageSize:number) {
|
||||
builder.addFieldInt32(1, pageSize, 0);
|
||||
}
|
||||
|
||||
static endPublicGamesListRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createPublicGamesListRequest(builder:flatbuffers.Builder, page:number, pageSize:number):flatbuffers.Offset {
|
||||
PublicGamesListRequest.startPublicGamesListRequest(builder);
|
||||
PublicGamesListRequest.addPage(builder, page);
|
||||
PublicGamesListRequest.addPageSize(builder, pageSize);
|
||||
return PublicGamesListRequest.endPublicGamesListRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): PublicGamesListRequestT {
|
||||
return new PublicGamesListRequestT(
|
||||
this.page(),
|
||||
this.pageSize()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: PublicGamesListRequestT): void {
|
||||
_o.page = this.page();
|
||||
_o.pageSize = this.pageSize();
|
||||
}
|
||||
}
|
||||
|
||||
export class PublicGamesListRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public page: number = 0,
|
||||
public pageSize: number = 0
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return PublicGamesListRequest.createPublicGamesListRequest(builder,
|
||||
this.page,
|
||||
this.pageSize
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { GameSummary, GameSummaryT } from './game-summary.js';
|
||||
|
||||
|
||||
export class PublicGamesListResponse implements flatbuffers.IUnpackableObject<PublicGamesListResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):PublicGamesListResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsPublicGamesListResponse(bb:flatbuffers.ByteBuffer, obj?:PublicGamesListResponse):PublicGamesListResponse {
|
||||
return (obj || new PublicGamesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsPublicGamesListResponse(bb:flatbuffers.ByteBuffer, obj?:PublicGamesListResponse):PublicGamesListResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new PublicGamesListResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
items(index: number, obj?:GameSummary):GameSummary|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new GameSummary()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
itemsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
page():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
pageSize():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
total():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startPublicGamesListResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(4);
|
||||
}
|
||||
|
||||
static addItems(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, itemsOffset, 0);
|
||||
}
|
||||
|
||||
static createItemsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startItemsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static addPage(builder:flatbuffers.Builder, page:number) {
|
||||
builder.addFieldInt32(1, page, 0);
|
||||
}
|
||||
|
||||
static addPageSize(builder:flatbuffers.Builder, pageSize:number) {
|
||||
builder.addFieldInt32(2, pageSize, 0);
|
||||
}
|
||||
|
||||
static addTotal(builder:flatbuffers.Builder, total:number) {
|
||||
builder.addFieldInt32(3, total, 0);
|
||||
}
|
||||
|
||||
static endPublicGamesListResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createPublicGamesListResponse(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset, page:number, pageSize:number, total:number):flatbuffers.Offset {
|
||||
PublicGamesListResponse.startPublicGamesListResponse(builder);
|
||||
PublicGamesListResponse.addItems(builder, itemsOffset);
|
||||
PublicGamesListResponse.addPage(builder, page);
|
||||
PublicGamesListResponse.addPageSize(builder, pageSize);
|
||||
PublicGamesListResponse.addTotal(builder, total);
|
||||
return PublicGamesListResponse.endPublicGamesListResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): PublicGamesListResponseT {
|
||||
return new PublicGamesListResponseT(
|
||||
this.bb!.createObjList<GameSummary, GameSummaryT>(this.items.bind(this), this.itemsLength()),
|
||||
this.page(),
|
||||
this.pageSize(),
|
||||
this.total()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: PublicGamesListResponseT): void {
|
||||
_o.items = this.bb!.createObjList<GameSummary, GameSummaryT>(this.items.bind(this), this.itemsLength());
|
||||
_o.page = this.page();
|
||||
_o.pageSize = this.pageSize();
|
||||
_o.total = this.total();
|
||||
}
|
||||
}
|
||||
|
||||
export class PublicGamesListResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public items: (GameSummaryT)[] = [],
|
||||
public page: number = 0,
|
||||
public pageSize: number = 0,
|
||||
public total: number = 0
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const items = PublicGamesListResponse.createItemsVector(builder, builder.createObjectOffsetList(this.items));
|
||||
|
||||
return PublicGamesListResponse.createPublicGamesListResponse(builder,
|
||||
items,
|
||||
this.page,
|
||||
this.pageSize,
|
||||
this.total
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
export { AccountResponse, AccountResponseT } from './user/account-response.js';
|
||||
export { AccountView, AccountViewT } from './user/account-view.js';
|
||||
export { ActiveLimit, ActiveLimitT } from './user/active-limit.js';
|
||||
export { ActiveSanction, ActiveSanctionT } from './user/active-sanction.js';
|
||||
export { ActorRef, ActorRefT } from './user/actor-ref.js';
|
||||
export { DeviceSessionRevocationSummaryView, DeviceSessionRevocationSummaryViewT } from './user/device-session-revocation-summary-view.js';
|
||||
export { DeviceSessionView, DeviceSessionViewT } from './user/device-session-view.js';
|
||||
export { EntitlementSnapshot, EntitlementSnapshotT } from './user/entitlement-snapshot.js';
|
||||
export { ErrorBody, ErrorBodyT } from './user/error-body.js';
|
||||
export { ErrorResponse, ErrorResponseT } from './user/error-response.js';
|
||||
export { GetMyAccountRequest, GetMyAccountRequestT } from './user/get-my-account-request.js';
|
||||
export { ListMySessionsRequest, ListMySessionsRequestT } from './user/list-my-sessions-request.js';
|
||||
export { ListMySessionsResponse, ListMySessionsResponseT } from './user/list-my-sessions-response.js';
|
||||
export { RevokeAllMySessionsRequest, RevokeAllMySessionsRequestT } from './user/revoke-all-my-sessions-request.js';
|
||||
export { RevokeAllMySessionsResponse, RevokeAllMySessionsResponseT } from './user/revoke-all-my-sessions-response.js';
|
||||
export { RevokeMySessionRequest, RevokeMySessionRequestT } from './user/revoke-my-session-request.js';
|
||||
export { RevokeMySessionResponse, RevokeMySessionResponseT } from './user/revoke-my-session-response.js';
|
||||
export { UpdateMyProfileRequest, UpdateMyProfileRequestT } from './user/update-my-profile-request.js';
|
||||
export { UpdateMySettingsRequest, UpdateMySettingsRequestT } from './user/update-my-settings-request.js';
|
||||
@@ -0,0 +1,85 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { AccountView, AccountViewT } from './account-view.js';
|
||||
|
||||
|
||||
export class AccountResponse implements flatbuffers.IUnpackableObject<AccountResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):AccountResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsAccountResponse(bb:flatbuffers.ByteBuffer, obj?:AccountResponse):AccountResponse {
|
||||
return (obj || new AccountResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsAccountResponse(bb:flatbuffers.ByteBuffer, obj?:AccountResponse):AccountResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new AccountResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
account(obj?:AccountView):AccountView|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new AccountView()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startAccountResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addAccount(builder:flatbuffers.Builder, accountOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, accountOffset, 0);
|
||||
}
|
||||
|
||||
static endAccountResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static finishAccountResponseBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
||||
builder.finish(offset);
|
||||
}
|
||||
|
||||
static finishSizePrefixedAccountResponseBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
||||
builder.finish(offset, undefined, true);
|
||||
}
|
||||
|
||||
static createAccountResponse(builder:flatbuffers.Builder, accountOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
AccountResponse.startAccountResponse(builder);
|
||||
AccountResponse.addAccount(builder, accountOffset);
|
||||
return AccountResponse.endAccountResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): AccountResponseT {
|
||||
return new AccountResponseT(
|
||||
(this.account() !== null ? this.account()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: AccountResponseT): void {
|
||||
_o.account = (this.account() !== null ? this.account()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class AccountResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public account: AccountViewT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const account = (this.account !== null ? this.account!.pack(builder) : 0);
|
||||
|
||||
return AccountResponse.createAccountResponse(builder,
|
||||
account
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ActiveLimit, ActiveLimitT } from './active-limit.js';
|
||||
import { ActiveSanction, ActiveSanctionT } from './active-sanction.js';
|
||||
import { EntitlementSnapshot, EntitlementSnapshotT } from './entitlement-snapshot.js';
|
||||
|
||||
|
||||
export class AccountView implements flatbuffers.IUnpackableObject<AccountViewT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):AccountView {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsAccountView(bb:flatbuffers.ByteBuffer, obj?:AccountView):AccountView {
|
||||
return (obj || new AccountView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsAccountView(bb:flatbuffers.ByteBuffer, obj?:AccountView):AccountView {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new AccountView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
userId():string|null
|
||||
userId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
userId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
email():string|null
|
||||
email(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
email(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
userName():string|null
|
||||
userName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
userName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
displayName():string|null
|
||||
displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
displayName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
preferredLanguage():string|null
|
||||
preferredLanguage(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
preferredLanguage(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
timeZone():string|null
|
||||
timeZone(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
timeZone(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
declaredCountry():string|null
|
||||
declaredCountry(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
declaredCountry(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
entitlement(obj?:EntitlementSnapshot):EntitlementSnapshot|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 18);
|
||||
return offset ? (obj || new EntitlementSnapshot()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
activeSanctions(index: number, obj?:ActiveSanction):ActiveSanction|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 20);
|
||||
return offset ? (obj || new ActiveSanction()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
activeSanctionsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 20);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
activeLimits(index: number, obj?:ActiveLimit):ActiveLimit|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 22);
|
||||
return offset ? (obj || new ActiveLimit()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
activeLimitsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 22);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
createdAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 24);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
updatedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 26);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startAccountView(builder:flatbuffers.Builder) {
|
||||
builder.startObject(12);
|
||||
}
|
||||
|
||||
static addUserId(builder:flatbuffers.Builder, userIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, userIdOffset, 0);
|
||||
}
|
||||
|
||||
static addEmail(builder:flatbuffers.Builder, emailOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, emailOffset, 0);
|
||||
}
|
||||
|
||||
static addUserName(builder:flatbuffers.Builder, userNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, userNameOffset, 0);
|
||||
}
|
||||
|
||||
static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, displayNameOffset, 0);
|
||||
}
|
||||
|
||||
static addPreferredLanguage(builder:flatbuffers.Builder, preferredLanguageOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(4, preferredLanguageOffset, 0);
|
||||
}
|
||||
|
||||
static addTimeZone(builder:flatbuffers.Builder, timeZoneOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(5, timeZoneOffset, 0);
|
||||
}
|
||||
|
||||
static addDeclaredCountry(builder:flatbuffers.Builder, declaredCountryOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(6, declaredCountryOffset, 0);
|
||||
}
|
||||
|
||||
static addEntitlement(builder:flatbuffers.Builder, entitlementOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(7, entitlementOffset, 0);
|
||||
}
|
||||
|
||||
static addActiveSanctions(builder:flatbuffers.Builder, activeSanctionsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(8, activeSanctionsOffset, 0);
|
||||
}
|
||||
|
||||
static createActiveSanctionsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startActiveSanctionsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static addActiveLimits(builder:flatbuffers.Builder, activeLimitsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(9, activeLimitsOffset, 0);
|
||||
}
|
||||
|
||||
static createActiveLimitsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startActiveLimitsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static addCreatedAtMs(builder:flatbuffers.Builder, createdAtMs:bigint) {
|
||||
builder.addFieldInt64(10, createdAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addUpdatedAtMs(builder:flatbuffers.Builder, updatedAtMs:bigint) {
|
||||
builder.addFieldInt64(11, updatedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endAccountView(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
unpack(): AccountViewT {
|
||||
return new AccountViewT(
|
||||
this.userId(),
|
||||
this.email(),
|
||||
this.userName(),
|
||||
this.displayName(),
|
||||
this.preferredLanguage(),
|
||||
this.timeZone(),
|
||||
this.declaredCountry(),
|
||||
(this.entitlement() !== null ? this.entitlement()!.unpack() : null),
|
||||
this.bb!.createObjList<ActiveSanction, ActiveSanctionT>(this.activeSanctions.bind(this), this.activeSanctionsLength()),
|
||||
this.bb!.createObjList<ActiveLimit, ActiveLimitT>(this.activeLimits.bind(this), this.activeLimitsLength()),
|
||||
this.createdAtMs(),
|
||||
this.updatedAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: AccountViewT): void {
|
||||
_o.userId = this.userId();
|
||||
_o.email = this.email();
|
||||
_o.userName = this.userName();
|
||||
_o.displayName = this.displayName();
|
||||
_o.preferredLanguage = this.preferredLanguage();
|
||||
_o.timeZone = this.timeZone();
|
||||
_o.declaredCountry = this.declaredCountry();
|
||||
_o.entitlement = (this.entitlement() !== null ? this.entitlement()!.unpack() : null);
|
||||
_o.activeSanctions = this.bb!.createObjList<ActiveSanction, ActiveSanctionT>(this.activeSanctions.bind(this), this.activeSanctionsLength());
|
||||
_o.activeLimits = this.bb!.createObjList<ActiveLimit, ActiveLimitT>(this.activeLimits.bind(this), this.activeLimitsLength());
|
||||
_o.createdAtMs = this.createdAtMs();
|
||||
_o.updatedAtMs = this.updatedAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class AccountViewT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public userId: string|Uint8Array|null = null,
|
||||
public email: string|Uint8Array|null = null,
|
||||
public userName: string|Uint8Array|null = null,
|
||||
public displayName: string|Uint8Array|null = null,
|
||||
public preferredLanguage: string|Uint8Array|null = null,
|
||||
public timeZone: string|Uint8Array|null = null,
|
||||
public declaredCountry: string|Uint8Array|null = null,
|
||||
public entitlement: EntitlementSnapshotT|null = null,
|
||||
public activeSanctions: (ActiveSanctionT)[] = [],
|
||||
public activeLimits: (ActiveLimitT)[] = [],
|
||||
public createdAtMs: bigint = BigInt('0'),
|
||||
public updatedAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const userId = (this.userId !== null ? builder.createString(this.userId!) : 0);
|
||||
const email = (this.email !== null ? builder.createString(this.email!) : 0);
|
||||
const userName = (this.userName !== null ? builder.createString(this.userName!) : 0);
|
||||
const displayName = (this.displayName !== null ? builder.createString(this.displayName!) : 0);
|
||||
const preferredLanguage = (this.preferredLanguage !== null ? builder.createString(this.preferredLanguage!) : 0);
|
||||
const timeZone = (this.timeZone !== null ? builder.createString(this.timeZone!) : 0);
|
||||
const declaredCountry = (this.declaredCountry !== null ? builder.createString(this.declaredCountry!) : 0);
|
||||
const entitlement = (this.entitlement !== null ? this.entitlement!.pack(builder) : 0);
|
||||
const activeSanctions = AccountView.createActiveSanctionsVector(builder, builder.createObjectOffsetList(this.activeSanctions));
|
||||
const activeLimits = AccountView.createActiveLimitsVector(builder, builder.createObjectOffsetList(this.activeLimits));
|
||||
|
||||
AccountView.startAccountView(builder);
|
||||
AccountView.addUserId(builder, userId);
|
||||
AccountView.addEmail(builder, email);
|
||||
AccountView.addUserName(builder, userName);
|
||||
AccountView.addDisplayName(builder, displayName);
|
||||
AccountView.addPreferredLanguage(builder, preferredLanguage);
|
||||
AccountView.addTimeZone(builder, timeZone);
|
||||
AccountView.addDeclaredCountry(builder, declaredCountry);
|
||||
AccountView.addEntitlement(builder, entitlement);
|
||||
AccountView.addActiveSanctions(builder, activeSanctions);
|
||||
AccountView.addActiveLimits(builder, activeLimits);
|
||||
AccountView.addCreatedAtMs(builder, this.createdAtMs);
|
||||
AccountView.addUpdatedAtMs(builder, this.updatedAtMs);
|
||||
|
||||
return AccountView.endAccountView(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ActorRef, ActorRefT } from './actor-ref.js';
|
||||
|
||||
|
||||
export class ActiveLimit implements flatbuffers.IUnpackableObject<ActiveLimitT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ActiveLimit {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsActiveLimit(bb:flatbuffers.ByteBuffer, obj?:ActiveLimit):ActiveLimit {
|
||||
return (obj || new ActiveLimit()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsActiveLimit(bb:flatbuffers.ByteBuffer, obj?:ActiveLimit):ActiveLimit {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ActiveLimit()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
limitCode():string|null
|
||||
limitCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
limitCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
value():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
reasonCode():string|null
|
||||
reasonCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
reasonCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
actor(obj?:ActorRef):ActorRef|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? (obj || new ActorRef()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
appliedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
expiresAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startActiveLimit(builder:flatbuffers.Builder) {
|
||||
builder.startObject(6);
|
||||
}
|
||||
|
||||
static addLimitCode(builder:flatbuffers.Builder, limitCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, limitCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addValue(builder:flatbuffers.Builder, value:bigint) {
|
||||
builder.addFieldInt64(1, value, BigInt('0'));
|
||||
}
|
||||
|
||||
static addReasonCode(builder:flatbuffers.Builder, reasonCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, reasonCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addActor(builder:flatbuffers.Builder, actorOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, actorOffset, 0);
|
||||
}
|
||||
|
||||
static addAppliedAtMs(builder:flatbuffers.Builder, appliedAtMs:bigint) {
|
||||
builder.addFieldInt64(4, appliedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addExpiresAtMs(builder:flatbuffers.Builder, expiresAtMs:bigint) {
|
||||
builder.addFieldInt64(5, expiresAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endActiveLimit(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
unpack(): ActiveLimitT {
|
||||
return new ActiveLimitT(
|
||||
this.limitCode(),
|
||||
this.value(),
|
||||
this.reasonCode(),
|
||||
(this.actor() !== null ? this.actor()!.unpack() : null),
|
||||
this.appliedAtMs(),
|
||||
this.expiresAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ActiveLimitT): void {
|
||||
_o.limitCode = this.limitCode();
|
||||
_o.value = this.value();
|
||||
_o.reasonCode = this.reasonCode();
|
||||
_o.actor = (this.actor() !== null ? this.actor()!.unpack() : null);
|
||||
_o.appliedAtMs = this.appliedAtMs();
|
||||
_o.expiresAtMs = this.expiresAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class ActiveLimitT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public limitCode: string|Uint8Array|null = null,
|
||||
public value: bigint = BigInt('0'),
|
||||
public reasonCode: string|Uint8Array|null = null,
|
||||
public actor: ActorRefT|null = null,
|
||||
public appliedAtMs: bigint = BigInt('0'),
|
||||
public expiresAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const limitCode = (this.limitCode !== null ? builder.createString(this.limitCode!) : 0);
|
||||
const reasonCode = (this.reasonCode !== null ? builder.createString(this.reasonCode!) : 0);
|
||||
const actor = (this.actor !== null ? this.actor!.pack(builder) : 0);
|
||||
|
||||
ActiveLimit.startActiveLimit(builder);
|
||||
ActiveLimit.addLimitCode(builder, limitCode);
|
||||
ActiveLimit.addValue(builder, this.value);
|
||||
ActiveLimit.addReasonCode(builder, reasonCode);
|
||||
ActiveLimit.addActor(builder, actor);
|
||||
ActiveLimit.addAppliedAtMs(builder, this.appliedAtMs);
|
||||
ActiveLimit.addExpiresAtMs(builder, this.expiresAtMs);
|
||||
|
||||
return ActiveLimit.endActiveLimit(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ActorRef, ActorRefT } from './actor-ref.js';
|
||||
|
||||
|
||||
export class ActiveSanction implements flatbuffers.IUnpackableObject<ActiveSanctionT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ActiveSanction {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsActiveSanction(bb:flatbuffers.ByteBuffer, obj?:ActiveSanction):ActiveSanction {
|
||||
return (obj || new ActiveSanction()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsActiveSanction(bb:flatbuffers.ByteBuffer, obj?:ActiveSanction):ActiveSanction {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ActiveSanction()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
sanctionCode():string|null
|
||||
sanctionCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
sanctionCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
scope():string|null
|
||||
scope(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
scope(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
reasonCode():string|null
|
||||
reasonCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
reasonCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
actor(obj?:ActorRef):ActorRef|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? (obj || new ActorRef()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
appliedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
expiresAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startActiveSanction(builder:flatbuffers.Builder) {
|
||||
builder.startObject(6);
|
||||
}
|
||||
|
||||
static addSanctionCode(builder:flatbuffers.Builder, sanctionCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, sanctionCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addScope(builder:flatbuffers.Builder, scopeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, scopeOffset, 0);
|
||||
}
|
||||
|
||||
static addReasonCode(builder:flatbuffers.Builder, reasonCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, reasonCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addActor(builder:flatbuffers.Builder, actorOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, actorOffset, 0);
|
||||
}
|
||||
|
||||
static addAppliedAtMs(builder:flatbuffers.Builder, appliedAtMs:bigint) {
|
||||
builder.addFieldInt64(4, appliedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addExpiresAtMs(builder:flatbuffers.Builder, expiresAtMs:bigint) {
|
||||
builder.addFieldInt64(5, expiresAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endActiveSanction(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
unpack(): ActiveSanctionT {
|
||||
return new ActiveSanctionT(
|
||||
this.sanctionCode(),
|
||||
this.scope(),
|
||||
this.reasonCode(),
|
||||
(this.actor() !== null ? this.actor()!.unpack() : null),
|
||||
this.appliedAtMs(),
|
||||
this.expiresAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ActiveSanctionT): void {
|
||||
_o.sanctionCode = this.sanctionCode();
|
||||
_o.scope = this.scope();
|
||||
_o.reasonCode = this.reasonCode();
|
||||
_o.actor = (this.actor() !== null ? this.actor()!.unpack() : null);
|
||||
_o.appliedAtMs = this.appliedAtMs();
|
||||
_o.expiresAtMs = this.expiresAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class ActiveSanctionT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public sanctionCode: string|Uint8Array|null = null,
|
||||
public scope: string|Uint8Array|null = null,
|
||||
public reasonCode: string|Uint8Array|null = null,
|
||||
public actor: ActorRefT|null = null,
|
||||
public appliedAtMs: bigint = BigInt('0'),
|
||||
public expiresAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const sanctionCode = (this.sanctionCode !== null ? builder.createString(this.sanctionCode!) : 0);
|
||||
const scope = (this.scope !== null ? builder.createString(this.scope!) : 0);
|
||||
const reasonCode = (this.reasonCode !== null ? builder.createString(this.reasonCode!) : 0);
|
||||
const actor = (this.actor !== null ? this.actor!.pack(builder) : 0);
|
||||
|
||||
ActiveSanction.startActiveSanction(builder);
|
||||
ActiveSanction.addSanctionCode(builder, sanctionCode);
|
||||
ActiveSanction.addScope(builder, scope);
|
||||
ActiveSanction.addReasonCode(builder, reasonCode);
|
||||
ActiveSanction.addActor(builder, actor);
|
||||
ActiveSanction.addAppliedAtMs(builder, this.appliedAtMs);
|
||||
ActiveSanction.addExpiresAtMs(builder, this.expiresAtMs);
|
||||
|
||||
return ActiveSanction.endActiveSanction(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ActorRef implements flatbuffers.IUnpackableObject<ActorRefT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ActorRef {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsActorRef(bb:flatbuffers.ByteBuffer, obj?:ActorRef):ActorRef {
|
||||
return (obj || new ActorRef()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsActorRef(bb:flatbuffers.ByteBuffer, obj?:ActorRef):ActorRef {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ActorRef()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
type():string|null
|
||||
type(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
type(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
id():string|null
|
||||
id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
id(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startActorRef(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addType(builder:flatbuffers.Builder, typeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, typeOffset, 0);
|
||||
}
|
||||
|
||||
static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, idOffset, 0);
|
||||
}
|
||||
|
||||
static endActorRef(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createActorRef(builder:flatbuffers.Builder, typeOffset:flatbuffers.Offset, idOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ActorRef.startActorRef(builder);
|
||||
ActorRef.addType(builder, typeOffset);
|
||||
ActorRef.addId(builder, idOffset);
|
||||
return ActorRef.endActorRef(builder);
|
||||
}
|
||||
|
||||
unpack(): ActorRefT {
|
||||
return new ActorRefT(
|
||||
this.type(),
|
||||
this.id()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ActorRefT): void {
|
||||
_o.type = this.type();
|
||||
_o.id = this.id();
|
||||
}
|
||||
}
|
||||
|
||||
export class ActorRefT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public type: string|Uint8Array|null = null,
|
||||
public id: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const type = (this.type !== null ? builder.createString(this.type!) : 0);
|
||||
const id = (this.id !== null ? builder.createString(this.id!) : 0);
|
||||
|
||||
return ActorRef.createActorRef(builder,
|
||||
type,
|
||||
id
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class DeviceSessionRevocationSummaryView implements flatbuffers.IUnpackableObject<DeviceSessionRevocationSummaryViewT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):DeviceSessionRevocationSummaryView {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsDeviceSessionRevocationSummaryView(bb:flatbuffers.ByteBuffer, obj?:DeviceSessionRevocationSummaryView):DeviceSessionRevocationSummaryView {
|
||||
return (obj || new DeviceSessionRevocationSummaryView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsDeviceSessionRevocationSummaryView(bb:flatbuffers.ByteBuffer, obj?:DeviceSessionRevocationSummaryView):DeviceSessionRevocationSummaryView {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new DeviceSessionRevocationSummaryView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
userId():string|null
|
||||
userId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
userId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
revokedCount():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startDeviceSessionRevocationSummaryView(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addUserId(builder:flatbuffers.Builder, userIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, userIdOffset, 0);
|
||||
}
|
||||
|
||||
static addRevokedCount(builder:flatbuffers.Builder, revokedCount:number) {
|
||||
builder.addFieldInt32(1, revokedCount, 0);
|
||||
}
|
||||
|
||||
static endDeviceSessionRevocationSummaryView(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createDeviceSessionRevocationSummaryView(builder:flatbuffers.Builder, userIdOffset:flatbuffers.Offset, revokedCount:number):flatbuffers.Offset {
|
||||
DeviceSessionRevocationSummaryView.startDeviceSessionRevocationSummaryView(builder);
|
||||
DeviceSessionRevocationSummaryView.addUserId(builder, userIdOffset);
|
||||
DeviceSessionRevocationSummaryView.addRevokedCount(builder, revokedCount);
|
||||
return DeviceSessionRevocationSummaryView.endDeviceSessionRevocationSummaryView(builder);
|
||||
}
|
||||
|
||||
unpack(): DeviceSessionRevocationSummaryViewT {
|
||||
return new DeviceSessionRevocationSummaryViewT(
|
||||
this.userId(),
|
||||
this.revokedCount()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: DeviceSessionRevocationSummaryViewT): void {
|
||||
_o.userId = this.userId();
|
||||
_o.revokedCount = this.revokedCount();
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceSessionRevocationSummaryViewT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public userId: string|Uint8Array|null = null,
|
||||
public revokedCount: number = 0
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const userId = (this.userId !== null ? builder.createString(this.userId!) : 0);
|
||||
|
||||
return DeviceSessionRevocationSummaryView.createDeviceSessionRevocationSummaryView(builder,
|
||||
userId,
|
||||
this.revokedCount
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class DeviceSessionView implements flatbuffers.IUnpackableObject<DeviceSessionViewT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):DeviceSessionView {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsDeviceSessionView(bb:flatbuffers.ByteBuffer, obj?:DeviceSessionView):DeviceSessionView {
|
||||
return (obj || new DeviceSessionView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsDeviceSessionView(bb:flatbuffers.ByteBuffer, obj?:DeviceSessionView):DeviceSessionView {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new DeviceSessionView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
deviceSessionId():string|null
|
||||
deviceSessionId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
deviceSessionId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
userId():string|null
|
||||
userId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
userId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
status():string|null
|
||||
status(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
status(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
clientPublicKey():string|null
|
||||
clientPublicKey(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
clientPublicKey(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
createdAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
revokedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
lastSeenAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startDeviceSessionView(builder:flatbuffers.Builder) {
|
||||
builder.startObject(7);
|
||||
}
|
||||
|
||||
static addDeviceSessionId(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, deviceSessionIdOffset, 0);
|
||||
}
|
||||
|
||||
static addUserId(builder:flatbuffers.Builder, userIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, userIdOffset, 0);
|
||||
}
|
||||
|
||||
static addStatus(builder:flatbuffers.Builder, statusOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, statusOffset, 0);
|
||||
}
|
||||
|
||||
static addClientPublicKey(builder:flatbuffers.Builder, clientPublicKeyOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, clientPublicKeyOffset, 0);
|
||||
}
|
||||
|
||||
static addCreatedAtMs(builder:flatbuffers.Builder, createdAtMs:bigint) {
|
||||
builder.addFieldInt64(4, createdAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addRevokedAtMs(builder:flatbuffers.Builder, revokedAtMs:bigint) {
|
||||
builder.addFieldInt64(5, revokedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addLastSeenAtMs(builder:flatbuffers.Builder, lastSeenAtMs:bigint) {
|
||||
builder.addFieldInt64(6, lastSeenAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endDeviceSessionView(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createDeviceSessionView(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset, userIdOffset:flatbuffers.Offset, statusOffset:flatbuffers.Offset, clientPublicKeyOffset:flatbuffers.Offset, createdAtMs:bigint, revokedAtMs:bigint, lastSeenAtMs:bigint):flatbuffers.Offset {
|
||||
DeviceSessionView.startDeviceSessionView(builder);
|
||||
DeviceSessionView.addDeviceSessionId(builder, deviceSessionIdOffset);
|
||||
DeviceSessionView.addUserId(builder, userIdOffset);
|
||||
DeviceSessionView.addStatus(builder, statusOffset);
|
||||
DeviceSessionView.addClientPublicKey(builder, clientPublicKeyOffset);
|
||||
DeviceSessionView.addCreatedAtMs(builder, createdAtMs);
|
||||
DeviceSessionView.addRevokedAtMs(builder, revokedAtMs);
|
||||
DeviceSessionView.addLastSeenAtMs(builder, lastSeenAtMs);
|
||||
return DeviceSessionView.endDeviceSessionView(builder);
|
||||
}
|
||||
|
||||
unpack(): DeviceSessionViewT {
|
||||
return new DeviceSessionViewT(
|
||||
this.deviceSessionId(),
|
||||
this.userId(),
|
||||
this.status(),
|
||||
this.clientPublicKey(),
|
||||
this.createdAtMs(),
|
||||
this.revokedAtMs(),
|
||||
this.lastSeenAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: DeviceSessionViewT): void {
|
||||
_o.deviceSessionId = this.deviceSessionId();
|
||||
_o.userId = this.userId();
|
||||
_o.status = this.status();
|
||||
_o.clientPublicKey = this.clientPublicKey();
|
||||
_o.createdAtMs = this.createdAtMs();
|
||||
_o.revokedAtMs = this.revokedAtMs();
|
||||
_o.lastSeenAtMs = this.lastSeenAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceSessionViewT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public deviceSessionId: string|Uint8Array|null = null,
|
||||
public userId: string|Uint8Array|null = null,
|
||||
public status: string|Uint8Array|null = null,
|
||||
public clientPublicKey: string|Uint8Array|null = null,
|
||||
public createdAtMs: bigint = BigInt('0'),
|
||||
public revokedAtMs: bigint = BigInt('0'),
|
||||
public lastSeenAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const deviceSessionId = (this.deviceSessionId !== null ? builder.createString(this.deviceSessionId!) : 0);
|
||||
const userId = (this.userId !== null ? builder.createString(this.userId!) : 0);
|
||||
const status = (this.status !== null ? builder.createString(this.status!) : 0);
|
||||
const clientPublicKey = (this.clientPublicKey !== null ? builder.createString(this.clientPublicKey!) : 0);
|
||||
|
||||
return DeviceSessionView.createDeviceSessionView(builder,
|
||||
deviceSessionId,
|
||||
userId,
|
||||
status,
|
||||
clientPublicKey,
|
||||
this.createdAtMs,
|
||||
this.revokedAtMs,
|
||||
this.lastSeenAtMs
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ActorRef, ActorRefT } from './actor-ref.js';
|
||||
|
||||
|
||||
export class EntitlementSnapshot implements flatbuffers.IUnpackableObject<EntitlementSnapshotT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):EntitlementSnapshot {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsEntitlementSnapshot(bb:flatbuffers.ByteBuffer, obj?:EntitlementSnapshot):EntitlementSnapshot {
|
||||
return (obj || new EntitlementSnapshot()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsEntitlementSnapshot(bb:flatbuffers.ByteBuffer, obj?:EntitlementSnapshot):EntitlementSnapshot {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new EntitlementSnapshot()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
planCode():string|null
|
||||
planCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
planCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
isPaid():boolean {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
||||
}
|
||||
|
||||
source():string|null
|
||||
source(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
source(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
actor(obj?:ActorRef):ActorRef|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 10);
|
||||
return offset ? (obj || new ActorRef()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
reasonCode():string|null
|
||||
reasonCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
reasonCode(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 12);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
startsAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 14);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
endsAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 16);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
updatedAtMs():bigint {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 18);
|
||||
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
|
||||
}
|
||||
|
||||
static startEntitlementSnapshot(builder:flatbuffers.Builder) {
|
||||
builder.startObject(8);
|
||||
}
|
||||
|
||||
static addPlanCode(builder:flatbuffers.Builder, planCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, planCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addIsPaid(builder:flatbuffers.Builder, isPaid:boolean) {
|
||||
builder.addFieldInt8(1, +isPaid, +false);
|
||||
}
|
||||
|
||||
static addSource(builder:flatbuffers.Builder, sourceOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(2, sourceOffset, 0);
|
||||
}
|
||||
|
||||
static addActor(builder:flatbuffers.Builder, actorOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(3, actorOffset, 0);
|
||||
}
|
||||
|
||||
static addReasonCode(builder:flatbuffers.Builder, reasonCodeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(4, reasonCodeOffset, 0);
|
||||
}
|
||||
|
||||
static addStartsAtMs(builder:flatbuffers.Builder, startsAtMs:bigint) {
|
||||
builder.addFieldInt64(5, startsAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addEndsAtMs(builder:flatbuffers.Builder, endsAtMs:bigint) {
|
||||
builder.addFieldInt64(6, endsAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static addUpdatedAtMs(builder:flatbuffers.Builder, updatedAtMs:bigint) {
|
||||
builder.addFieldInt64(7, updatedAtMs, BigInt('0'));
|
||||
}
|
||||
|
||||
static endEntitlementSnapshot(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
unpack(): EntitlementSnapshotT {
|
||||
return new EntitlementSnapshotT(
|
||||
this.planCode(),
|
||||
this.isPaid(),
|
||||
this.source(),
|
||||
(this.actor() !== null ? this.actor()!.unpack() : null),
|
||||
this.reasonCode(),
|
||||
this.startsAtMs(),
|
||||
this.endsAtMs(),
|
||||
this.updatedAtMs()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: EntitlementSnapshotT): void {
|
||||
_o.planCode = this.planCode();
|
||||
_o.isPaid = this.isPaid();
|
||||
_o.source = this.source();
|
||||
_o.actor = (this.actor() !== null ? this.actor()!.unpack() : null);
|
||||
_o.reasonCode = this.reasonCode();
|
||||
_o.startsAtMs = this.startsAtMs();
|
||||
_o.endsAtMs = this.endsAtMs();
|
||||
_o.updatedAtMs = this.updatedAtMs();
|
||||
}
|
||||
}
|
||||
|
||||
export class EntitlementSnapshotT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public planCode: string|Uint8Array|null = null,
|
||||
public isPaid: boolean = false,
|
||||
public source: string|Uint8Array|null = null,
|
||||
public actor: ActorRefT|null = null,
|
||||
public reasonCode: string|Uint8Array|null = null,
|
||||
public startsAtMs: bigint = BigInt('0'),
|
||||
public endsAtMs: bigint = BigInt('0'),
|
||||
public updatedAtMs: bigint = BigInt('0')
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const planCode = (this.planCode !== null ? builder.createString(this.planCode!) : 0);
|
||||
const source = (this.source !== null ? builder.createString(this.source!) : 0);
|
||||
const actor = (this.actor !== null ? this.actor!.pack(builder) : 0);
|
||||
const reasonCode = (this.reasonCode !== null ? builder.createString(this.reasonCode!) : 0);
|
||||
|
||||
EntitlementSnapshot.startEntitlementSnapshot(builder);
|
||||
EntitlementSnapshot.addPlanCode(builder, planCode);
|
||||
EntitlementSnapshot.addIsPaid(builder, this.isPaid);
|
||||
EntitlementSnapshot.addSource(builder, source);
|
||||
EntitlementSnapshot.addActor(builder, actor);
|
||||
EntitlementSnapshot.addReasonCode(builder, reasonCode);
|
||||
EntitlementSnapshot.addStartsAtMs(builder, this.startsAtMs);
|
||||
EntitlementSnapshot.addEndsAtMs(builder, this.endsAtMs);
|
||||
EntitlementSnapshot.addUpdatedAtMs(builder, this.updatedAtMs);
|
||||
|
||||
return EntitlementSnapshot.endEntitlementSnapshot(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ErrorBody implements flatbuffers.IUnpackableObject<ErrorBodyT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ErrorBody {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsErrorBody(bb:flatbuffers.ByteBuffer, obj?:ErrorBody):ErrorBody {
|
||||
return (obj || new ErrorBody()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsErrorBody(bb:flatbuffers.ByteBuffer, obj?:ErrorBody):ErrorBody {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ErrorBody()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
code():string|null
|
||||
code(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
code(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
message():string|null
|
||||
message(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
message(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startErrorBody(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addCode(builder:flatbuffers.Builder, codeOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, codeOffset, 0);
|
||||
}
|
||||
|
||||
static addMessage(builder:flatbuffers.Builder, messageOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, messageOffset, 0);
|
||||
}
|
||||
|
||||
static endErrorBody(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createErrorBody(builder:flatbuffers.Builder, codeOffset:flatbuffers.Offset, messageOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ErrorBody.startErrorBody(builder);
|
||||
ErrorBody.addCode(builder, codeOffset);
|
||||
ErrorBody.addMessage(builder, messageOffset);
|
||||
return ErrorBody.endErrorBody(builder);
|
||||
}
|
||||
|
||||
unpack(): ErrorBodyT {
|
||||
return new ErrorBodyT(
|
||||
this.code(),
|
||||
this.message()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ErrorBodyT): void {
|
||||
_o.code = this.code();
|
||||
_o.message = this.message();
|
||||
}
|
||||
}
|
||||
|
||||
export class ErrorBodyT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public code: string|Uint8Array|null = null,
|
||||
public message: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const code = (this.code !== null ? builder.createString(this.code!) : 0);
|
||||
const message = (this.message !== null ? builder.createString(this.message!) : 0);
|
||||
|
||||
return ErrorBody.createErrorBody(builder,
|
||||
code,
|
||||
message
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { ErrorBody, ErrorBodyT } from './error-body.js';
|
||||
|
||||
|
||||
export class ErrorResponse implements flatbuffers.IUnpackableObject<ErrorResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ErrorResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsErrorResponse(bb:flatbuffers.ByteBuffer, obj?:ErrorResponse):ErrorResponse {
|
||||
return (obj || new ErrorResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsErrorResponse(bb:flatbuffers.ByteBuffer, obj?:ErrorResponse):ErrorResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ErrorResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
error(obj?:ErrorBody):ErrorBody|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new ErrorBody()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startErrorResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addError(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, errorOffset, 0);
|
||||
}
|
||||
|
||||
static endErrorResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createErrorResponse(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ErrorResponse.startErrorResponse(builder);
|
||||
ErrorResponse.addError(builder, errorOffset);
|
||||
return ErrorResponse.endErrorResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): ErrorResponseT {
|
||||
return new ErrorResponseT(
|
||||
(this.error() !== null ? this.error()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ErrorResponseT): void {
|
||||
_o.error = (this.error() !== null ? this.error()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class ErrorResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public error: ErrorBodyT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const error = (this.error !== null ? this.error!.pack(builder) : 0);
|
||||
|
||||
return ErrorResponse.createErrorResponse(builder,
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class GetMyAccountRequest implements flatbuffers.IUnpackableObject<GetMyAccountRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):GetMyAccountRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsGetMyAccountRequest(bb:flatbuffers.ByteBuffer, obj?:GetMyAccountRequest):GetMyAccountRequest {
|
||||
return (obj || new GetMyAccountRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsGetMyAccountRequest(bb:flatbuffers.ByteBuffer, obj?:GetMyAccountRequest):GetMyAccountRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new GetMyAccountRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startGetMyAccountRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endGetMyAccountRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createGetMyAccountRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
GetMyAccountRequest.startGetMyAccountRequest(builder);
|
||||
return GetMyAccountRequest.endGetMyAccountRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): GetMyAccountRequestT {
|
||||
return new GetMyAccountRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: GetMyAccountRequestT): void {}
|
||||
}
|
||||
|
||||
export class GetMyAccountRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return GetMyAccountRequest.createGetMyAccountRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class ListMySessionsRequest implements flatbuffers.IUnpackableObject<ListMySessionsRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ListMySessionsRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsListMySessionsRequest(bb:flatbuffers.ByteBuffer, obj?:ListMySessionsRequest):ListMySessionsRequest {
|
||||
return (obj || new ListMySessionsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsListMySessionsRequest(bb:flatbuffers.ByteBuffer, obj?:ListMySessionsRequest):ListMySessionsRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ListMySessionsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startListMySessionsRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endListMySessionsRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createListMySessionsRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
ListMySessionsRequest.startListMySessionsRequest(builder);
|
||||
return ListMySessionsRequest.endListMySessionsRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): ListMySessionsRequestT {
|
||||
return new ListMySessionsRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ListMySessionsRequestT): void {}
|
||||
}
|
||||
|
||||
export class ListMySessionsRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return ListMySessionsRequest.createListMySessionsRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { DeviceSessionView, DeviceSessionViewT } from './device-session-view.js';
|
||||
|
||||
|
||||
export class ListMySessionsResponse implements flatbuffers.IUnpackableObject<ListMySessionsResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):ListMySessionsResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsListMySessionsResponse(bb:flatbuffers.ByteBuffer, obj?:ListMySessionsResponse):ListMySessionsResponse {
|
||||
return (obj || new ListMySessionsResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsListMySessionsResponse(bb:flatbuffers.ByteBuffer, obj?:ListMySessionsResponse):ListMySessionsResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new ListMySessionsResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
items(index: number, obj?:DeviceSessionView):DeviceSessionView|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new DeviceSessionView()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
||||
}
|
||||
|
||||
itemsLength():number {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static startListMySessionsResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addItems(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, itemsOffset, 0);
|
||||
}
|
||||
|
||||
static createItemsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
||||
builder.startVector(4, data.length, 4);
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
builder.addOffset(data[i]!);
|
||||
}
|
||||
return builder.endVector();
|
||||
}
|
||||
|
||||
static startItemsVector(builder:flatbuffers.Builder, numElems:number) {
|
||||
builder.startVector(4, numElems, 4);
|
||||
}
|
||||
|
||||
static endListMySessionsResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createListMySessionsResponse(builder:flatbuffers.Builder, itemsOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
ListMySessionsResponse.startListMySessionsResponse(builder);
|
||||
ListMySessionsResponse.addItems(builder, itemsOffset);
|
||||
return ListMySessionsResponse.endListMySessionsResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): ListMySessionsResponseT {
|
||||
return new ListMySessionsResponseT(
|
||||
this.bb!.createObjList<DeviceSessionView, DeviceSessionViewT>(this.items.bind(this), this.itemsLength())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: ListMySessionsResponseT): void {
|
||||
_o.items = this.bb!.createObjList<DeviceSessionView, DeviceSessionViewT>(this.items.bind(this), this.itemsLength());
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMySessionsResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public items: (DeviceSessionViewT)[] = []
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const items = ListMySessionsResponse.createItemsVector(builder, builder.createObjectOffsetList(this.items));
|
||||
|
||||
return ListMySessionsResponse.createListMySessionsResponse(builder,
|
||||
items
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class RevokeAllMySessionsRequest implements flatbuffers.IUnpackableObject<RevokeAllMySessionsRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):RevokeAllMySessionsRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsRevokeAllMySessionsRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeAllMySessionsRequest):RevokeAllMySessionsRequest {
|
||||
return (obj || new RevokeAllMySessionsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsRevokeAllMySessionsRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeAllMySessionsRequest):RevokeAllMySessionsRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new RevokeAllMySessionsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static startRevokeAllMySessionsRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(0);
|
||||
}
|
||||
|
||||
static endRevokeAllMySessionsRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createRevokeAllMySessionsRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
RevokeAllMySessionsRequest.startRevokeAllMySessionsRequest(builder);
|
||||
return RevokeAllMySessionsRequest.endRevokeAllMySessionsRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): RevokeAllMySessionsRequestT {
|
||||
return new RevokeAllMySessionsRequestT();
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: RevokeAllMySessionsRequestT): void {}
|
||||
}
|
||||
|
||||
export class RevokeAllMySessionsRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
return RevokeAllMySessionsRequest.createRevokeAllMySessionsRequest(builder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { DeviceSessionRevocationSummaryView, DeviceSessionRevocationSummaryViewT } from './device-session-revocation-summary-view.js';
|
||||
|
||||
|
||||
export class RevokeAllMySessionsResponse implements flatbuffers.IUnpackableObject<RevokeAllMySessionsResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):RevokeAllMySessionsResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsRevokeAllMySessionsResponse(bb:flatbuffers.ByteBuffer, obj?:RevokeAllMySessionsResponse):RevokeAllMySessionsResponse {
|
||||
return (obj || new RevokeAllMySessionsResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsRevokeAllMySessionsResponse(bb:flatbuffers.ByteBuffer, obj?:RevokeAllMySessionsResponse):RevokeAllMySessionsResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new RevokeAllMySessionsResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
summary(obj?:DeviceSessionRevocationSummaryView):DeviceSessionRevocationSummaryView|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new DeviceSessionRevocationSummaryView()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startRevokeAllMySessionsResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addSummary(builder:flatbuffers.Builder, summaryOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, summaryOffset, 0);
|
||||
}
|
||||
|
||||
static endRevokeAllMySessionsResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createRevokeAllMySessionsResponse(builder:flatbuffers.Builder, summaryOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
RevokeAllMySessionsResponse.startRevokeAllMySessionsResponse(builder);
|
||||
RevokeAllMySessionsResponse.addSummary(builder, summaryOffset);
|
||||
return RevokeAllMySessionsResponse.endRevokeAllMySessionsResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): RevokeAllMySessionsResponseT {
|
||||
return new RevokeAllMySessionsResponseT(
|
||||
(this.summary() !== null ? this.summary()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: RevokeAllMySessionsResponseT): void {
|
||||
_o.summary = (this.summary() !== null ? this.summary()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class RevokeAllMySessionsResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public summary: DeviceSessionRevocationSummaryViewT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const summary = (this.summary !== null ? this.summary!.pack(builder) : 0);
|
||||
|
||||
return RevokeAllMySessionsResponse.createRevokeAllMySessionsResponse(builder,
|
||||
summary
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class RevokeMySessionRequest implements flatbuffers.IUnpackableObject<RevokeMySessionRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):RevokeMySessionRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsRevokeMySessionRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionRequest):RevokeMySessionRequest {
|
||||
return (obj || new RevokeMySessionRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsRevokeMySessionRequest(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionRequest):RevokeMySessionRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new RevokeMySessionRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
deviceSessionId():string|null
|
||||
deviceSessionId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
deviceSessionId(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startRevokeMySessionRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addDeviceSessionId(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, deviceSessionIdOffset, 0);
|
||||
}
|
||||
|
||||
static endRevokeMySessionRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createRevokeMySessionRequest(builder:flatbuffers.Builder, deviceSessionIdOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
RevokeMySessionRequest.startRevokeMySessionRequest(builder);
|
||||
RevokeMySessionRequest.addDeviceSessionId(builder, deviceSessionIdOffset);
|
||||
return RevokeMySessionRequest.endRevokeMySessionRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): RevokeMySessionRequestT {
|
||||
return new RevokeMySessionRequestT(
|
||||
this.deviceSessionId()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: RevokeMySessionRequestT): void {
|
||||
_o.deviceSessionId = this.deviceSessionId();
|
||||
}
|
||||
}
|
||||
|
||||
export class RevokeMySessionRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public deviceSessionId: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const deviceSessionId = (this.deviceSessionId !== null ? builder.createString(this.deviceSessionId!) : 0);
|
||||
|
||||
return RevokeMySessionRequest.createRevokeMySessionRequest(builder,
|
||||
deviceSessionId
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { DeviceSessionView, DeviceSessionViewT } from './device-session-view.js';
|
||||
|
||||
|
||||
export class RevokeMySessionResponse implements flatbuffers.IUnpackableObject<RevokeMySessionResponseT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):RevokeMySessionResponse {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsRevokeMySessionResponse(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionResponse):RevokeMySessionResponse {
|
||||
return (obj || new RevokeMySessionResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsRevokeMySessionResponse(bb:flatbuffers.ByteBuffer, obj?:RevokeMySessionResponse):RevokeMySessionResponse {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new RevokeMySessionResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
session(obj?:DeviceSessionView):DeviceSessionView|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? (obj || new DeviceSessionView()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
||||
}
|
||||
|
||||
static startRevokeMySessionResponse(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addSession(builder:flatbuffers.Builder, sessionOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, sessionOffset, 0);
|
||||
}
|
||||
|
||||
static endRevokeMySessionResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createRevokeMySessionResponse(builder:flatbuffers.Builder, sessionOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
RevokeMySessionResponse.startRevokeMySessionResponse(builder);
|
||||
RevokeMySessionResponse.addSession(builder, sessionOffset);
|
||||
return RevokeMySessionResponse.endRevokeMySessionResponse(builder);
|
||||
}
|
||||
|
||||
unpack(): RevokeMySessionResponseT {
|
||||
return new RevokeMySessionResponseT(
|
||||
(this.session() !== null ? this.session()!.unpack() : null)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: RevokeMySessionResponseT): void {
|
||||
_o.session = (this.session() !== null ? this.session()!.unpack() : null);
|
||||
}
|
||||
}
|
||||
|
||||
export class RevokeMySessionResponseT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public session: DeviceSessionViewT|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const session = (this.session !== null ? this.session!.pack(builder) : 0);
|
||||
|
||||
return RevokeMySessionResponse.createRevokeMySessionResponse(builder,
|
||||
session
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class UpdateMyProfileRequest implements flatbuffers.IUnpackableObject<UpdateMyProfileRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):UpdateMyProfileRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsUpdateMyProfileRequest(bb:flatbuffers.ByteBuffer, obj?:UpdateMyProfileRequest):UpdateMyProfileRequest {
|
||||
return (obj || new UpdateMyProfileRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsUpdateMyProfileRequest(bb:flatbuffers.ByteBuffer, obj?:UpdateMyProfileRequest):UpdateMyProfileRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new UpdateMyProfileRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
displayName():string|null
|
||||
displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
displayName(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startUpdateMyProfileRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(1);
|
||||
}
|
||||
|
||||
static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, displayNameOffset, 0);
|
||||
}
|
||||
|
||||
static endUpdateMyProfileRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createUpdateMyProfileRequest(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
UpdateMyProfileRequest.startUpdateMyProfileRequest(builder);
|
||||
UpdateMyProfileRequest.addDisplayName(builder, displayNameOffset);
|
||||
return UpdateMyProfileRequest.endUpdateMyProfileRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): UpdateMyProfileRequestT {
|
||||
return new UpdateMyProfileRequestT(
|
||||
this.displayName()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: UpdateMyProfileRequestT): void {
|
||||
_o.displayName = this.displayName();
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateMyProfileRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public displayName: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const displayName = (this.displayName !== null ? builder.createString(this.displayName!) : 0);
|
||||
|
||||
return UpdateMyProfileRequest.createUpdateMyProfileRequest(builder,
|
||||
displayName
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class UpdateMySettingsRequest implements flatbuffers.IUnpackableObject<UpdateMySettingsRequestT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):UpdateMySettingsRequest {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
}
|
||||
|
||||
static getRootAsUpdateMySettingsRequest(bb:flatbuffers.ByteBuffer, obj?:UpdateMySettingsRequest):UpdateMySettingsRequest {
|
||||
return (obj || new UpdateMySettingsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getSizePrefixedRootAsUpdateMySettingsRequest(bb:flatbuffers.ByteBuffer, obj?:UpdateMySettingsRequest):UpdateMySettingsRequest {
|
||||
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
||||
return (obj || new UpdateMySettingsRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
preferredLanguage():string|null
|
||||
preferredLanguage(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
preferredLanguage(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 4);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
timeZone():string|null
|
||||
timeZone(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
||||
timeZone(optionalEncoding?:any):string|Uint8Array|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 6);
|
||||
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
||||
}
|
||||
|
||||
static startUpdateMySettingsRequest(builder:flatbuffers.Builder) {
|
||||
builder.startObject(2);
|
||||
}
|
||||
|
||||
static addPreferredLanguage(builder:flatbuffers.Builder, preferredLanguageOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(0, preferredLanguageOffset, 0);
|
||||
}
|
||||
|
||||
static addTimeZone(builder:flatbuffers.Builder, timeZoneOffset:flatbuffers.Offset) {
|
||||
builder.addFieldOffset(1, timeZoneOffset, 0);
|
||||
}
|
||||
|
||||
static endUpdateMySettingsRequest(builder:flatbuffers.Builder):flatbuffers.Offset {
|
||||
const offset = builder.endObject();
|
||||
return offset;
|
||||
}
|
||||
|
||||
static createUpdateMySettingsRequest(builder:flatbuffers.Builder, preferredLanguageOffset:flatbuffers.Offset, timeZoneOffset:flatbuffers.Offset):flatbuffers.Offset {
|
||||
UpdateMySettingsRequest.startUpdateMySettingsRequest(builder);
|
||||
UpdateMySettingsRequest.addPreferredLanguage(builder, preferredLanguageOffset);
|
||||
UpdateMySettingsRequest.addTimeZone(builder, timeZoneOffset);
|
||||
return UpdateMySettingsRequest.endUpdateMySettingsRequest(builder);
|
||||
}
|
||||
|
||||
unpack(): UpdateMySettingsRequestT {
|
||||
return new UpdateMySettingsRequestT(
|
||||
this.preferredLanguage(),
|
||||
this.timeZone()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
unpackTo(_o: UpdateMySettingsRequestT): void {
|
||||
_o.preferredLanguage = this.preferredLanguage();
|
||||
_o.timeZone = this.timeZone();
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateMySettingsRequestT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public preferredLanguage: string|Uint8Array|null = null,
|
||||
public timeZone: string|Uint8Array|null = null
|
||||
){}
|
||||
|
||||
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const preferredLanguage = (this.preferredLanguage !== null ? builder.createString(this.preferredLanguage!) : 0);
|
||||
const timeZone = (this.timeZone !== null ? builder.createString(this.timeZone!) : 0);
|
||||
|
||||
return UpdateMySettingsRequest.createUpdateMySettingsRequest(builder,
|
||||
preferredLanguage,
|
||||
timeZone
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user