Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init
This commit is contained in:
commit
3e3e7c086a
|
@ -25,21 +25,16 @@
|
||||||
<div
|
<div
|
||||||
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-4 px-6 md:px-8 border-b"
|
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-4 px-6 md:px-8 border-b"
|
||||||
>
|
>
|
||||||
<div>
|
|
||||||
<mat-form-field
|
<mat-form-field
|
||||||
class="bet-mat-form-field-wrapper-mb-0 mr-2"
|
class="bet-mat-form-field-wrapper-mb-0 mr-2"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<textarea
|
<textarea matInput cdkTextareaAutosize cdkAutosizeMinRows="2"></textarea>
|
||||||
matInput
|
|
||||||
cdkTextareaAutosize
|
|
||||||
cdkAutosizeMinRows="2"
|
|
||||||
></textarea>
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<button mat-flat-button [color]="'primary'">메모저장</button>
|
<button mat-flat-button [color]="'primary'">메모저장</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="flex items-center mt-2 mb-2 ml-6">
|
||||||
<div>
|
<div>
|
||||||
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
||||||
입금처리
|
입금처리
|
||||||
|
@ -51,7 +46,6 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -41,6 +41,8 @@ import { MatTableDataSource } from '@angular/material/table';
|
||||||
import { MemberModel } from 'app/modules/proto/models/member_pb';
|
import { MemberModel } from 'app/modules/proto/models/member_pb';
|
||||||
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
||||||
import { SelectionModel } from '@angular/cdk/collections';
|
import { SelectionModel } from '@angular/cdk/collections';
|
||||||
|
import { AddComposeComponent } from '../compose/add-compose.component';
|
||||||
|
import { DeleteComposeComponent } from '../compose/delete-compose.component';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'partner-recommendation-list',
|
selector: 'partner-recommendation-list',
|
||||||
templateUrl: './list.component.html',
|
templateUrl: './list.component.html',
|
||||||
|
@ -296,12 +298,26 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
console.log('Compose dialog was closed!');
|
console.log('Compose dialog was closed!');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
__onClickAdd(event: MouseEvent): void {
|
||||||
|
const dialogRef = this._matDialog.open(AddComposeComponent);
|
||||||
|
|
||||||
|
dialogRef.afterClosed().subscribe((result) => {
|
||||||
|
console.log('Compose dialog was closed!');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
__onClickDelete(event: MouseEvent): void {
|
||||||
|
const dialogRef = this._matDialog.open(DeleteComposeComponent);
|
||||||
|
|
||||||
|
dialogRef.afterClosed().subscribe((result) => {
|
||||||
|
console.log('Compose dialog was closed!');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
__getRefererMember(member: MemberModel): string {
|
__getRefererMember(member: MemberModel): string {
|
||||||
console.log(member.getReferrerMember()?.getUsername());
|
/* console.log(member.getReferrerMember()?.getUsername());
|
||||||
|
|
||||||
const name = member.getReferrerMember()?.getUsername();
|
const name = member.getReferrerMember()?.getUsername(); */
|
||||||
return name ? name : '없음';
|
return '없음';
|
||||||
/* const findMember = this.listMembers.find((m) => m.getId() === id); */
|
/* const findMember = this.listMembers.find((m) => m.getId() === id); */
|
||||||
|
|
||||||
/* return !!findMember ? findMember : undefined; */
|
/* return !!findMember ? findMember : undefined; */
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
|
||||||
|
<!-- Header -->
|
||||||
|
<div
|
||||||
|
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
|
||||||
|
>
|
||||||
|
<div class="text-lg font-medium">알림</div>
|
||||||
|
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
|
||||||
|
<mat-icon
|
||||||
|
class="text-current"
|
||||||
|
[svgIcon]="'heroicons_outline:x'"
|
||||||
|
></mat-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Compose form -->
|
||||||
|
<form
|
||||||
|
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
|
||||||
|
[formGroup]="composeForm"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<span class="font-semibold mb-2">추천인으로 추가하시겠습니까?</span>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
|
||||||
|
>
|
||||||
|
<div class="flex items-center mt-4 sm:mt-0">
|
||||||
|
<!-- Save as draft -->
|
||||||
|
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
|
||||||
|
<span>OK</span>
|
||||||
|
</button>
|
||||||
|
<!-- Save as draft -->
|
||||||
|
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
|
||||||
|
<span>CANCEL</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
|
@ -0,0 +1,94 @@
|
||||||
|
import {
|
||||||
|
ChangeDetectorRef,
|
||||||
|
Component,
|
||||||
|
Inject,
|
||||||
|
OnInit,
|
||||||
|
ViewEncapsulation,
|
||||||
|
} from '@angular/core';
|
||||||
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
|
||||||
|
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
|
||||||
|
import { Site } from 'app/modules/proto/models/site_pb';
|
||||||
|
|
||||||
|
export interface AddComposeData {
|
||||||
|
price: string;
|
||||||
|
memo: string;
|
||||||
|
}
|
||||||
|
export interface AddComposeResult {
|
||||||
|
price: string;
|
||||||
|
memo: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-add-compose',
|
||||||
|
templateUrl: './add-compose.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None,
|
||||||
|
})
|
||||||
|
export class AddComposeComponent implements OnInit {
|
||||||
|
composeForm!: FormGroup;
|
||||||
|
sites: any[] = [];
|
||||||
|
// quillModules: any = {
|
||||||
|
// toolbar: [
|
||||||
|
// ['bold', 'italic', 'underline'],
|
||||||
|
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
|
||||||
|
// ['clean'],
|
||||||
|
// ],
|
||||||
|
// };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
constructor(
|
||||||
|
public matDialogRef: MatDialogRef<AddComposeComponent>,
|
||||||
|
@Inject(MAT_DIALOG_DATA) public data: AddComposeData,
|
||||||
|
private _formBuilder: FormBuilder,
|
||||||
|
private _identityService: IdentityService,
|
||||||
|
private _changeDetectorRef: ChangeDetectorRef
|
||||||
|
) {}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Lifecycle hooks
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On init
|
||||||
|
*/
|
||||||
|
ngOnInit(): void {
|
||||||
|
// Create the form
|
||||||
|
this.composeForm = this._formBuilder.group({
|
||||||
|
price: ['', [Validators.required]],
|
||||||
|
memo: ['', [Validators.required]],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Public methods
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save and close
|
||||||
|
*/
|
||||||
|
saveAndClose(): void {
|
||||||
|
// Save the message as a draft
|
||||||
|
this.saveAsDraft();
|
||||||
|
|
||||||
|
// Close the dialog
|
||||||
|
this.matDialogRef.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Discard the message
|
||||||
|
*/
|
||||||
|
discard(): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the message as a draft
|
||||||
|
*/
|
||||||
|
saveAsDraft(): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send the message
|
||||||
|
*/
|
||||||
|
send(): void {}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
|
||||||
|
<!-- Header -->
|
||||||
|
<div
|
||||||
|
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
|
||||||
|
>
|
||||||
|
<div class="text-lg font-medium">알림</div>
|
||||||
|
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
|
||||||
|
<mat-icon
|
||||||
|
class="text-current"
|
||||||
|
[svgIcon]="'heroicons_outline:x'"
|
||||||
|
></mat-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Compose form -->
|
||||||
|
<form
|
||||||
|
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
|
||||||
|
[formGroup]="composeForm"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<span class="font-semibold mb-2">삭제하시겠습니까?</span>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
|
||||||
|
>
|
||||||
|
<div class="flex items-center mt-4 sm:mt-0">
|
||||||
|
<!-- Save as draft -->
|
||||||
|
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
|
||||||
|
<span>OK</span>
|
||||||
|
</button>
|
||||||
|
<!-- Save as draft -->
|
||||||
|
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
|
||||||
|
<span>CANCEL</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
|
@ -0,0 +1,94 @@
|
||||||
|
import {
|
||||||
|
ChangeDetectorRef,
|
||||||
|
Component,
|
||||||
|
Inject,
|
||||||
|
OnInit,
|
||||||
|
ViewEncapsulation,
|
||||||
|
} from '@angular/core';
|
||||||
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
|
||||||
|
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
|
||||||
|
import { Site } from 'app/modules/proto/models/site_pb';
|
||||||
|
|
||||||
|
export interface DeleteComposeData {
|
||||||
|
price: string;
|
||||||
|
memo: string;
|
||||||
|
}
|
||||||
|
export interface DeleteComposeResult {
|
||||||
|
price: string;
|
||||||
|
memo: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-delete-compose',
|
||||||
|
templateUrl: './delete-compose.component.html',
|
||||||
|
encapsulation: ViewEncapsulation.None,
|
||||||
|
})
|
||||||
|
export class DeleteComposeComponent implements OnInit {
|
||||||
|
composeForm!: FormGroup;
|
||||||
|
sites: any[] = [];
|
||||||
|
// quillModules: any = {
|
||||||
|
// toolbar: [
|
||||||
|
// ['bold', 'italic', 'underline'],
|
||||||
|
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
|
||||||
|
// ['clean'],
|
||||||
|
// ],
|
||||||
|
// };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
constructor(
|
||||||
|
public matDialogRef: MatDialogRef<DeleteComposeComponent>,
|
||||||
|
@Inject(MAT_DIALOG_DATA) public data: DeleteComposeData,
|
||||||
|
private _formBuilder: FormBuilder,
|
||||||
|
private _identityService: IdentityService,
|
||||||
|
private _changeDetectorRef: ChangeDetectorRef
|
||||||
|
) {}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Lifecycle hooks
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On init
|
||||||
|
*/
|
||||||
|
ngOnInit(): void {
|
||||||
|
// Create the form
|
||||||
|
this.composeForm = this._formBuilder.group({
|
||||||
|
price: ['', [Validators.required]],
|
||||||
|
memo: ['', [Validators.required]],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Public methods
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save and close
|
||||||
|
*/
|
||||||
|
saveAndClose(): void {
|
||||||
|
// Save the message as a draft
|
||||||
|
this.saveAsDraft();
|
||||||
|
|
||||||
|
// Close the dialog
|
||||||
|
this.matDialogRef.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Discard the message
|
||||||
|
*/
|
||||||
|
discard(): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the message as a draft
|
||||||
|
*/
|
||||||
|
saveAsDraft(): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send the message
|
||||||
|
*/
|
||||||
|
send(): void {}
|
||||||
|
}
|
|
@ -1,3 +1,9 @@
|
||||||
import { RegistComposeComponent } from './regist-compose.component';
|
import { RegistComposeComponent } from './regist-compose.component';
|
||||||
|
import { AddComposeComponent } from './add-compose.component';
|
||||||
|
import { DeleteComposeComponent } from './delete-compose.component';
|
||||||
|
|
||||||
export const COMPOSE = [RegistComposeComponent];
|
export const COMPOSE = [
|
||||||
|
RegistComposeComponent,
|
||||||
|
AddComposeComponent,
|
||||||
|
DeleteComposeComponent,
|
||||||
|
];
|
||||||
|
|
|
@ -12,7 +12,6 @@ import { MatSortModule } from '@angular/material/sort';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import { MatGridListModule } from '@angular/material/grid-list';
|
import { MatGridListModule } from '@angular/material/grid-list';
|
||||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
@ -44,7 +43,6 @@ import { partnerRecommendationRoutes } from './partner-recommendation.routing';
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatGridListModule,
|
MatGridListModule,
|
||||||
MatSlideToggleModule,
|
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
|
|
|
@ -54,7 +54,7 @@ import {
|
||||||
ListMembersResponse,
|
ListMembersResponse,
|
||||||
} from 'app/modules/proto/c2se/member_pb';
|
} from 'app/modules/proto/c2se/member_pb';
|
||||||
import { Pagination } from 'app/modules/proto/protobuf/pagination_pb';
|
import { Pagination } from 'app/modules/proto/protobuf/pagination_pb';
|
||||||
import { ApiService } from 'app/modules/polyglot/api/services/api.service';
|
import { VendorService } from 'app/modules/polyglot/api/services/vendor.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'partner-list',
|
selector: 'partner-list',
|
||||||
templateUrl: './list.component.html',
|
templateUrl: './list.component.html',
|
||||||
|
@ -120,7 +120,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
private _activatedRoute: ActivatedRoute,
|
private _activatedRoute: ActivatedRoute,
|
||||||
private _partnerService: PartnerService,
|
private _partnerService: PartnerService,
|
||||||
private __memberService: MemberService,
|
private __memberService: MemberService,
|
||||||
private __apiService: ApiService,
|
private __vendorService: VendorService,
|
||||||
|
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private _matDialog: MatDialog
|
private _matDialog: MatDialog
|
||||||
|
@ -193,8 +193,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
this._changeDetectorRef.markForCheck();
|
this._changeDetectorRef.markForCheck();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.__apiService
|
this.__vendorService
|
||||||
.listBanks()
|
.listVendors()
|
||||||
.then((l) => {
|
.then((l) => {
|
||||||
console.log('list', l.getVendorsList());
|
console.log('list', l.getVendorsList());
|
||||||
})
|
})
|
||||||
|
|
52
src/app/modules/polyglot/api/services/game.service.ts
Normal file
52
src/app/modules/polyglot/api/services/game.service.ts
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||||
|
|
||||||
|
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||||
|
|
||||||
|
import {
|
||||||
|
ListGamesRequest,
|
||||||
|
ListGamesResponse,
|
||||||
|
} from 'app/modules/proto/c2se/api/game_pb';
|
||||||
|
import { SUBJECT_LIST_GAMES } from 'app/modules/proto/c2se/backend/api/game_pb';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root',
|
||||||
|
})
|
||||||
|
export class GameService {
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
constructor(private __natsService: NatsService) {}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Accessors
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Public methods
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
listGames(vendorId: number): Promise<ListGamesResponse.Result> {
|
||||||
|
return new Promise<ListGamesResponse.Result>((resolve, reject) => {
|
||||||
|
let search = new ListGamesRequest.Search();
|
||||||
|
search.setVendorId(vendorId);
|
||||||
|
let req = new ListGamesRequest();
|
||||||
|
req.setSearch(search);
|
||||||
|
|
||||||
|
this.__natsService
|
||||||
|
.request<ListGamesResponse.Result>(
|
||||||
|
SUBJECT_LIST_GAMES,
|
||||||
|
req.serializeBinary(),
|
||||||
|
ListGamesResponse.deserializeBinary
|
||||||
|
)
|
||||||
|
.then((result) => {
|
||||||
|
console.log('success', result, result.getGamesList());
|
||||||
|
return resolve(result);
|
||||||
|
})
|
||||||
|
.catch((e: Error) => {
|
||||||
|
console.log('failed', e);
|
||||||
|
reject(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
import { Type } from '@angular/core';
|
import { Type } from '@angular/core';
|
||||||
|
|
||||||
import { ApiService } from './api.service';
|
import { VendorService } from './vendor.service';
|
||||||
|
import { GameService } from './game.service';
|
||||||
|
|
||||||
export const SERVICES: Type<any>[] = [ApiService];
|
export const SERVICES: Type<any>[] = [VendorService, GameService];
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { SUBJECT_LIST_VENDORS } from 'app/modules/proto/c2se/backend/api/vendor_
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class ApiService {
|
export class VendorService {
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@ export class ApiService {
|
||||||
// @ Public methods
|
// @ Public methods
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
listBanks(): Promise<ListVendorsResponse.Result> {
|
listVendors(): Promise<ListVendorsResponse.Result> {
|
||||||
return new Promise<ListVendorsResponse.Result>((resolve, reject) => {
|
return new Promise<ListVendorsResponse.Result>((resolve, reject) => {
|
||||||
let req = new ListVendorsRequest();
|
let req = new ListVendorsRequest();
|
||||||
|
|
182
src/app/modules/proto/c2se/api/game_pb.d.ts
vendored
Normal file
182
src/app/modules/proto/c2se/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,182 @@
|
||||||
|
// package: bet.beteran.c2se.api.game
|
||||||
|
// file: c2se/api/game.proto
|
||||||
|
|
||||||
|
import * as jspb from 'google-protobuf';
|
||||||
|
import * as protobuf_rpc_pb from '../../protobuf/rpc_pb';
|
||||||
|
import * as protobuf_pagination_pb from '../../protobuf/pagination_pb';
|
||||||
|
import * as models_core_network_pb from '../../models/core/network_pb';
|
||||||
|
import * as models_api_game_pb from '../../models/api/game_pb';
|
||||||
|
|
||||||
|
export class ListGamesRequest extends jspb.Message {
|
||||||
|
hasPagination(): boolean;
|
||||||
|
clearPagination(): void;
|
||||||
|
getPagination(): protobuf_pagination_pb.Pagination | undefined;
|
||||||
|
setPagination(value?: protobuf_pagination_pb.Pagination): void;
|
||||||
|
|
||||||
|
clearSortsList(): void;
|
||||||
|
getSortsList(): Array<protobuf_pagination_pb.Sort>;
|
||||||
|
setSortsList(value: Array<protobuf_pagination_pb.Sort>): void;
|
||||||
|
addSorts(
|
||||||
|
value?: protobuf_pagination_pb.Sort,
|
||||||
|
index?: number
|
||||||
|
): protobuf_pagination_pb.Sort;
|
||||||
|
|
||||||
|
hasSearch(): boolean;
|
||||||
|
clearSearch(): void;
|
||||||
|
getSearch(): ListGamesRequest.Search | undefined;
|
||||||
|
setSearch(value?: ListGamesRequest.Search): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): ListGamesRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: ListGamesRequest
|
||||||
|
): ListGamesRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: ListGamesRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): ListGamesRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: ListGamesRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): ListGamesRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace ListGamesRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
pagination?: protobuf_pagination_pb.Pagination.AsObject;
|
||||||
|
sortsList: Array<protobuf_pagination_pb.Sort.AsObject>;
|
||||||
|
search?: ListGamesRequest.Search.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Search extends jspb.Message {
|
||||||
|
hasVendorId(): boolean;
|
||||||
|
clearVendorId(): void;
|
||||||
|
getVendorId(): number;
|
||||||
|
setVendorId(value: number): void;
|
||||||
|
|
||||||
|
hasKeyLike(): boolean;
|
||||||
|
clearKeyLike(): void;
|
||||||
|
getKeyLike(): string;
|
||||||
|
setKeyLike(value: string): void;
|
||||||
|
|
||||||
|
hasPlatformLike(): boolean;
|
||||||
|
clearPlatformLike(): void;
|
||||||
|
getPlatformLike(): string;
|
||||||
|
setPlatformLike(value: string): void;
|
||||||
|
|
||||||
|
hasCategoryLike(): boolean;
|
||||||
|
clearCategoryLike(): void;
|
||||||
|
getCategoryLike(): string;
|
||||||
|
setCategoryLike(value: string): void;
|
||||||
|
|
||||||
|
hasGameTypeLike(): boolean;
|
||||||
|
clearGameTypeLike(): void;
|
||||||
|
getGameTypeLike(): string;
|
||||||
|
setGameTypeLike(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Search.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Search): Search.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Search,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Search;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Search,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Search;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Search {
|
||||||
|
export type AsObject = {
|
||||||
|
vendorId: number;
|
||||||
|
keyLike: string;
|
||||||
|
platformLike: string;
|
||||||
|
categoryLike: string;
|
||||||
|
gameTypeLike: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ListGamesResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): ListGamesResponse.Result | undefined;
|
||||||
|
setResult(value?: ListGamesResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): ListGamesResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: ListGamesResponse
|
||||||
|
): ListGamesResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: ListGamesResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): ListGamesResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: ListGamesResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): ListGamesResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace ListGamesResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: ListGamesResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
clearGamesList(): void;
|
||||||
|
getGamesList(): Array<models_api_game_pb.Game>;
|
||||||
|
setGamesList(value: Array<models_api_game_pb.Game>): void;
|
||||||
|
addGames(
|
||||||
|
value?: models_api_game_pb.Game,
|
||||||
|
index?: number
|
||||||
|
): models_api_game_pb.Game;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {
|
||||||
|
gamesList: Array<models_api_game_pb.Game.AsObject>;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
1220
src/app/modules/proto/c2se/api/game_pb.js
Normal file
1220
src/app/modules/proto/c2se/api/game_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
6
src/app/modules/proto/c2se/backend/api/game_pb.d.ts
vendored
Normal file
6
src/app/modules/proto/c2se/backend/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
// package: bet.beteran.c2se.backend.api.game
|
||||||
|
// file: c2se/backend/api/game.proto
|
||||||
|
|
||||||
|
import * as jspb from 'google-protobuf';
|
||||||
|
|
||||||
|
export const SUBJECT_LIST_GAMES: string;
|
27
src/app/modules/proto/c2se/backend/api/game_pb.js
Normal file
27
src/app/modules/proto/c2se/backend/api/game_pb.js
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
// source: c2se/backend/api/game.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require("google-protobuf");
|
||||||
|
var goog = jspb;
|
||||||
|
var global = function () {
|
||||||
|
return this || window || global || self || Function("return this")();
|
||||||
|
}.call(null);
|
||||||
|
|
||||||
|
goog.exportSymbol("proto.bet.beteran.c2se.backend.api.game", null, global);
|
||||||
|
|
||||||
|
proto.bet.beteran.c2se.backend.api.game = {};
|
||||||
|
|
||||||
|
proto.bet.beteran.c2se.backend.api.game.SUBJECT_LIST_GAMES =
|
||||||
|
"bet.beteran.c2se.backend.api.game.ListGames";
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.game);
|
10
src/app/modules/proto/c2se/member_pb.d.ts
vendored
10
src/app/modules/proto/c2se/member_pb.d.ts
vendored
|
@ -250,10 +250,10 @@ export namespace ListMembersRequest {
|
||||||
getMemberLevelId(): string;
|
getMemberLevelId(): string;
|
||||||
setMemberLevelId(value: string): void;
|
setMemberLevelId(value: string): void;
|
||||||
|
|
||||||
hasReferrerMemberId(): boolean;
|
hasParentMemberId(): boolean;
|
||||||
clearReferrerMemberId(): void;
|
clearParentMemberId(): void;
|
||||||
getReferrerMemberId(): string;
|
getParentMemberId(): string;
|
||||||
setReferrerMemberId(value: string): void;
|
setParentMemberId(value: string): void;
|
||||||
|
|
||||||
hasUsernameLike(): boolean;
|
hasUsernameLike(): boolean;
|
||||||
clearUsernameLike(): void;
|
clearUsernameLike(): void;
|
||||||
|
@ -310,7 +310,7 @@ export namespace ListMembersRequest {
|
||||||
siteId: string;
|
siteId: string;
|
||||||
memberClassId: string;
|
memberClassId: string;
|
||||||
memberLevelId: string;
|
memberLevelId: string;
|
||||||
referrerMemberId: string;
|
parentMemberId: string;
|
||||||
usernameLike: string;
|
usernameLike: string;
|
||||||
nicknameLike: string;
|
nicknameLike: string;
|
||||||
mobilePhoneNumberLike: string;
|
mobilePhoneNumberLike: string;
|
||||||
|
|
|
@ -2031,7 +2031,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||||
nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||||
mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||||
|
@ -2091,7 +2091,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromRea
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setReferrerMemberId(value);
|
msg.setParentMemberId(value);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
@ -2310,10 +2310,10 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMemberLevel
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional string referrer_member_id = 4;
|
* optional string parent_member_id = 4;
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMemberId =
|
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getParentMemberId =
|
||||||
function () {
|
function () {
|
||||||
return /** @type {string} */ (
|
return /** @type {string} */ (
|
||||||
jspb.Message.getFieldWithDefault(this, 4, "")
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||||
|
@ -2324,7 +2324,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMem
|
||||||
* @param {string} value
|
* @param {string} value
|
||||||
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMemberId =
|
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setParentMemberId =
|
||||||
function (value) {
|
function (value) {
|
||||||
return jspb.Message.setField(this, 4, value);
|
return jspb.Message.setField(this, 4, value);
|
||||||
};
|
};
|
||||||
|
@ -2333,7 +2333,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMem
|
||||||
* Clears the field making it undefined.
|
* Clears the field making it undefined.
|
||||||
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerMemberId =
|
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearParentMemberId =
|
||||||
function () {
|
function () {
|
||||||
return jspb.Message.setField(this, 4, undefined);
|
return jspb.Message.setField(this, 4, undefined);
|
||||||
};
|
};
|
||||||
|
@ -2342,7 +2342,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerM
|
||||||
* Returns whether this field is set.
|
* Returns whether this field is set.
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasReferrerMemberId =
|
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasParentMemberId =
|
||||||
function () {
|
function () {
|
||||||
return jspb.Message.getField(this, 4) != null;
|
return jspb.Message.getField(this, 4) != null;
|
||||||
};
|
};
|
||||||
|
|
582
src/app/modules/proto/c2se/member_referrer_pb.d.ts
vendored
Normal file
582
src/app/modules/proto/c2se/member_referrer_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,582 @@
|
||||||
|
// package: bet.beteran.c2se.member_referrer
|
||||||
|
// file: c2se/member_referrer.proto
|
||||||
|
|
||||||
|
import * as jspb from 'google-protobuf';
|
||||||
|
import * as protobuf_rpc_pb from '../protobuf/rpc_pb';
|
||||||
|
import * as protobuf_pagination_pb from '../protobuf/pagination_pb';
|
||||||
|
import * as models_member_referrer_pb from '../models/member_referrer_pb';
|
||||||
|
|
||||||
|
export class CreateMemberReferrerRequest extends jspb.Message {
|
||||||
|
getMemberId(): string;
|
||||||
|
setMemberId(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): CreateMemberReferrerRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: CreateMemberReferrerRequest
|
||||||
|
): CreateMemberReferrerRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: CreateMemberReferrerRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: CreateMemberReferrerRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): CreateMemberReferrerRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace CreateMemberReferrerRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
memberId: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class CreateMemberReferrerResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): CreateMemberReferrerResponse.Result | undefined;
|
||||||
|
setResult(value?: CreateMemberReferrerResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): CreateMemberReferrerResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: CreateMemberReferrerResponse
|
||||||
|
): CreateMemberReferrerResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: CreateMemberReferrerResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: CreateMemberReferrerResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): CreateMemberReferrerResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace CreateMemberReferrerResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: CreateMemberReferrerResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
hasMemberReferrer(): boolean;
|
||||||
|
clearMemberReferrer(): void;
|
||||||
|
getMemberReferrer(): models_member_referrer_pb.MemberReferrer | undefined;
|
||||||
|
setMemberReferrer(value?: models_member_referrer_pb.MemberReferrer): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {
|
||||||
|
memberReferrer?: models_member_referrer_pb.MemberReferrer.AsObject;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ListMemberReferrersRequest extends jspb.Message {
|
||||||
|
hasPagination(): boolean;
|
||||||
|
clearPagination(): void;
|
||||||
|
getPagination(): protobuf_pagination_pb.Pagination | undefined;
|
||||||
|
setPagination(value?: protobuf_pagination_pb.Pagination): void;
|
||||||
|
|
||||||
|
clearSortsList(): void;
|
||||||
|
getSortsList(): Array<protobuf_pagination_pb.Sort>;
|
||||||
|
setSortsList(value: Array<protobuf_pagination_pb.Sort>): void;
|
||||||
|
addSorts(
|
||||||
|
value?: protobuf_pagination_pb.Sort,
|
||||||
|
index?: number
|
||||||
|
): protobuf_pagination_pb.Sort;
|
||||||
|
|
||||||
|
hasSearch(): boolean;
|
||||||
|
clearSearch(): void;
|
||||||
|
getSearch(): ListMemberReferrersRequest.Search | undefined;
|
||||||
|
setSearch(value?: ListMemberReferrersRequest.Search): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): ListMemberReferrersRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: ListMemberReferrersRequest
|
||||||
|
): ListMemberReferrersRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: ListMemberReferrersRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): ListMemberReferrersRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: ListMemberReferrersRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): ListMemberReferrersRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace ListMemberReferrersRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
pagination?: protobuf_pagination_pb.Pagination.AsObject;
|
||||||
|
sortsList: Array<protobuf_pagination_pb.Sort.AsObject>;
|
||||||
|
search?: ListMemberReferrersRequest.Search.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Search extends jspb.Message {
|
||||||
|
hasMemberId(): boolean;
|
||||||
|
clearMemberId(): void;
|
||||||
|
getMemberId(): string;
|
||||||
|
setMemberId(value: string): void;
|
||||||
|
|
||||||
|
hasCanUse(): boolean;
|
||||||
|
clearCanUse(): void;
|
||||||
|
getCanUse(): boolean;
|
||||||
|
setCanUse(value: boolean): void;
|
||||||
|
|
||||||
|
hasMemoLike(): boolean;
|
||||||
|
clearMemoLike(): void;
|
||||||
|
getMemoLike(): string;
|
||||||
|
setMemoLike(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Search.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Search): Search.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Search,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Search;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Search,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Search;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Search {
|
||||||
|
export type AsObject = {
|
||||||
|
memberId: string;
|
||||||
|
canUse: boolean;
|
||||||
|
memoLike: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ListMemberReferrersResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): ListMemberReferrersResponse.Result | undefined;
|
||||||
|
setResult(value?: ListMemberReferrersResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): ListMemberReferrersResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: ListMemberReferrersResponse
|
||||||
|
): ListMemberReferrersResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: ListMemberReferrersResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): ListMemberReferrersResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: ListMemberReferrersResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): ListMemberReferrersResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace ListMemberReferrersResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: ListMemberReferrersResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
clearMemberReferrersList(): void;
|
||||||
|
getMemberReferrersList(): Array<models_member_referrer_pb.MemberReferrerModel>;
|
||||||
|
setMemberReferrersList(
|
||||||
|
value: Array<models_member_referrer_pb.MemberReferrerModel>
|
||||||
|
): void;
|
||||||
|
addMemberReferrers(
|
||||||
|
value?: models_member_referrer_pb.MemberReferrerModel,
|
||||||
|
index?: number
|
||||||
|
): models_member_referrer_pb.MemberReferrerModel;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {
|
||||||
|
memberReferrersList: Array<models_member_referrer_pb.MemberReferrerModel.AsObject>;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class GetMemberReferrerRequest extends jspb.Message {
|
||||||
|
getId(): string;
|
||||||
|
setId(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): GetMemberReferrerRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: GetMemberReferrerRequest
|
||||||
|
): GetMemberReferrerRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: GetMemberReferrerRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): GetMemberReferrerRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: GetMemberReferrerRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): GetMemberReferrerRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace GetMemberReferrerRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class GetMemberReferrerResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): GetMemberReferrerResponse.Result | undefined;
|
||||||
|
setResult(value?: GetMemberReferrerResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): GetMemberReferrerResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: GetMemberReferrerResponse
|
||||||
|
): GetMemberReferrerResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: GetMemberReferrerResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): GetMemberReferrerResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: GetMemberReferrerResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): GetMemberReferrerResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace GetMemberReferrerResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: GetMemberReferrerResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
hasMemberReferrer(): boolean;
|
||||||
|
clearMemberReferrer(): void;
|
||||||
|
getMemberReferrer():
|
||||||
|
| models_member_referrer_pb.MemberReferrerModel
|
||||||
|
| undefined;
|
||||||
|
setMemberReferrer(
|
||||||
|
value?: models_member_referrer_pb.MemberReferrerModel
|
||||||
|
): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {
|
||||||
|
memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class UpdateMemberReferrerRequest extends jspb.Message {
|
||||||
|
getId(): string;
|
||||||
|
setId(value: string): void;
|
||||||
|
|
||||||
|
getCanUse(): boolean;
|
||||||
|
setCanUse(value: boolean): void;
|
||||||
|
|
||||||
|
hasMemo(): boolean;
|
||||||
|
clearMemo(): void;
|
||||||
|
getMemo(): string;
|
||||||
|
setMemo(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): UpdateMemberReferrerRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: UpdateMemberReferrerRequest
|
||||||
|
): UpdateMemberReferrerRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: UpdateMemberReferrerRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: UpdateMemberReferrerRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): UpdateMemberReferrerRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace UpdateMemberReferrerRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
id: string;
|
||||||
|
canUse: boolean;
|
||||||
|
memo: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class UpdateMemberReferrerResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): UpdateMemberReferrerResponse.Result | undefined;
|
||||||
|
setResult(value?: UpdateMemberReferrerResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): UpdateMemberReferrerResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: UpdateMemberReferrerResponse
|
||||||
|
): UpdateMemberReferrerResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: UpdateMemberReferrerResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: UpdateMemberReferrerResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): UpdateMemberReferrerResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace UpdateMemberReferrerResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: UpdateMemberReferrerResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
hasMemberReferrer(): boolean;
|
||||||
|
clearMemberReferrer(): void;
|
||||||
|
getMemberReferrer():
|
||||||
|
| models_member_referrer_pb.MemberReferrerModel
|
||||||
|
| undefined;
|
||||||
|
setMemberReferrer(
|
||||||
|
value?: models_member_referrer_pb.MemberReferrerModel
|
||||||
|
): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {
|
||||||
|
memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class DeleteMemberReferrerRequest extends jspb.Message {
|
||||||
|
getId(): string;
|
||||||
|
setId(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): DeleteMemberReferrerRequest.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: DeleteMemberReferrerRequest
|
||||||
|
): DeleteMemberReferrerRequest.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: DeleteMemberReferrerRequest,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerRequest;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: DeleteMemberReferrerRequest,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): DeleteMemberReferrerRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace DeleteMemberReferrerRequest {
|
||||||
|
export type AsObject = {
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class DeleteMemberReferrerResponse extends jspb.Message {
|
||||||
|
hasError(): boolean;
|
||||||
|
clearError(): void;
|
||||||
|
getError(): protobuf_rpc_pb.Error | undefined;
|
||||||
|
setError(value?: protobuf_rpc_pb.Error): void;
|
||||||
|
|
||||||
|
hasResult(): boolean;
|
||||||
|
clearResult(): void;
|
||||||
|
getResult(): DeleteMemberReferrerResponse.Result | undefined;
|
||||||
|
setResult(value?: DeleteMemberReferrerResponse.Result): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): DeleteMemberReferrerResponse.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: DeleteMemberReferrerResponse
|
||||||
|
): DeleteMemberReferrerResponse.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: DeleteMemberReferrerResponse,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerResponse;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: DeleteMemberReferrerResponse,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): DeleteMemberReferrerResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace DeleteMemberReferrerResponse {
|
||||||
|
export type AsObject = {
|
||||||
|
error?: protobuf_rpc_pb.Error.AsObject;
|
||||||
|
result?: DeleteMemberReferrerResponse.Result.AsObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export class Result extends jspb.Message {
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Result.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Result,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Result;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Result,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Result;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Result {
|
||||||
|
export type AsObject = {};
|
||||||
|
}
|
||||||
|
}
|
3685
src/app/modules/proto/c2se/member_referrer_pb.js
Normal file
3685
src/app/modules/proto/c2se/member_referrer_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
70
src/app/modules/proto/models/api/game_pb.d.ts
vendored
Normal file
70
src/app/modules/proto/models/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
// package: bet.beteran.api.game
|
||||||
|
// file: models/api/game.proto
|
||||||
|
|
||||||
|
import * as jspb from 'google-protobuf';
|
||||||
|
|
||||||
|
export class Game extends jspb.Message {
|
||||||
|
getId(): number;
|
||||||
|
setId(value: number): void;
|
||||||
|
|
||||||
|
getVendorId(): number;
|
||||||
|
setVendorId(value: number): void;
|
||||||
|
|
||||||
|
getKey(): string;
|
||||||
|
setKey(value: string): void;
|
||||||
|
|
||||||
|
getNames(): string;
|
||||||
|
setNames(value: string): void;
|
||||||
|
|
||||||
|
getPlatform(): string;
|
||||||
|
setPlatform(value: string): void;
|
||||||
|
|
||||||
|
getCategory(): string;
|
||||||
|
setCategory(value: string): void;
|
||||||
|
|
||||||
|
getGameType(): string;
|
||||||
|
setGameType(value: string): void;
|
||||||
|
|
||||||
|
hasImage(): boolean;
|
||||||
|
clearImage(): void;
|
||||||
|
getImage(): string;
|
||||||
|
setImage(value: string): void;
|
||||||
|
|
||||||
|
getCreatedAt(): number;
|
||||||
|
setCreatedAt(value: number): void;
|
||||||
|
|
||||||
|
getUpdatedAt(): number;
|
||||||
|
setUpdatedAt(value: number): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): Game.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: Game): Game.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: Game,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): Game;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: Game,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): Game;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Game {
|
||||||
|
export type AsObject = {
|
||||||
|
id: number;
|
||||||
|
vendorId: number;
|
||||||
|
key: string;
|
||||||
|
names: string;
|
||||||
|
platform: string;
|
||||||
|
category: string;
|
||||||
|
gameType: string;
|
||||||
|
image: string;
|
||||||
|
createdAt: number;
|
||||||
|
updatedAt: number;
|
||||||
|
};
|
||||||
|
}
|
413
src/app/modules/proto/models/api/game_pb.js
Normal file
413
src/app/modules/proto/models/api/game_pb.js
Normal file
|
@ -0,0 +1,413 @@
|
||||||
|
// source: models/api/game.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require("google-protobuf");
|
||||||
|
var goog = jspb;
|
||||||
|
var global = function () {
|
||||||
|
return this || window || global || self || Function("return this")();
|
||||||
|
}.call(null);
|
||||||
|
|
||||||
|
goog.exportSymbol("proto.bet.beteran.api.game.Game", null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game = function (opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.bet.beteran.api.game.Game, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.displayName =
|
||||||
|
"proto.bet.beteran.api.game.Game";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.toObject = function (
|
||||||
|
opt_includeInstance
|
||||||
|
) {
|
||||||
|
return proto.bet.beteran.api.game.Game.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.bet.beteran.api.game.Game} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.toObject = function (includeInstance, msg) {
|
||||||
|
var f,
|
||||||
|
obj = {
|
||||||
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||||
|
key: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
|
names: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
platform: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||||
|
category: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||||
|
gameType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||||
|
image: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||||
|
createdAt: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
||||||
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.deserializeBinary = function (bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.bet.beteran.api.game.Game();
|
||||||
|
return proto.bet.beteran.api.game.Game.deserializeBinaryFromReader(
|
||||||
|
msg,
|
||||||
|
reader
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.bet.beteran.api.game.Game} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.deserializeBinaryFromReader = function (
|
||||||
|
msg,
|
||||||
|
reader
|
||||||
|
) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setId(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setVendorId(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setKey(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setNames(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setPlatform(value);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setCategory(value);
|
||||||
|
break;
|
||||||
|
case 7:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setGameType(value);
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setImage(value);
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setCreatedAt(value);
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setUpdatedAt(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.serializeBinary = function () {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.bet.beteran.api.game.Game.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.bet.beteran.api.game.Game} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.serializeBinaryToWriter = function (
|
||||||
|
message,
|
||||||
|
writer
|
||||||
|
) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getId();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(1, f);
|
||||||
|
}
|
||||||
|
f = message.getVendorId();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(2, f);
|
||||||
|
}
|
||||||
|
f = message.getKey();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(3, f);
|
||||||
|
}
|
||||||
|
f = message.getNames();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(4, f);
|
||||||
|
}
|
||||||
|
f = message.getPlatform();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(5, f);
|
||||||
|
}
|
||||||
|
f = message.getCategory();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(6, f);
|
||||||
|
}
|
||||||
|
f = message.getGameType();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(7, f);
|
||||||
|
}
|
||||||
|
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeString(8, f);
|
||||||
|
}
|
||||||
|
f = message.getCreatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(9, f);
|
||||||
|
}
|
||||||
|
f = message.getUpdatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(10, f);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 id = 1;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getId = function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setId = function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 vendor_id = 2;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getVendorId = function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setVendorId = function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string key = 3;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getKey = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setKey = function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string names = 4;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getNames = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setNames = function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string platform = 5;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getPlatform = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setPlatform = function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string category = 6;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getCategory = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setCategory = function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 6, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string game_type = 7;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getGameType = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setGameType = function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 7, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string image = 8;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getImage = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setImage = function (value) {
|
||||||
|
return jspb.Message.setField(this, 8, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the field making it undefined.
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.clearImage = function () {
|
||||||
|
return jspb.Message.setField(this, 8, undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.hasImage = function () {
|
||||||
|
return jspb.Message.getField(this, 8) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 created_at = 9;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getCreatedAt = function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setCreatedAt = function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 9, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 updated_at = 10;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.getUpdatedAt = function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.api.game.Game.prototype.setUpdatedAt = function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 10, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.bet.beteran.api.game);
|
32
src/app/modules/proto/models/member_pb.d.ts
vendored
32
src/app/modules/proto/models/member_pb.d.ts
vendored
|
@ -20,13 +20,13 @@ export class Member extends jspb.Message {
|
||||||
getMemberLevelId(): string;
|
getMemberLevelId(): string;
|
||||||
setMemberLevelId(value: string): void;
|
setMemberLevelId(value: string): void;
|
||||||
|
|
||||||
hasReferrerMemberId(): boolean;
|
hasParentMemberId(): boolean;
|
||||||
clearReferrerMemberId(): void;
|
clearParentMemberId(): void;
|
||||||
getReferrerMemberId(): string;
|
getParentMemberId(): string;
|
||||||
setReferrerMemberId(value: string): void;
|
setParentMemberId(value: string): void;
|
||||||
|
|
||||||
getReferredCount(): number;
|
getChildMemberCount(): number;
|
||||||
setReferredCount(value: number): void;
|
setChildMemberCount(value: number): void;
|
||||||
|
|
||||||
getUsername(): string;
|
getUsername(): string;
|
||||||
setUsername(value: string): void;
|
setUsername(value: string): void;
|
||||||
|
@ -92,8 +92,8 @@ export namespace Member {
|
||||||
siteId: string;
|
siteId: string;
|
||||||
memberClassId: string;
|
memberClassId: string;
|
||||||
memberLevelId: string;
|
memberLevelId: string;
|
||||||
referrerMemberId: string;
|
parentMemberId: string;
|
||||||
referredCount: number;
|
childMemberCount: number;
|
||||||
username: string;
|
username: string;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
mobilePhoneNumber: string;
|
mobilePhoneNumber: string;
|
||||||
|
@ -135,13 +135,13 @@ export class MemberModel extends jspb.Message {
|
||||||
value?: models_member_bank_account_pb.MemberBankAccountModel
|
value?: models_member_bank_account_pb.MemberBankAccountModel
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
hasReferrerMember(): boolean;
|
hasParentMember(): boolean;
|
||||||
clearReferrerMember(): void;
|
clearParentMember(): void;
|
||||||
getReferrerMember(): Member | undefined;
|
getParentMember(): Member | undefined;
|
||||||
setReferrerMember(value?: Member): void;
|
setParentMember(value?: Member): void;
|
||||||
|
|
||||||
getReferredCount(): number;
|
getChildMemberCount(): number;
|
||||||
setReferredCount(value: number): void;
|
setChildMemberCount(value: number): void;
|
||||||
|
|
||||||
getUsername(): string;
|
getUsername(): string;
|
||||||
setUsername(value: string): void;
|
setUsername(value: string): void;
|
||||||
|
@ -211,8 +211,8 @@ export namespace MemberModel {
|
||||||
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
||||||
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
||||||
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
||||||
referrerMember?: Member.AsObject;
|
parentMember?: Member.AsObject;
|
||||||
referredCount: number;
|
childMemberCount: number;
|
||||||
username: string;
|
username: string;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
mobilePhoneNumber: string;
|
mobilePhoneNumber: string;
|
||||||
|
|
|
@ -108,8 +108,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
referrerMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
parentMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||||
referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
childMemberCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||||
username: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
username: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||||
nickname: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
nickname: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||||
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||||
|
@ -178,11 +178,11 @@ proto.bet.beteran.member.Member.deserializeBinaryFromReader = function (
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setReferrerMemberId(value);
|
msg.setParentMemberId(value);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
var value = /** @type {number} */ (reader.readUint64());
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
msg.setReferredCount(value);
|
msg.setChildMemberCount(value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
@ -276,7 +276,7 @@ proto.bet.beteran.member.Member.serializeBinaryToWriter = function (
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
writer.writeString(5, f);
|
writer.writeString(5, f);
|
||||||
}
|
}
|
||||||
f = message.getReferredCount();
|
f = message.getChildMemberCount();
|
||||||
if (f !== 0) {
|
if (f !== 0) {
|
||||||
writer.writeUint64(6, f);
|
writer.writeUint64(6, f);
|
||||||
}
|
}
|
||||||
|
@ -387,10 +387,10 @@ proto.bet.beteran.member.Member.prototype.setMemberLevelId = function (value) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional string referrer_member_id = 5;
|
* optional string parent_member_id = 5;
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () {
|
proto.bet.beteran.member.Member.prototype.getParentMemberId = function () {
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -398,9 +398,7 @@ proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () {
|
||||||
* @param {string} value
|
* @param {string} value
|
||||||
* @return {!proto.bet.beteran.member.Member} returns this
|
* @return {!proto.bet.beteran.member.Member} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function (
|
proto.bet.beteran.member.Member.prototype.setParentMemberId = function (value) {
|
||||||
value
|
|
||||||
) {
|
|
||||||
return jspb.Message.setField(this, 5, value);
|
return jspb.Message.setField(this, 5, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -408,7 +406,7 @@ proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function (
|
||||||
* Clears the field making it undefined.
|
* Clears the field making it undefined.
|
||||||
* @return {!proto.bet.beteran.member.Member} returns this
|
* @return {!proto.bet.beteran.member.Member} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () {
|
proto.bet.beteran.member.Member.prototype.clearParentMemberId = function () {
|
||||||
return jspb.Message.setField(this, 5, undefined);
|
return jspb.Message.setField(this, 5, undefined);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -416,15 +414,15 @@ proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () {
|
||||||
* Returns whether this field is set.
|
* Returns whether this field is set.
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.hasReferrerMemberId = function () {
|
proto.bet.beteran.member.Member.prototype.hasParentMemberId = function () {
|
||||||
return jspb.Message.getField(this, 5) != null;
|
return jspb.Message.getField(this, 5) != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional uint64 referred_count = 6;
|
* optional uint64 child_member_count = 6;
|
||||||
* @return {number}
|
* @return {number}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.getReferredCount = function () {
|
proto.bet.beteran.member.Member.prototype.getChildMemberCount = function () {
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -432,7 +430,9 @@ proto.bet.beteran.member.Member.prototype.getReferredCount = function () {
|
||||||
* @param {number} value
|
* @param {number} value
|
||||||
* @return {!proto.bet.beteran.member.Member} returns this
|
* @return {!proto.bet.beteran.member.Member} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.Member.prototype.setReferredCount = function (value) {
|
proto.bet.beteran.member.Member.prototype.setChildMemberCount = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
return jspb.Message.setProto3IntField(this, 6, value);
|
return jspb.Message.setProto3IntField(this, 6, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -733,10 +733,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
includeInstance,
|
includeInstance,
|
||||||
f
|
f
|
||||||
),
|
),
|
||||||
referrerMember:
|
parentMember:
|
||||||
(f = msg.getReferrerMember()) &&
|
(f = msg.getParentMember()) &&
|
||||||
proto.bet.beteran.member.Member.toObject(includeInstance, f),
|
proto.bet.beteran.member.Member.toObject(includeInstance, f),
|
||||||
referredCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
||||||
username: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
username: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||||
nickname: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
nickname: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||||
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
||||||
|
@ -830,11 +830,11 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function (
|
||||||
value,
|
value,
|
||||||
proto.bet.beteran.member.Member.deserializeBinaryFromReader
|
proto.bet.beteran.member.Member.deserializeBinaryFromReader
|
||||||
);
|
);
|
||||||
msg.setReferrerMember(value);
|
msg.setParentMember(value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
var value = /** @type {number} */ (reader.readUint64());
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
msg.setReferredCount(value);
|
msg.setChildMemberCount(value);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
@ -941,7 +941,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function (
|
||||||
.serializeBinaryToWriter
|
.serializeBinaryToWriter
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = message.getReferrerMember();
|
f = message.getParentMember();
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
writer.writeMessage(
|
writer.writeMessage(
|
||||||
6,
|
6,
|
||||||
|
@ -949,7 +949,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function (
|
||||||
proto.bet.beteran.member.Member.serializeBinaryToWriter
|
proto.bet.beteran.member.Member.serializeBinaryToWriter
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = message.getReferredCount();
|
f = message.getChildMemberCount();
|
||||||
if (f !== 0) {
|
if (f !== 0) {
|
||||||
writer.writeUint64(7, f);
|
writer.writeUint64(7, f);
|
||||||
}
|
}
|
||||||
|
@ -1158,10 +1158,10 @@ proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional Member referrer_member = 6;
|
* optional Member parent_member = 6;
|
||||||
* @return {?proto.bet.beteran.member.Member}
|
* @return {?proto.bet.beteran.member.Member}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () {
|
proto.bet.beteran.member.MemberModel.prototype.getParentMember = function () {
|
||||||
return /** @type{?proto.bet.beteran.member.Member} */ (
|
return /** @type{?proto.bet.beteran.member.Member} */ (
|
||||||
jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6)
|
jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6)
|
||||||
);
|
);
|
||||||
|
@ -1171,7 +1171,7 @@ proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () {
|
||||||
* @param {?proto.bet.beteran.member.Member|undefined} value
|
* @param {?proto.bet.beteran.member.Member|undefined} value
|
||||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function (
|
proto.bet.beteran.member.MemberModel.prototype.setParentMember = function (
|
||||||
value
|
value
|
||||||
) {
|
) {
|
||||||
return jspb.Message.setWrapperField(this, 6, value);
|
return jspb.Message.setWrapperField(this, 6, value);
|
||||||
|
@ -1181,32 +1181,32 @@ proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function (
|
||||||
* Clears the message field making it undefined.
|
* Clears the message field making it undefined.
|
||||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.clearReferrerMember =
|
proto.bet.beteran.member.MemberModel.prototype.clearParentMember = function () {
|
||||||
function () {
|
return this.setParentMember(undefined);
|
||||||
return this.setReferrerMember(undefined);
|
};
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether this field is set.
|
* Returns whether this field is set.
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function () {
|
proto.bet.beteran.member.MemberModel.prototype.hasParentMember = function () {
|
||||||
return jspb.Message.getField(this, 6) != null;
|
return jspb.Message.getField(this, 6) != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional uint64 referred_count = 7;
|
* optional uint64 child_member_count = 7;
|
||||||
* @return {number}
|
* @return {number}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () {
|
proto.bet.beteran.member.MemberModel.prototype.getChildMemberCount =
|
||||||
|
function () {
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} value
|
* @param {number} value
|
||||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function (
|
proto.bet.beteran.member.MemberModel.prototype.setChildMemberCount = function (
|
||||||
value
|
value
|
||||||
) {
|
) {
|
||||||
return jspb.Message.setProto3IntField(this, 7, value);
|
return jspb.Message.setProto3IntField(this, 7, value);
|
||||||
|
|
113
src/app/modules/proto/models/member_referrer_pb.d.ts
vendored
Normal file
113
src/app/modules/proto/models/member_referrer_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,113 @@
|
||||||
|
// package: bet.beteran.member_referrer
|
||||||
|
// file: models/member_referrer.proto
|
||||||
|
|
||||||
|
import * as jspb from 'google-protobuf';
|
||||||
|
import * as models_member_pb from '../models/member_pb';
|
||||||
|
|
||||||
|
export class MemberReferrer extends jspb.Message {
|
||||||
|
getId(): string;
|
||||||
|
setId(value: string): void;
|
||||||
|
|
||||||
|
getMemberId(): string;
|
||||||
|
setMemberId(value: string): void;
|
||||||
|
|
||||||
|
getCanUse(): boolean;
|
||||||
|
setCanUse(value: boolean): void;
|
||||||
|
|
||||||
|
hasMemo(): boolean;
|
||||||
|
clearMemo(): void;
|
||||||
|
getMemo(): string;
|
||||||
|
setMemo(value: string): void;
|
||||||
|
|
||||||
|
getCreatedAt(): number;
|
||||||
|
setCreatedAt(value: number): void;
|
||||||
|
|
||||||
|
getUpdatedAt(): number;
|
||||||
|
setUpdatedAt(value: number): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): MemberReferrer.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: MemberReferrer
|
||||||
|
): MemberReferrer.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: MemberReferrer,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): MemberReferrer;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: MemberReferrer,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): MemberReferrer;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace MemberReferrer {
|
||||||
|
export type AsObject = {
|
||||||
|
id: string;
|
||||||
|
memberId: string;
|
||||||
|
canUse: boolean;
|
||||||
|
memo: string;
|
||||||
|
createdAt: number;
|
||||||
|
updatedAt: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class MemberReferrerModel extends jspb.Message {
|
||||||
|
getId(): string;
|
||||||
|
setId(value: string): void;
|
||||||
|
|
||||||
|
hasMember(): boolean;
|
||||||
|
clearMember(): void;
|
||||||
|
getMember(): models_member_pb.Member | undefined;
|
||||||
|
setMember(value?: models_member_pb.Member): void;
|
||||||
|
|
||||||
|
getCanUse(): boolean;
|
||||||
|
setCanUse(value: boolean): void;
|
||||||
|
|
||||||
|
hasMemo(): boolean;
|
||||||
|
clearMemo(): void;
|
||||||
|
getMemo(): string;
|
||||||
|
setMemo(value: string): void;
|
||||||
|
|
||||||
|
getCreatedAt(): number;
|
||||||
|
setCreatedAt(value: number): void;
|
||||||
|
|
||||||
|
getUpdatedAt(): number;
|
||||||
|
setUpdatedAt(value: number): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): MemberReferrerModel.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: MemberReferrerModel
|
||||||
|
): MemberReferrerModel.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: MemberReferrerModel,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): MemberReferrerModel;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: MemberReferrerModel,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): MemberReferrerModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace MemberReferrerModel {
|
||||||
|
export type AsObject = {
|
||||||
|
id: string;
|
||||||
|
member?: models_member_pb.Member.AsObject;
|
||||||
|
canUse: boolean;
|
||||||
|
memo: string;
|
||||||
|
createdAt: number;
|
||||||
|
updatedAt: number;
|
||||||
|
};
|
||||||
|
}
|
702
src/app/modules/proto/models/member_referrer_pb.js
Normal file
702
src/app/modules/proto/models/member_referrer_pb.js
Normal file
|
@ -0,0 +1,702 @@
|
||||||
|
// source: models/member_referrer.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require("google-protobuf");
|
||||||
|
var goog = jspb;
|
||||||
|
var global = function () {
|
||||||
|
return this || window || global || self || Function("return this")();
|
||||||
|
}.call(null);
|
||||||
|
|
||||||
|
var models_member_pb = require("../models/member_pb.js");
|
||||||
|
goog.object.extend(proto, models_member_pb);
|
||||||
|
goog.exportSymbol(
|
||||||
|
"proto.bet.beteran.member_referrer.MemberReferrer",
|
||||||
|
null,
|
||||||
|
global
|
||||||
|
);
|
||||||
|
goog.exportSymbol(
|
||||||
|
"proto.bet.beteran.member_referrer.MemberReferrerModel",
|
||||||
|
null,
|
||||||
|
global
|
||||||
|
);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer = function (opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.bet.beteran.member_referrer.MemberReferrer, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.displayName =
|
||||||
|
"proto.bet.beteran.member_referrer.MemberReferrer";
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel = function (opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel,
|
||||||
|
jspb.Message
|
||||||
|
);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.displayName =
|
||||||
|
"proto.bet.beteran.member_referrer.MemberReferrerModel";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.toObject =
|
||||||
|
function (opt_includeInstance) {
|
||||||
|
return proto.bet.beteran.member_referrer.MemberReferrer.toObject(
|
||||||
|
opt_includeInstance,
|
||||||
|
this
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrer} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.toObject = function (
|
||||||
|
includeInstance,
|
||||||
|
msg
|
||||||
|
) {
|
||||||
|
var f,
|
||||||
|
obj = {
|
||||||
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
|
memberId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
|
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||||
|
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||||
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinary = function (
|
||||||
|
bytes
|
||||||
|
) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.bet.beteran.member_referrer.MemberReferrer();
|
||||||
|
return proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinaryFromReader(
|
||||||
|
msg,
|
||||||
|
reader
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrer} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinaryFromReader =
|
||||||
|
function (msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setId(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setMemberId(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
|
msg.setCanUse(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setMemo(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setCreatedAt(value);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setUpdatedAt(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.serializeBinary =
|
||||||
|
function () {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.serializeBinaryToWriter(
|
||||||
|
this,
|
||||||
|
writer
|
||||||
|
);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrer} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.serializeBinaryToWriter =
|
||||||
|
function (message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getId();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(1, f);
|
||||||
|
}
|
||||||
|
f = message.getMemberId();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(2, f);
|
||||||
|
}
|
||||||
|
f = message.getCanUse();
|
||||||
|
if (f) {
|
||||||
|
writer.writeBool(3, f);
|
||||||
|
}
|
||||||
|
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeString(4, f);
|
||||||
|
}
|
||||||
|
f = message.getCreatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(5, f);
|
||||||
|
}
|
||||||
|
f = message.getUpdatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(6, f);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string id = 1;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getId = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setId = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string member_id = 2;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemberId =
|
||||||
|
function () {
|
||||||
|
return /** @type {string} */ (
|
||||||
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemberId =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bool can_use = 3;
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCanUse =
|
||||||
|
function () {
|
||||||
|
return /** @type {boolean} */ (
|
||||||
|
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {boolean} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCanUse =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string memo = 4;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemo =
|
||||||
|
function () {
|
||||||
|
return /** @type {string} */ (
|
||||||
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemo = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the field making it undefined.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.clearMemo =
|
||||||
|
function () {
|
||||||
|
return jspb.Message.setField(this, 4, undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.hasMemo =
|
||||||
|
function () {
|
||||||
|
return jspb.Message.getField(this, 4) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 created_at = 5;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCreatedAt =
|
||||||
|
function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCreatedAt =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 updated_at = 6;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getUpdatedAt =
|
||||||
|
function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setUpdatedAt =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 6, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.toObject =
|
||||||
|
function (opt_includeInstance) {
|
||||||
|
return proto.bet.beteran.member_referrer.MemberReferrerModel.toObject(
|
||||||
|
opt_includeInstance,
|
||||||
|
this
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.toObject = function (
|
||||||
|
includeInstance,
|
||||||
|
msg
|
||||||
|
) {
|
||||||
|
var f,
|
||||||
|
obj = {
|
||||||
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
|
member:
|
||||||
|
(f = msg.getMember()) &&
|
||||||
|
models_member_pb.Member.toObject(includeInstance, f),
|
||||||
|
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||||
|
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||||
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinary =
|
||||||
|
function (bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.bet.beteran.member_referrer.MemberReferrerModel();
|
||||||
|
return proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinaryFromReader(
|
||||||
|
msg,
|
||||||
|
reader
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinaryFromReader =
|
||||||
|
function (msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setId(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = new models_member_pb.Member();
|
||||||
|
reader.readMessage(
|
||||||
|
value,
|
||||||
|
models_member_pb.Member.deserializeBinaryFromReader
|
||||||
|
);
|
||||||
|
msg.setMember(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
|
msg.setCanUse(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setMemo(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setCreatedAt(value);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
var value = /** @type {number} */ (reader.readUint64());
|
||||||
|
msg.setUpdatedAt(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.serializeBinary =
|
||||||
|
function () {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.serializeBinaryToWriter(
|
||||||
|
this,
|
||||||
|
writer
|
||||||
|
);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.serializeBinaryToWriter =
|
||||||
|
function (message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getId();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(1, f);
|
||||||
|
}
|
||||||
|
f = message.getMember();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
2,
|
||||||
|
f,
|
||||||
|
models_member_pb.Member.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getCanUse();
|
||||||
|
if (f) {
|
||||||
|
writer.writeBool(3, f);
|
||||||
|
}
|
||||||
|
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeString(4, f);
|
||||||
|
}
|
||||||
|
f = message.getCreatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(5, f);
|
||||||
|
}
|
||||||
|
f = message.getUpdatedAt();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeUint64(6, f);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string id = 1;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getId =
|
||||||
|
function () {
|
||||||
|
return /** @type {string} */ (
|
||||||
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setId =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bet.beteran.member.Member member = 2;
|
||||||
|
* @return {?proto.bet.beteran.member.Member}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMember =
|
||||||
|
function () {
|
||||||
|
return /** @type{?proto.bet.beteran.member.Member} */ (
|
||||||
|
jspb.Message.getWrapperField(this, models_member_pb.Member, 2)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.bet.beteran.member.Member|undefined} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMember =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMember =
|
||||||
|
function () {
|
||||||
|
return this.setMember(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMember =
|
||||||
|
function () {
|
||||||
|
return jspb.Message.getField(this, 2) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bool can_use = 3;
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCanUse =
|
||||||
|
function () {
|
||||||
|
return /** @type {boolean} */ (
|
||||||
|
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {boolean} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCanUse =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string memo = 4;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMemo =
|
||||||
|
function () {
|
||||||
|
return /** @type {string} */ (
|
||||||
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMemo =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the field making it undefined.
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMemo =
|
||||||
|
function () {
|
||||||
|
return jspb.Message.setField(this, 4, undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMemo =
|
||||||
|
function () {
|
||||||
|
return jspb.Message.getField(this, 4) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 created_at = 5;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCreatedAt =
|
||||||
|
function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCreatedAt =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional uint64 updated_at = 6;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getUpdatedAt =
|
||||||
|
function () {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setUpdatedAt =
|
||||||
|
function (value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 6, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.bet.beteran.member_referrer);
|
Loading…
Reference in New Issue
Block a user