server integration is implemented

This commit is contained in:
병준 박 2022-08-03 10:46:16 +00:00
parent 84d14dd7b7
commit 33838a3b90
24 changed files with 2319 additions and 2647 deletions

View File

@ -5,7 +5,6 @@ import { ExtraOptions, PreloadAllModules, RouterModule } from '@angular/router';
import { MatIconRegistry, MatIconModule } from '@angular/material/icon'; import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
import { DomSanitizer } from '@angular/platform-browser'; import { DomSanitizer } from '@angular/platform-browser';
import { MarkdownModule } from 'ngx-markdown'; import { MarkdownModule } from 'ngx-markdown';
import * as nats from 'nats.ws';
import { FuseModule } from '@fuse'; import { FuseModule } from '@fuse';
import { FuseConfigModule } from '@fuse/services/config'; import { FuseConfigModule } from '@fuse/services/config';
@ -16,7 +15,11 @@ import { mockApiServices } from 'app/mock-api';
import { LayoutModule } from 'app/layout/layout.module'; import { LayoutModule } from 'app/layout/layout.module';
import { AppComponent } from 'app/app.component'; import { AppComponent } from 'app/app.component';
import { appRoutes } from 'app/app.routing'; import { appRoutes } from 'app/app.routing';
import { NATS_CONNECTION } from 'app/core/nats/token';
import { NatsModule } from 'app/core/nats/nats.module';
import { environment } from 'environments/environment';
import { MemberModule } from 'app/modules/polyglot/member/member.module'; import { MemberModule } from 'app/modules/polyglot/member/member.module';
const routerConfig: ExtraOptions = { const routerConfig: ExtraOptions = {
@ -24,22 +27,6 @@ const routerConfig: ExtraOptions = {
scrollPositionRestoration: 'enabled', scrollPositionRestoration: 'enabled',
}; };
const natsConnection = () => {
return new Promise<nats.NatsConnection>((resolve, reject) => {
nats
.connect({
servers: ['ws://192.168.50.200:8088'],
})
.then((conn) => {
console.log('NATS connected', conn.info);
resolve(conn);
})
.catch((e) => {
reject(e);
});
});
};
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [AppComponent],
imports: [ imports: [
@ -62,9 +49,10 @@ const natsConnection = () => {
MarkdownModule.forRoot({}), MarkdownModule.forRoot({}),
MatIconModule, MatIconModule,
NatsModule.forRoot(environment.nats),
MemberModule.forRoot(), MemberModule.forRoot(),
], ],
providers: [{ provide: NATS_CONNECTION, useFactory: natsConnection }],
bootstrap: [AppComponent], bootstrap: [AppComponent],
}) })
export class AppModule { export class AppModule {

View File

@ -0,0 +1,5 @@
import * as nats from 'nats.ws';
export interface ModuleConfig {
connectionOptions: nats.ConnectionOptions;
}

View File

@ -0,0 +1,5 @@
import { InjectionToken } from '@angular/core';
export const _MODULE_CONFIG = new InjectionToken(
'@bet/beteran nats config of module'
);

View File

@ -1,7 +1,35 @@
import { NgModule } from '@angular/core'; import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
import { ModuleConfig } from './config/module-config';
import { _MODULE_CONFIG } from './config/token';
@NgModule({ import { SERVICES } from './services';
exports: [], import { NatsService } from './services/nats.service';
providers: [],
}) @NgModule({})
export class NatsCoreModule {} export class NatsRootModule {}
@NgModule({})
export class NatsModule {
public static forRoot(
config: ModuleConfig
): ModuleWithProviders<NatsRootModule> {
return {
ngModule: NatsRootModule,
providers: [
{ provide: _MODULE_CONFIG, useValue: config },
{
// Preload the default language before the app starts to prevent empty/jumping content
provide: APP_INITIALIZER,
deps: [NatsService],
useFactory:
(natsService: NatsService): any =>
(): Promise<void> => {
return natsService.connect();
},
multi: true,
},
...SERVICES,
],
};
}
}

View File

@ -0,0 +1,5 @@
import { Type } from '@angular/core';
import { NatsService } from './nats.service';
export const SERVICES: Type<any>[] = [NatsService];

View File

@ -0,0 +1,107 @@
import { Inject, Injectable, Type } from '@angular/core';
import * as jspb from 'google-protobuf';
import * as nats from 'nats.ws';
import { HEADER_CLIENT } from 'app/modules/protobuf/c2se/core/network_pb';
import { Client } from 'app/modules/protobuf/models/core/network_pb';
import { ModuleConfig } from '../config/module-config';
import { _MODULE_CONFIG } from '../config/token';
type DeserializeConstructor<T> = {
new (): T;
deserializeBinary(this: DeserializeConstructor<T>, bytes: Uint8Array): T;
};
const NAME_GET_ERROR = 'getError';
const NAME_GET_RESULT = 'getResult';
@Injectable({
providedIn: 'root',
})
export class NatsService {
private __conn?: nats.NatsConnection;
/**
* Constructor
*/
constructor(@Inject(_MODULE_CONFIG) private __config: ModuleConfig) {}
// -----------------------------------------------------------------------------------------------------
// @ Accessors
// -----------------------------------------------------------------------------------------------------
get connection(): nats.NatsConnection | undefined {
return this.__conn;
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
connect(): Promise<void> {
return new Promise<void>((resolve, reject) => {
if (!!this.__conn) {
return resolve();
}
nats
.connect(this.__config.connectionOptions)
.then((conn) => {
console.log('NATS connected', conn.info?.client_ip);
this.__conn = conn;
resolve();
})
.catch((e) => {
reject(e);
});
});
}
request<R>(
subject: string,
req: Uint8Array,
deserialize: (data: Uint8Array) => any,
opts?: nats.RequestOptions | undefined
): Promise<R> {
return new Promise<R>((resolve, reject) => {
let c = new Client();
c.setClientIp(this.__conn?.info?.client_ip + '');
c.setSessionId('');
c.setSiteUrl('');
let _opts: nats.RequestOptions = !!opts ? opts : { timeout: 3000 };
if (!_opts.headers) {
_opts.headers = nats.headers();
}
var decoder = new TextDecoder('utf8');
_opts.headers.append(
HEADER_CLIENT,
btoa(decoder.decode(c.serializeBinary()))
);
this.__conn?.request(subject, req, _opts).then((msg) => {
let res = deserialize(msg.data);
let get_error = (res as any)[NAME_GET_ERROR];
if (!!get_error) {
let error = get_error.call(res);
if (!!error) {
return reject(error);
}
}
let get_result = (res as any)[NAME_GET_RESULT];
if (!!get_result) {
let result = get_result.call(res);
if (!result) {
return reject('result is not exist');
}
return resolve(result);
}
return reject('protocol error');
});
});
}
}

View File

@ -1,6 +0,0 @@
import { InjectionToken } from '@angular/core';
import * as nats from 'nats.ws';
export const NATS_CONNECTION = new InjectionToken<nats.NatsConnection>(
'@bet nats connection'
);

View File

@ -198,7 +198,10 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
__onClickSearch(): void { __onClickSearch(): void {
this.__isSearchOpened = !this.__isSearchOpened; this.__isSearchOpened = !this.__isSearchOpened;
console.log('kkkk', this._identityService.getClientIp()); console.log(
'kkkk',
this._identityService.checkUsernameForDuplication('sdfsdfsdfsf')
);
} }
/** /**

View File

@ -1,8 +1,13 @@
import { Inject, Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { NATS_CONNECTION } from 'app/core/nats/token'; import { NatsService } from 'app/core/nats/services/nats.service';
import * as nats from 'nats.ws'; import * as nats from 'nats.ws';
import {
CheckUsernameForDuplicationRequest,
CheckUsernameForDuplicationResponse,
} from 'app/modules/protobuf/c2se/common/identity_pb';
import { SUBJECT_CHECK_USERNAME_FOR_DUPLICATION } from 'app/modules/protobuf/c2se/backend/identity_pb';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
}) })
@ -10,9 +15,7 @@ export class IdentityService {
/** /**
* Constructor * Constructor
*/ */
constructor( constructor(private __natsService: NatsService) {}
@Inject(NATS_CONNECTION) private __nats_connection: nats.NatsConnection
) {}
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
// @ Accessors // @ Accessors
@ -22,7 +25,23 @@ export class IdentityService {
// @ Public methods // @ Public methods
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
getClientIp(): number | undefined { checkUsernameForDuplication(username: string): Promise<boolean> {
return this.__nats_connection.info?.client_id; return new Promise<boolean>((resolve, reject) => {
let req = new CheckUsernameForDuplicationRequest();
req.setUsername(username);
this.__natsService
.request<CheckUsernameForDuplicationResponse.Result>(
SUBJECT_CHECK_USERNAME_FOR_DUPLICATION,
req.serializeBinary(),
CheckUsernameForDuplicationResponse.deserializeBinary
)
.then((result) => {
console.log('success', result, result.getDuplicated());
})
.catch((e) => {
console.log('failed', e);
});
});
} }
} }

View File

@ -4,6 +4,14 @@
import * as jspb from 'google-protobuf'; import * as jspb from 'google-protobuf';
import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb';
export const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: string;
export const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: string;
export const SUBJECT_CAPTCHA: string;
export const SUBJECT_SIGNIN: string;
export class SigninRequest extends jspb.Message { export class SigninRequest extends jspb.Message {
getToken(): string; getToken(): string;
setToken(value: string): void; setToken(value: string): void;
@ -53,10 +61,10 @@ export class SigninResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasSessionId(): boolean; hasResult(): boolean;
clearSessionId(): void; clearResult(): void;
getSessionId(): string; getResult(): SigninResponse.Result | undefined;
setSessionId(value: string): void; setResult(value?: SigninResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SigninResponse.AsObject; toObject(includeInstance?: boolean): SigninResponse.AsObject;
@ -82,6 +90,34 @@ export class SigninResponse extends jspb.Message {
export namespace SigninResponse { export namespace SigninResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: SigninResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getSessionId(): string;
setSessionId(value: string): 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 = {
sessionId: string; sessionId: string;
}; };
}
} }

View File

@ -29,6 +29,24 @@ goog.exportSymbol(
null, null,
global global
); );
goog.exportSymbol(
"proto.bet.beteran.c2se.backend.identity.SigninResponse.Result",
null,
global
);
proto.bet.beteran.c2se.backend.identity.SUBJECT_CHECK_USERNAME_FOR_DUPLICATION =
"bet.beteran.c2se.backend.identity.CheckUsernameForDuplication";
proto.bet.beteran.c2se.backend.identity.SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION =
"bet.beteran.c2se.backend.identity.CheckNicknameForDuplication";
proto.bet.beteran.c2se.backend.identity.SUBJECT_CAPTCHA =
"bet.beteran.c2se.backend.identity.Captcha";
proto.bet.beteran.c2se.backend.identity.SUBJECT_SIGNIN =
"bet.beteran.c2se.backend.identity.Signin";
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -79,6 +97,33 @@ if (goog.DEBUG && !COMPILED) {
proto.bet.beteran.c2se.backend.identity.SigninResponse.displayName = proto.bet.beteran.c2se.backend.identity.SigninResponse.displayName =
"proto.bet.beteran.c2se.backend.identity.SigninResponse"; "proto.bet.beteran.c2se.backend.identity.SigninResponse";
} }
/**
* 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.c2se.backend.identity.SigninResponse.Result = function (
opt_data
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result,
jspb.Message
);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.displayName =
"proto.bet.beteran.c2se.backend.identity.SigninResponse.Result";
}
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
@ -344,7 +389,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
error: error:
(f = msg.getError()) && (f = msg.getError()) &&
protobuf_rpc_error_pb.Error.toObject(includeInstance, f), protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""), result:
(f = msg.getResult()) &&
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.toObject(
includeInstance,
f
),
}; };
if (includeInstance) { if (includeInstance) {
@ -393,8 +443,14 @@ proto.bet.beteran.c2se.backend.identity.SigninResponse.deserializeBinaryFromRead
msg.setError(value); msg.setError(value);
break; break;
case 2: case 2:
var value = /** @type {string} */ (reader.readString()); var value =
msg.setSessionId(value); new proto.bet.beteran.c2se.backend.identity.SigninResponse.Result();
reader.readMessage(
value,
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result
.deserializeBinaryFromReader
);
msg.setResult(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -436,12 +492,154 @@ proto.bet.beteran.c2se.backend.identity.SigninResponse.serializeBinaryToWriter =
protobuf_rpc_error_pb.Error.serializeBinaryToWriter protobuf_rpc_error_pb.Error.serializeBinaryToWriter
); );
} }
f = /** @type {string} */ (jspb.Message.getField(message, 2)); f = message.getResult();
if (f != null) { if (f != null) {
writer.writeString(2, f); writer.writeMessage(
2,
f,
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result
.serializeBinaryToWriter
);
} }
}; };
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.c2se.backend.identity.SigninResponse.Result.prototype.toObject =
function (opt_includeInstance) {
return proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.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.c2se.backend.identity.SigninResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.toObject =
function (includeInstance, msg) {
var f,
obj = {
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
};
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.c2se.backend.identity.SigninResponse.Result}
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg =
new proto.bet.beteran.c2se.backend.identity.SigninResponse.Result();
return proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse.Result}
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.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.setSessionId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.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.c2se.backend.identity.SigninResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getSessionId();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string session_id = 1;
* @return {string}
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.prototype.getSessionId =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} returns this
*/
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.prototype.setSessionId =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/** /**
* optional bet.protobuf.rpc.Error error = 1; * optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error} * @return {?proto.bet.protobuf.rpc.Error}
@ -481,39 +679,43 @@ proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.hasError =
}; };
/** /**
* optional string session_id = 2; * optional Result result = 2;
* @return {string} * @return {?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result}
*/ */
proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.getSessionId = proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.getResult =
function () { function () {
return /** @type {string} */ ( return /** @type{?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} */ (
jspb.Message.getFieldWithDefault(this, 2, "") jspb.Message.getWrapperField(
this,
proto.bet.beteran.c2se.backend.identity.SigninResponse.Result,
2
)
); );
}; };
/** /**
* @param {string} value * @param {?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this
*/ */
proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.setSessionId = proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.setResult =
function (value) { function (value) {
return jspb.Message.setField(this, 2, value); return jspb.Message.setWrapperField(this, 2, value);
}; };
/** /**
* Clears the field making it undefined. * Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this
*/ */
proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.clearSessionId = proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.clearResult =
function () { function () {
return jspb.Message.setField(this, 2, undefined); return this.setResult(undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.hasSessionId = proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.hasResult =
function () { function () {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };

View File

@ -65,13 +65,10 @@ export class ListMembersResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
clearMembersList(): void; hasResult(): boolean;
getMembersList(): Array<models_member_member_pb.Member>; clearResult(): void;
setMembersList(value: Array<models_member_member_pb.Member>): void; getResult(): ListMembersResponse.Result | undefined;
addMembers( setResult(value?: ListMembersResponse.Result): void;
value?: models_member_member_pb.Member,
index?: number
): models_member_member_pb.Member;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMembersResponse.AsObject; toObject(includeInstance?: boolean): ListMembersResponse.AsObject;
@ -97,8 +94,41 @@ export class ListMembersResponse extends jspb.Message {
export namespace ListMembersResponse { export namespace ListMembersResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: ListMembersResponse.Result.AsObject;
};
export class Result extends jspb.Message {
clearMembersList(): void;
getMembersList(): Array<models_member_member_pb.Member>;
setMembersList(value: Array<models_member_member_pb.Member>): void;
addMembers(
value?: models_member_member_pb.Member,
index?: number
): models_member_member_pb.Member;
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 = {
membersList: Array<models_member_member_pb.Member.AsObject>; membersList: Array<models_member_member_pb.Member.AsObject>;
}; };
}
} }
export class GetMemberRequest extends jspb.Message { export class GetMemberRequest extends jspb.Message {
@ -138,10 +168,10 @@ export class GetMemberResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasMember(): boolean; hasResult(): boolean;
clearMember(): void; clearResult(): void;
getMember(): models_member_member_pb.Member | undefined; getResult(): GetMemberResponse.Result | undefined;
setMember(value?: models_member_member_pb.Member): void; setResult(value?: GetMemberResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMemberResponse.AsObject; toObject(includeInstance?: boolean): GetMemberResponse.AsObject;
@ -167,8 +197,38 @@ export class GetMemberResponse extends jspb.Message {
export namespace GetMemberResponse { export namespace GetMemberResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: GetMemberResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasMember(): boolean;
clearMember(): void;
getMember(): models_member_member_pb.Member | undefined;
setMember(value?: models_member_member_pb.Member): 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 = {
member?: models_member_member_pb.Member.AsObject; member?: models_member_member_pb.Member.AsObject;
}; };
}
} }
export class GetMemberByUsernameRequest extends jspb.Message { export class GetMemberByUsernameRequest extends jspb.Message {
@ -208,10 +268,10 @@ export class GetMemberByUsernameResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasMember(): boolean; hasResult(): boolean;
clearMember(): void; clearResult(): void;
getMember(): models_member_member_pb.Member | undefined; getResult(): GetMemberByUsernameResponse.Result | undefined;
setMember(value?: models_member_member_pb.Member): void; setResult(value?: GetMemberByUsernameResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMemberByUsernameResponse.AsObject; toObject(includeInstance?: boolean): GetMemberByUsernameResponse.AsObject;
@ -237,6 +297,36 @@ export class GetMemberByUsernameResponse extends jspb.Message {
export namespace GetMemberByUsernameResponse { export namespace GetMemberByUsernameResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: GetMemberByUsernameResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasMember(): boolean;
clearMember(): void;
getMember(): models_member_member_pb.Member | undefined;
setMember(value?: models_member_member_pb.Member): 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 = {
member?: models_member_member_pb.Member.AsObject; member?: models_member_member_pb.Member.AsObject;
}; };
}
} }

File diff suppressed because it is too large Load Diff

View File

@ -45,10 +45,10 @@ export class CheckUsernameForDuplicationResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasDuplicated(): boolean; hasResult(): boolean;
clearDuplicated(): void; clearResult(): void;
getDuplicated(): boolean; getResult(): CheckUsernameForDuplicationResponse.Result | undefined;
setDuplicated(value: boolean): void; setResult(value?: CheckUsernameForDuplicationResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject( toObject(
@ -78,8 +78,36 @@ export class CheckUsernameForDuplicationResponse extends jspb.Message {
export namespace CheckUsernameForDuplicationResponse { export namespace CheckUsernameForDuplicationResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: CheckUsernameForDuplicationResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getDuplicated(): boolean;
setDuplicated(value: boolean): 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 = {
duplicated: boolean; duplicated: boolean;
}; };
}
} }
export class CheckNicknameForDuplicationRequest extends jspb.Message { export class CheckNicknameForDuplicationRequest extends jspb.Message {
@ -123,10 +151,10 @@ export class CheckNicknameForDuplicationResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasDuplicated(): boolean; hasResult(): boolean;
clearDuplicated(): void; clearResult(): void;
getDuplicated(): boolean; getResult(): CheckNicknameForDuplicationResponse.Result | undefined;
setDuplicated(value: boolean): void; setResult(value?: CheckNicknameForDuplicationResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject( toObject(
@ -156,8 +184,36 @@ export class CheckNicknameForDuplicationResponse extends jspb.Message {
export namespace CheckNicknameForDuplicationResponse { export namespace CheckNicknameForDuplicationResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: CheckNicknameForDuplicationResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getDuplicated(): boolean;
setDuplicated(value: boolean): 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 = {
duplicated: boolean; duplicated: boolean;
}; };
}
} }
export class CaptchaRequest extends jspb.Message { export class CaptchaRequest extends jspb.Message {
@ -192,15 +248,10 @@ export class CaptchaResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasToken(): boolean; hasResult(): boolean;
clearToken(): void; clearResult(): void;
getToken(): string; getResult(): CaptchaResponse.Result | undefined;
setToken(value: string): void; setResult(value?: CaptchaResponse.Result): void;
hasImage(): boolean;
clearImage(): void;
getImage(): string;
setImage(value: string): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CaptchaResponse.AsObject; toObject(includeInstance?: boolean): CaptchaResponse.AsObject;
@ -226,7 +277,38 @@ export class CaptchaResponse extends jspb.Message {
export namespace CaptchaResponse { export namespace CaptchaResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: CaptchaResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getToken(): string;
setToken(value: string): void;
getImage(): string;
setImage(value: string): 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 = {
token: string; token: string;
image: string; image: string;
}; };
}
} }

View File

@ -29,6 +29,11 @@ goog.exportSymbol(
null, null,
global global
); );
goog.exportSymbol(
"proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result",
null,
global
);
goog.exportSymbol( goog.exportSymbol(
"proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest", "proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest",
null, null,
@ -39,6 +44,11 @@ goog.exportSymbol(
null, null,
global global
); );
goog.exportSymbol(
"proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result",
null,
global
);
goog.exportSymbol( goog.exportSymbol(
"proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest", "proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest",
null, null,
@ -49,6 +59,11 @@ goog.exportSymbol(
null, null,
global global
); );
goog.exportSymbol(
"proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result",
null,
global
);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -101,6 +116,33 @@ if (goog.DEBUG && !COMPILED) {
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.displayName = proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.displayName =
"proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse"; "proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse";
} }
/**
* 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.c2se.common.identity.CheckUsernameForDuplicationResponse.Result =
function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse
.Result,
jspb.Message
);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.displayName =
"proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result";
}
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -153,6 +195,33 @@ if (goog.DEBUG && !COMPILED) {
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.displayName = proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.displayName =
"proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse"; "proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse";
} }
/**
* 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.c2se.common.identity.CheckNicknameForDuplicationResponse.Result =
function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse
.Result,
jspb.Message
);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.displayName =
"proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result";
}
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -203,6 +272,33 @@ if (goog.DEBUG && !COMPILED) {
proto.bet.beteran.c2se.common.identity.CaptchaResponse.displayName = proto.bet.beteran.c2se.common.identity.CaptchaResponse.displayName =
"proto.bet.beteran.c2se.common.identity.CaptchaResponse"; "proto.bet.beteran.c2se.common.identity.CaptchaResponse";
} }
/**
* 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.c2se.common.identity.CaptchaResponse.Result = function (
opt_data
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result,
jspb.Message
);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.displayName =
"proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result";
}
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
@ -378,7 +474,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
error: error:
(f = msg.getError()) && (f = msg.getError()) &&
protobuf_rpc_error_pb.Error.toObject(includeInstance, f), protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), result:
(f = msg.getResult()) &&
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.toObject(
includeInstance,
f
),
}; };
if (includeInstance) { if (includeInstance) {
@ -428,8 +529,15 @@ proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.deser
msg.setError(value); msg.setError(value);
break; break;
case 2: case 2:
var value = /** @type {boolean} */ (reader.readBool()); var value =
msg.setDuplicated(value); new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result();
reader.readMessage(
value,
proto.bet.beteran.c2se.common.identity
.CheckUsernameForDuplicationResponse.Result
.deserializeBinaryFromReader
);
msg.setResult(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -471,12 +579,154 @@ proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.seria
protobuf_rpc_error_pb.Error.serializeBinaryToWriter protobuf_rpc_error_pb.Error.serializeBinaryToWriter
); );
} }
f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); f = message.getResult();
if (f != null) { if (f != null) {
writer.writeBool(2, f); writer.writeMessage(
2,
f,
proto.bet.beteran.c2se.common.identity
.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter
);
} }
}; };
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.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.toObject =
function (opt_includeInstance) {
return proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.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.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.toObject =
function (includeInstance, msg) {
var f,
obj = {
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
};
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.c2se.common.identity.CheckUsernameForDuplicationResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg =
new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result();
return proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDuplicated(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.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.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getDuplicated();
if (f) {
writer.writeBool(1, f);
}
};
/**
* optional bool duplicated = 1;
* @return {boolean}
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.getDuplicated =
function () {
return /** @type {boolean} */ (
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
);
};
/**
* @param {boolean} value
* @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} returns this
*/
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.setDuplicated =
function (value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/** /**
* optional bet.protobuf.rpc.Error error = 1; * optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error} * @return {?proto.bet.protobuf.rpc.Error}
@ -516,39 +766,44 @@ proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.proto
}; };
/** /**
* optional bool duplicated = 2; * optional Result result = 2;
* @return {boolean} * @return {?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result}
*/ */
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.getDuplicated = proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.getResult =
function () { function () {
return /** @type {boolean} */ ( return /** @type{?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} */ (
jspb.Message.getBooleanFieldWithDefault(this, 2, false) jspb.Message.getWrapperField(
this,
proto.bet.beteran.c2se.common.identity
.CheckUsernameForDuplicationResponse.Result,
2
)
); );
}; };
/** /**
* @param {boolean} value * @param {?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.setDuplicated = proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.setResult =
function (value) { function (value) {
return jspb.Message.setField(this, 2, value); return jspb.Message.setWrapperField(this, 2, value);
}; };
/** /**
* Clears the field making it undefined. * Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.clearDuplicated = proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.clearResult =
function () { function () {
return jspb.Message.setField(this, 2, undefined); return this.setResult(undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.hasDuplicated = proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.hasResult =
function () { function () {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };
@ -727,7 +982,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
error: error:
(f = msg.getError()) && (f = msg.getError()) &&
protobuf_rpc_error_pb.Error.toObject(includeInstance, f), protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), result:
(f = msg.getResult()) &&
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.toObject(
includeInstance,
f
),
}; };
if (includeInstance) { if (includeInstance) {
@ -777,8 +1037,15 @@ proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.deser
msg.setError(value); msg.setError(value);
break; break;
case 2: case 2:
var value = /** @type {boolean} */ (reader.readBool()); var value =
msg.setDuplicated(value); new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result();
reader.readMessage(
value,
proto.bet.beteran.c2se.common.identity
.CheckNicknameForDuplicationResponse.Result
.deserializeBinaryFromReader
);
msg.setResult(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -820,12 +1087,154 @@ proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.seria
protobuf_rpc_error_pb.Error.serializeBinaryToWriter protobuf_rpc_error_pb.Error.serializeBinaryToWriter
); );
} }
f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); f = message.getResult();
if (f != null) { if (f != null) {
writer.writeBool(2, f); writer.writeMessage(
2,
f,
proto.bet.beteran.c2se.common.identity
.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter
);
} }
}; };
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.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.toObject =
function (opt_includeInstance) {
return proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.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.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.toObject =
function (includeInstance, msg) {
var f,
obj = {
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
};
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.c2se.common.identity.CheckNicknameForDuplicationResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg =
new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result();
return proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDuplicated(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.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.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getDuplicated();
if (f) {
writer.writeBool(1, f);
}
};
/**
* optional bool duplicated = 1;
* @return {boolean}
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.getDuplicated =
function () {
return /** @type {boolean} */ (
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
);
};
/**
* @param {boolean} value
* @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} returns this
*/
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.setDuplicated =
function (value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/** /**
* optional bet.protobuf.rpc.Error error = 1; * optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error} * @return {?proto.bet.protobuf.rpc.Error}
@ -865,39 +1274,44 @@ proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.proto
}; };
/** /**
* optional bool duplicated = 2; * optional Result result = 2;
* @return {boolean} * @return {?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result}
*/ */
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.getDuplicated = proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.getResult =
function () { function () {
return /** @type {boolean} */ ( return /** @type{?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} */ (
jspb.Message.getBooleanFieldWithDefault(this, 2, false) jspb.Message.getWrapperField(
this,
proto.bet.beteran.c2se.common.identity
.CheckNicknameForDuplicationResponse.Result,
2
)
); );
}; };
/** /**
* @param {boolean} value * @param {?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.setDuplicated = proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.setResult =
function (value) { function (value) {
return jspb.Message.setField(this, 2, value); return jspb.Message.setWrapperField(this, 2, value);
}; };
/** /**
* Clears the field making it undefined. * Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.clearDuplicated = proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.clearResult =
function () { function () {
return jspb.Message.setField(this, 2, undefined); return this.setResult(undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.hasDuplicated = proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.hasResult =
function () { function () {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };
@ -1049,8 +1463,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
error: error:
(f = msg.getError()) && (f = msg.getError()) &&
protobuf_rpc_error_pb.Error.toObject(includeInstance, f), protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
token: jspb.Message.getFieldWithDefault(msg, 2, ""), result:
image: jspb.Message.getFieldWithDefault(msg, 3, ""), (f = msg.getResult()) &&
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.toObject(
includeInstance,
f
),
}; };
if (includeInstance) { if (includeInstance) {
@ -1099,12 +1517,14 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.deserializeBinaryFromRead
msg.setError(value); msg.setError(value);
break; break;
case 2: case 2:
var value = /** @type {string} */ (reader.readString()); var value =
msg.setToken(value); new proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result();
break; reader.readMessage(
case 3: value,
var value = /** @type {string} */ (reader.readString()); proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result
msg.setImage(value); .deserializeBinaryFromReader
);
msg.setResult(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -1146,14 +1566,181 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.serializeBinaryToWriter =
protobuf_rpc_error_pb.Error.serializeBinaryToWriter protobuf_rpc_error_pb.Error.serializeBinaryToWriter
); );
} }
f = /** @type {string} */ (jspb.Message.getField(message, 2)); f = message.getResult();
if (f != null) { if (f != null) {
writer.writeMessage(
2,
f,
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result
.serializeBinaryToWriter
);
}
};
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.c2se.common.identity.CaptchaResponse.Result.prototype.toObject =
function (opt_includeInstance) {
return proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.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.c2se.common.identity.CaptchaResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.toObject =
function (includeInstance, msg) {
var f,
obj = {
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
image: jspb.Message.getFieldWithDefault(msg, 2, ""),
};
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.c2se.common.identity.CaptchaResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg =
new proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result();
return proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.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.setToken(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setImage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.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.c2se.common.identity.CaptchaResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getToken();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getImage();
if (f.length > 0) {
writer.writeString(2, f); writer.writeString(2, f);
} }
f = /** @type {string} */ (jspb.Message.getField(message, 3)); };
if (f != null) {
writer.writeString(3, f); /**
} * optional string token = 1;
* @return {string}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getToken =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.setToken =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string image = 2;
* @return {string}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getImage =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.setImage =
function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
}; };
/** /**
@ -1195,79 +1782,45 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasError =
}; };
/** /**
* optional string token = 2; * optional Result result = 2;
* @return {string} * @return {?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result}
*/ */
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.getToken = proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.getResult =
function () { function () {
return /** @type {string} */ ( return /** @type{?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} */ (
jspb.Message.getFieldWithDefault(this, 2, "") jspb.Message.getWrapperField(
this,
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result,
2
)
); );
}; };
/** /**
* @param {string} value * @param {?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.setToken = proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.setResult =
function (value) { function (value) {
return jspb.Message.setField(this, 2, value); return jspb.Message.setWrapperField(this, 2, value);
}; };
/** /**
* Clears the field making it undefined. * Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this
*/ */
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.clearToken = proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.clearResult =
function () { function () {
return jspb.Message.setField(this, 2, undefined); return this.setResult(undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasToken = proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasResult =
function () { function () {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };
/**
* optional string image = 3;
* @return {string}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.getImage =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 3, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.setImage =
function (value) {
return jspb.Message.setField(this, 3, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.clearImage =
function () {
return jspb.Message.setField(this, 3, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasImage =
function () {
return jspb.Message.getField(this, 3) != null;
};
goog.object.extend(exports, proto.bet.beteran.c2se.common.identity); goog.object.extend(exports, proto.bet.beteran.c2se.common.identity);

View File

@ -2,3 +2,5 @@
// file: c2se/core/network.proto // file: c2se/core/network.proto
import * as jspb from 'google-protobuf'; import * as jspb from 'google-protobuf';
export const HEADER_CLIENT: string;

View File

@ -16,3 +16,12 @@ var goog = jspb;
var global = function () { var global = function () {
return this || window || global || self || Function("return this")(); return this || window || global || self || Function("return this")();
}.call(null); }.call(null);
goog.exportSymbol("proto.bet.beteran.c2se.core.network", null, global);
proto.bet.beteran.c2se.core.network = {};
proto.bet.beteran.c2se.core.network.HEADER_CLIENT =
"bet.beteran.c2se.core.network.Client";
goog.object.extend(exports, proto.bet.beteran.c2se.core.network);

View File

@ -4,6 +4,14 @@
import * as jspb from 'google-protobuf'; import * as jspb from 'google-protobuf';
import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb';
export const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: string;
export const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: string;
export const SUBJECT_CAPTCHA: string;
export const SUBJECT_SIGNIN: string;
export class SigninRequest extends jspb.Message { export class SigninRequest extends jspb.Message {
getToken(): string; getToken(): string;
setToken(value: string): void; setToken(value: string): void;
@ -53,10 +61,10 @@ export class SigninResponse extends jspb.Message {
getError(): protobuf_rpc_error_pb.Error | undefined; getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void; setError(value?: protobuf_rpc_error_pb.Error): void;
hasSessionId(): boolean; hasResult(): boolean;
clearSessionId(): void; clearResult(): void;
getSessionId(): string; getResult(): SigninResponse.Result | undefined;
setSessionId(value: string): void; setResult(value?: SigninResponse.Result): void;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SigninResponse.AsObject; toObject(includeInstance?: boolean): SigninResponse.AsObject;
@ -82,6 +90,34 @@ export class SigninResponse extends jspb.Message {
export namespace SigninResponse { export namespace SigninResponse {
export type AsObject = { export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject; error?: protobuf_rpc_error_pb.Error.AsObject;
result?: SigninResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getSessionId(): string;
setSessionId(value: string): 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 = {
sessionId: string; sessionId: string;
}; };
}
} }

View File

@ -29,6 +29,24 @@ goog.exportSymbol(
null, null,
global global
); );
goog.exportSymbol(
"proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result",
null,
global
);
proto.bet.beteran.c2se.frontend.identity.SUBJECT_CHECK_USERNAME_FOR_DUPLICATION =
"bet.beteran.c2se.frontend.identity.CheckUsernameForDuplication";
proto.bet.beteran.c2se.frontend.identity.SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION =
"bet.beteran.c2se.frontend.identity.CheckNicknameForDuplication";
proto.bet.beteran.c2se.frontend.identity.SUBJECT_CAPTCHA =
"bet.beteran.c2se.frontend.identity.Captcha";
proto.bet.beteran.c2se.frontend.identity.SUBJECT_SIGNIN =
"bet.beteran.c2se.frontend.identity.Signin";
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -79,6 +97,33 @@ if (goog.DEBUG && !COMPILED) {
proto.bet.beteran.c2se.frontend.identity.SigninResponse.displayName = proto.bet.beteran.c2se.frontend.identity.SigninResponse.displayName =
"proto.bet.beteran.c2se.frontend.identity.SigninResponse"; "proto.bet.beteran.c2se.frontend.identity.SigninResponse";
} }
/**
* 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.c2se.frontend.identity.SigninResponse.Result = function (
opt_data
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result,
jspb.Message
);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.displayName =
"proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result";
}
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
@ -344,7 +389,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
error: error:
(f = msg.getError()) && (f = msg.getError()) &&
protobuf_rpc_error_pb.Error.toObject(includeInstance, f), protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""), result:
(f = msg.getResult()) &&
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.toObject(
includeInstance,
f
),
}; };
if (includeInstance) { if (includeInstance) {
@ -393,8 +443,14 @@ proto.bet.beteran.c2se.frontend.identity.SigninResponse.deserializeBinaryFromRea
msg.setError(value); msg.setError(value);
break; break;
case 2: case 2:
var value = /** @type {string} */ (reader.readString()); var value =
msg.setSessionId(value); new proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result();
reader.readMessage(
value,
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result
.deserializeBinaryFromReader
);
msg.setResult(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -436,12 +492,154 @@ proto.bet.beteran.c2se.frontend.identity.SigninResponse.serializeBinaryToWriter
protobuf_rpc_error_pb.Error.serializeBinaryToWriter protobuf_rpc_error_pb.Error.serializeBinaryToWriter
); );
} }
f = /** @type {string} */ (jspb.Message.getField(message, 2)); f = message.getResult();
if (f != null) { if (f != null) {
writer.writeString(2, f); writer.writeMessage(
2,
f,
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result
.serializeBinaryToWriter
);
} }
}; };
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.c2se.frontend.identity.SigninResponse.Result.prototype.toObject =
function (opt_includeInstance) {
return proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.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.c2se.frontend.identity.SigninResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.toObject =
function (includeInstance, msg) {
var f,
obj = {
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
};
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.c2se.frontend.identity.SigninResponse.Result}
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg =
new proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result();
return proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result}
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.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.setSessionId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.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.c2se.frontend.identity.SigninResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getSessionId();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string session_id = 1;
* @return {string}
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.prototype.getSessionId =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} returns this
*/
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.prototype.setSessionId =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/** /**
* optional bet.protobuf.rpc.Error error = 1; * optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error} * @return {?proto.bet.protobuf.rpc.Error}
@ -481,39 +679,43 @@ proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.hasError =
}; };
/** /**
* optional string session_id = 2; * optional Result result = 2;
* @return {string} * @return {?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result}
*/ */
proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.getSessionId = proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.getResult =
function () { function () {
return /** @type {string} */ ( return /** @type{?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} */ (
jspb.Message.getFieldWithDefault(this, 2, "") jspb.Message.getWrapperField(
this,
proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result,
2
)
); );
}; };
/** /**
* @param {string} value * @param {?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this
*/ */
proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.setSessionId = proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.setResult =
function (value) { function (value) {
return jspb.Message.setField(this, 2, value); return jspb.Message.setWrapperField(this, 2, value);
}; };
/** /**
* Clears the field making it undefined. * Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this
*/ */
proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.clearSessionId = proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.clearResult =
function () { function () {
return jspb.Message.setField(this, 2, undefined); return this.setResult(undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.hasSessionId = proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.hasResult =
function () { function () {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };

View File

@ -1,340 +0,0 @@
// package: bet.beteran.ss.member.identity
// file: ss/member/identity.proto
import * as jspb from 'google-protobuf';
import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb';
import * as models_core_network_pb from '../../models/core/network_pb';
export class CheckUsernameForDuplicationRequest extends jspb.Message {
hasClient(): boolean;
clearClient(): void;
getClient(): models_core_network_pb.Client | undefined;
setClient(value?: models_core_network_pb.Client): void;
getUsername(): string;
setUsername(value: string): void;
serializeBinary(): Uint8Array;
toObject(
includeInstance?: boolean
): CheckUsernameForDuplicationRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: CheckUsernameForDuplicationRequest
): CheckUsernameForDuplicationRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CheckUsernameForDuplicationRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(
bytes: Uint8Array
): CheckUsernameForDuplicationRequest;
static deserializeBinaryFromReader(
message: CheckUsernameForDuplicationRequest,
reader: jspb.BinaryReader
): CheckUsernameForDuplicationRequest;
}
export namespace CheckUsernameForDuplicationRequest {
export type AsObject = {
client?: models_core_network_pb.Client.AsObject;
username: string;
};
}
export class CheckUsernameForDuplicationResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasDuplicated(): boolean;
clearDuplicated(): void;
getDuplicated(): boolean;
setDuplicated(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(
includeInstance?: boolean
): CheckUsernameForDuplicationResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: CheckUsernameForDuplicationResponse
): CheckUsernameForDuplicationResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CheckUsernameForDuplicationResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(
bytes: Uint8Array
): CheckUsernameForDuplicationResponse;
static deserializeBinaryFromReader(
message: CheckUsernameForDuplicationResponse,
reader: jspb.BinaryReader
): CheckUsernameForDuplicationResponse;
}
export namespace CheckUsernameForDuplicationResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
duplicated: boolean;
};
}
export class CheckNicknameForDuplicationRequest extends jspb.Message {
hasClient(): boolean;
clearClient(): void;
getClient(): models_core_network_pb.Client | undefined;
setClient(value?: models_core_network_pb.Client): void;
getNickname(): string;
setNickname(value: string): void;
serializeBinary(): Uint8Array;
toObject(
includeInstance?: boolean
): CheckNicknameForDuplicationRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: CheckNicknameForDuplicationRequest
): CheckNicknameForDuplicationRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CheckNicknameForDuplicationRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(
bytes: Uint8Array
): CheckNicknameForDuplicationRequest;
static deserializeBinaryFromReader(
message: CheckNicknameForDuplicationRequest,
reader: jspb.BinaryReader
): CheckNicknameForDuplicationRequest;
}
export namespace CheckNicknameForDuplicationRequest {
export type AsObject = {
client?: models_core_network_pb.Client.AsObject;
nickname: string;
};
}
export class CheckNicknameForDuplicationResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasDuplicated(): boolean;
clearDuplicated(): void;
getDuplicated(): boolean;
setDuplicated(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(
includeInstance?: boolean
): CheckNicknameForDuplicationResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: CheckNicknameForDuplicationResponse
): CheckNicknameForDuplicationResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CheckNicknameForDuplicationResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(
bytes: Uint8Array
): CheckNicknameForDuplicationResponse;
static deserializeBinaryFromReader(
message: CheckNicknameForDuplicationResponse,
reader: jspb.BinaryReader
): CheckNicknameForDuplicationResponse;
}
export namespace CheckNicknameForDuplicationResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
duplicated: boolean;
};
}
export class CaptchaRequest extends jspb.Message {
hasClient(): boolean;
clearClient(): void;
getClient(): models_core_network_pb.Client | undefined;
setClient(value?: models_core_network_pb.Client): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CaptchaRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: CaptchaRequest
): CaptchaRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CaptchaRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CaptchaRequest;
static deserializeBinaryFromReader(
message: CaptchaRequest,
reader: jspb.BinaryReader
): CaptchaRequest;
}
export namespace CaptchaRequest {
export type AsObject = {
client?: models_core_network_pb.Client.AsObject;
};
}
export class CaptchaResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasToken(): boolean;
clearToken(): void;
getToken(): string;
setToken(value: string): void;
hasImage(): boolean;
clearImage(): void;
getImage(): string;
setImage(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CaptchaResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: CaptchaResponse
): CaptchaResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CaptchaResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CaptchaResponse;
static deserializeBinaryFromReader(
message: CaptchaResponse,
reader: jspb.BinaryReader
): CaptchaResponse;
}
export namespace CaptchaResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
token: string;
image: string;
};
}
export class SigninRequest extends jspb.Message {
hasClient(): boolean;
clearClient(): void;
getClient(): models_core_network_pb.Client | undefined;
setClient(value?: models_core_network_pb.Client): void;
getToken(): string;
setToken(value: string): void;
getSecurityCode(): string;
setSecurityCode(value: string): void;
getUsername(): string;
setUsername(value: string): void;
getPassword(): string;
setPassword(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SigninRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: SigninRequest
): SigninRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: SigninRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): SigninRequest;
static deserializeBinaryFromReader(
message: SigninRequest,
reader: jspb.BinaryReader
): SigninRequest;
}
export namespace SigninRequest {
export type AsObject = {
client?: models_core_network_pb.Client.AsObject;
token: string;
securityCode: string;
username: string;
password: string;
};
}
export class SigninResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasToken(): boolean;
clearToken(): void;
getToken(): string;
setToken(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SigninResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: SigninResponse
): SigninResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: SigninResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): SigninResponse;
static deserializeBinaryFromReader(
message: SigninResponse,
reader: jspb.BinaryReader
): SigninResponse;
}
export namespace SigninResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
token: string;
};
}

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,10 @@
export const environment = { import { Environment } from './environment.type';
export const environment: Environment = {
production: true, production: true,
nats: {
connectionOptions: {
servers: ['ws://192.168.50.200:8088'],
},
},
}; };

View File

@ -2,8 +2,15 @@
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.
export const environment = { import { Environment } from './environment.type';
export const environment: Environment = {
production: false, production: false,
nats: {
connectionOptions: {
servers: ['ws://192.168.50.200:8088'],
},
},
}; };
/* /*

View File

@ -0,0 +1,8 @@
import * as nats from 'nats.ws';
export interface Environment {
production: boolean;
nats: {
connectionOptions: nats.ConnectionOptions;
};
}