diff --git a/src/app/modules/polyglot/api/services/game.service.ts b/src/app/modules/polyglot/api/services/game.service.ts index 1d53ab1..986f421 100644 --- a/src/app/modules/polyglot/api/services/game.service.ts +++ b/src/app/modules/polyglot/api/services/game.service.ts @@ -26,10 +26,10 @@ export class GameService { // @ Public methods // ----------------------------------------------------------------------------------------------------- - listGames(vendorId: number): Promise { + listGames(parentId: number): Promise { return new Promise((resolve, reject) => { let search = new ListGamesRequest.Search(); - search.setVendorId(vendorId); + search.setParentId(parentId); let req = new ListGamesRequest(); req.setSearch(search); diff --git a/src/app/modules/proto/c2se/api/game_pb.d.ts b/src/app/modules/proto/c2se/api/game_pb.d.ts index 1149d93..b59802b 100644 --- a/src/app/modules/proto/c2se/api/game_pb.d.ts +++ b/src/app/modules/proto/c2se/api/game_pb.d.ts @@ -55,10 +55,10 @@ export namespace ListGamesRequest { }; export class Search extends jspb.Message { - hasVendorId(): boolean; - clearVendorId(): void; - getVendorId(): number; - setVendorId(value: number): void; + hasParentId(): boolean; + clearParentId(): void; + getParentId(): number; + setParentId(value: number): void; hasKeyLike(): boolean; clearKeyLike(): void; @@ -100,7 +100,7 @@ export namespace ListGamesRequest { export namespace Search { export type AsObject = { - vendorId: number; + parentId: number; keyLike: string; platformLike: string; categoryLike: string; diff --git a/src/app/modules/proto/c2se/api/game_pb.js b/src/app/modules/proto/c2se/api/game_pb.js index 99218ba..1587bb7 100644 --- a/src/app/modules/proto/c2se/api/game_pb.js +++ b/src/app/modules/proto/c2se/api/game_pb.js @@ -372,7 +372,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { ) { var f, obj = { - vendorId: jspb.Message.getFieldWithDefault(msg, 1, 0), + parentId: jspb.Message.getFieldWithDefault(msg, 1, 0), keyLike: jspb.Message.getFieldWithDefault(msg, 2, ""), platformLike: jspb.Message.getFieldWithDefault(msg, 3, ""), categoryLike: jspb.Message.getFieldWithDefault(msg, 4, ""), @@ -418,7 +418,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinaryFromRea switch (field) { case 1: var value = /** @type {number} */ (reader.readUint64()); - msg.setVendorId(value); + msg.setParentId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); @@ -494,7 +494,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.serializeBinaryToWriter * optional uint64 vendor_id = 1; * @return {number} */ -proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId = +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getParentId = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; @@ -503,7 +503,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId = * @param {number} value * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this */ -proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setVendorId = +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setParentId = function (value) { return jspb.Message.setField(this, 1, value); }; @@ -512,7 +512,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setVendorId = * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this */ -proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearVendorId = +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearParentId = function () { return jspb.Message.setField(this, 1, undefined); }; @@ -521,7 +521,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearVendorId * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasVendorId = +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasParentId = function () { return jspb.Message.getField(this, 1) != null; }; diff --git a/src/app/modules/proto/models/api/game_pb.d.ts b/src/app/modules/proto/models/api/game_pb.d.ts index 068676a..bedb6d7 100644 --- a/src/app/modules/proto/models/api/game_pb.d.ts +++ b/src/app/modules/proto/models/api/game_pb.d.ts @@ -7,8 +7,8 @@ export class Game extends jspb.Message { getId(): number; setId(value: number): void; - getVendorId(): number; - setVendorId(value: number): void; + getParentId(): number; + setParentId(value: number): void; getKey(): string; setKey(value: string): void; @@ -57,7 +57,7 @@ export class Game extends jspb.Message { export namespace Game { export type AsObject = { id: number; - vendorId: number; + parentId: number; key: string; names: string; platform: string; diff --git a/src/app/modules/proto/models/api/game_pb.js b/src/app/modules/proto/models/api/game_pb.js index 53c8135..1788d3a 100644 --- a/src/app/modules/proto/models/api/game_pb.js +++ b/src/app/modules/proto/models/api/game_pb.js @@ -73,7 +73,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), - vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + parentId: jspb.Message.getFieldWithDefault(msg, 2, 0), key: jspb.Message.getFieldWithDefault(msg, 3, ""), names: jspb.Message.getFieldWithDefault(msg, 4, ""), platform: jspb.Message.getFieldWithDefault(msg, 5, ""), @@ -128,7 +128,7 @@ proto.bet.beteran.api.game.Game.deserializeBinaryFromReader = function ( break; case 2: var value = /** @type {number} */ (reader.readUint64()); - msg.setVendorId(value); + msg.setParentId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -196,7 +196,7 @@ proto.bet.beteran.api.game.Game.serializeBinaryToWriter = function ( if (f !== 0) { writer.writeUint64(1, f); } - f = message.getVendorId(); + f = message.getParentId(); if (f !== 0) { writer.writeUint64(2, f); } @@ -254,7 +254,7 @@ proto.bet.beteran.api.game.Game.prototype.setId = function (value) { * optional uint64 vendor_id = 2; * @return {number} */ -proto.bet.beteran.api.game.Game.prototype.getVendorId = function () { +proto.bet.beteran.api.game.Game.prototype.getParentId = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; @@ -262,7 +262,7 @@ proto.bet.beteran.api.game.Game.prototype.getVendorId = function () { * @param {number} value * @return {!proto.bet.beteran.api.game.Game} returns this */ -proto.bet.beteran.api.game.Game.prototype.setVendorId = function (value) { +proto.bet.beteran.api.game.Game.prototype.setParentId = function (value) { return jspb.Message.setProto3IntField(this, 2, value); };