diff --git a/src/app/modules/proto/models/api/betting_pb.d.ts b/src/app/modules/proto/models/api/betting_pb.d.ts index 16ea3ef..2a3a203 100644 --- a/src/app/modules/proto/models/api/betting_pb.d.ts +++ b/src/app/modules/proto/models/api/betting_pb.d.ts @@ -38,20 +38,16 @@ export class BettingHistory extends jspb.Message { getAfterCash(): number; setAfterCash(value: number): void; - getKey(): string; - setKey(value: string): void; - - getRefId(): string; - setRefId(value: string): void; - - getORefId(): string; - setORefId(value: string): void; - hasGroupKey(): boolean; clearGroupKey(): void; getGroupKey(): string; setGroupKey(value: string): void; + hasDetail(): boolean; + clearDetail(): void; + getDetail(): string; + setDetail(value: string): void; + getIsBonus(): boolean; setIsBonus(value: boolean): void; @@ -64,6 +60,15 @@ export class BettingHistory extends jspb.Message { getSiteUsername(): string; setSiteUsername(value: string): void; + getKey(): string; + setKey(value: string): void; + + getRefId(): string; + setRefId(value: string): void; + + getORefId(): string; + setORefId(value: string): void; + getBettingType(): string; setBettingType(value: string): void; @@ -110,14 +115,15 @@ export namespace BettingHistory { cash: number; beforeCash: number; afterCash: number; - key: string; - refId: string; - oRefId: string; groupKey: string; + detail: string; isBonus: boolean; isPromo: boolean; isJackpot: boolean; siteUsername: string; + key: string; + refId: string; + oRefId: string; bettingType: string; category: string; createdAt: number; @@ -159,20 +165,16 @@ export class BettingHistoryModel extends jspb.Message { getAfterCash(): number; setAfterCash(value: number): void; - getKey(): string; - setKey(value: string): void; - - getRefId(): string; - setRefId(value: string): void; - - getORefId(): string; - setORefId(value: string): void; - hasGroupKey(): boolean; clearGroupKey(): void; getGroupKey(): string; setGroupKey(value: string): void; + hasDetail(): boolean; + clearDetail(): void; + getDetail(): string; + setDetail(value: string): void; + getIsBonus(): boolean; setIsBonus(value: boolean): void; @@ -185,6 +187,15 @@ export class BettingHistoryModel extends jspb.Message { getSiteUsername(): string; setSiteUsername(value: string): void; + getKey(): string; + setKey(value: string): void; + + getRefId(): string; + setRefId(value: string): void; + + getORefId(): string; + setORefId(value: string): void; + getBettingType(): string; setBettingType(value: string): void; @@ -236,14 +247,15 @@ export namespace BettingHistoryModel { cash: number; beforeCash: number; afterCash: number; - key: string; - refId: string; - oRefId: string; groupKey: string; + detail: string; isBonus: boolean; isPromo: boolean; isJackpot: boolean; siteUsername: string; + key: string; + refId: string; + oRefId: string; bettingType: string; category: string; createdAt: number; diff --git a/src/app/modules/proto/models/api/betting_pb.js b/src/app/modules/proto/models/api/betting_pb.js index c583e81..570c86b 100644 --- a/src/app/modules/proto/models/api/betting_pb.js +++ b/src/app/modules/proto/models/api/betting_pb.js @@ -118,18 +118,19 @@ if (jspb.Message.GENERATE_TO_OBJECT) { cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), - key: jspb.Message.getFieldWithDefault(msg, 12, ""), - refId: jspb.Message.getFieldWithDefault(msg, 13, ""), - oRefId: jspb.Message.getFieldWithDefault(msg, 14, ""), - groupKey: jspb.Message.getFieldWithDefault(msg, 15, ""), - isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), - siteUsername: jspb.Message.getFieldWithDefault(msg, 19, ""), - bettingType: jspb.Message.getFieldWithDefault(msg, 20, ""), - category: jspb.Message.getFieldWithDefault(msg, 21, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 22, 0), - utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + groupKey: jspb.Message.getFieldWithDefault(msg, 12, ""), + detail: jspb.Message.getFieldWithDefault(msg, 13, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 17, ""), + key: jspb.Message.getFieldWithDefault(msg, 18, ""), + refId: jspb.Message.getFieldWithDefault(msg, 19, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 20, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 21, ""), + category: jspb.Message.getFieldWithDefault(msg, 22, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 24, 0), }; if (includeInstance) { @@ -216,49 +217,53 @@ proto.bet.beteran.api.betting.BettingHistory.deserializeBinaryFromReader = break; case 12: var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + msg.setGroupKey(value); break; case 13: var value = /** @type {string} */ (reader.readString()); - msg.setRefId(value); + msg.setDetail(value); break; case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setORefId(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupKey(value); - break; - case 16: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsBonus(value); break; - case 17: + case 15: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsPromo(value); break; - case 18: + case 16: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsJackpot(value); break; - case 19: + case 17: var value = /** @type {string} */ (reader.readString()); msg.setSiteUsername(value); break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; case 20: var value = /** @type {string} */ (reader.readString()); - msg.setBettingType(value); + msg.setORefId(value); break; case 21: var value = /** @type {string} */ (reader.readString()); - msg.setCategory(value); + msg.setBettingType(value); break; case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 23: var value = /** @type {number} */ (reader.readUint64()); msg.setCreatedAt(value); break; - case 23: + case 24: var value = /** @type {number} */ (reader.readUint64()); msg.setUtcCreatedAt(value); break; @@ -338,53 +343,57 @@ proto.bet.beteran.api.betting.BettingHistory.serializeBinaryToWriter = if (f !== 0.0) { writer.writeDouble(11, f); } - f = message.getKey(); - if (f.length > 0) { + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { writer.writeString(12, f); } - f = message.getRefId(); - if (f.length > 0) { - writer.writeString(13, f); - } - f = message.getORefId(); - if (f.length > 0) { - writer.writeString(14, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 15)); + f = /** @type {string} */ (jspb.Message.getField(message, 13)); if (f != null) { - writer.writeString(15, f); + writer.writeString(13, f); } f = message.getIsBonus(); if (f) { - writer.writeBool(16, f); + writer.writeBool(14, f); } f = message.getIsPromo(); if (f) { - writer.writeBool(17, f); + writer.writeBool(15, f); } f = message.getIsJackpot(); if (f) { - writer.writeBool(18, f); + writer.writeBool(16, f); } f = message.getSiteUsername(); + if (f.length > 0) { + writer.writeString(17, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(18, f); + } + f = message.getRefId(); if (f.length > 0) { writer.writeString(19, f); } - f = message.getBettingType(); + f = message.getORefId(); if (f.length > 0) { writer.writeString(20, f); } - f = message.getCategory(); + f = message.getBettingType(); if (f.length > 0) { writer.writeString(21, f); } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(22, f); + } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(22, f); + writer.writeUint64(23, f); } f = message.getUtcCreatedAt(); if (f !== 0) { - writer.writeUint64(23, f); + writer.writeUint64(24, f); } }; @@ -608,67 +617,13 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.setAfterCash = function ( }; /** - * optional string key = 12; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setKey = function ( - value -) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - -/** - * optional string ref_id = 13; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getRefId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setRefId = function ( - value -) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - -/** - * optional string o_ref_id = 14; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getORefId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this - */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setORefId = function ( - value -) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - -/** - * optional string group_key = 15; + * optional string group_key = 12; * @return {string} */ proto.bet.beteran.api.betting.BettingHistory.prototype.getGroupKey = function () { return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 15, "") + jspb.Message.getFieldWithDefault(this, 12, "") ); }; @@ -679,7 +634,7 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getGroupKey = proto.bet.beteran.api.betting.BettingHistory.prototype.setGroupKey = function ( value ) { - return jspb.Message.setField(this, 15, value); + return jspb.Message.setField(this, 12, value); }; /** @@ -688,7 +643,7 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.setGroupKey = function ( */ proto.bet.beteran.api.betting.BettingHistory.prototype.clearGroupKey = function () { - return jspb.Message.setField(this, 15, undefined); + return jspb.Message.setField(this, 12, undefined); }; /** @@ -697,17 +652,52 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.clearGroupKey = */ proto.bet.beteran.api.betting.BettingHistory.prototype.hasGroupKey = function () { - return jspb.Message.getField(this, 15) != null; + return jspb.Message.getField(this, 12) != null; }; /** - * optional bool is_bonus = 16; + * optional string detail = 13; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getDetail = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setDetail = function ( + value +) { + return jspb.Message.setField(this, 13, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.clearDetail = + function () { + return jspb.Message.setField(this, 13, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.hasDetail = function () { + return jspb.Message.getField(this, 13) != null; +}; + +/** + * optional bool is_bonus = 14; * @return {boolean} */ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsBonus = function () { return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 16, false) + jspb.Message.getBooleanFieldWithDefault(this, 14, false) ); }; @@ -718,17 +708,17 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsBonus = proto.bet.beteran.api.betting.BettingHistory.prototype.setIsBonus = function ( value ) { - return jspb.Message.setProto3BooleanField(this, 16, value); + return jspb.Message.setProto3BooleanField(this, 14, value); }; /** - * optional bool is_promo = 17; + * optional bool is_promo = 15; * @return {boolean} */ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsPromo = function () { return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 17, false) + jspb.Message.getBooleanFieldWithDefault(this, 15, false) ); }; @@ -739,17 +729,17 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsPromo = proto.bet.beteran.api.betting.BettingHistory.prototype.setIsPromo = function ( value ) { - return jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 15, value); }; /** - * optional bool is_jackpot = 18; + * optional bool is_jackpot = 16; * @return {boolean} */ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsJackpot = function () { return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 18, false) + jspb.Message.getBooleanFieldWithDefault(this, 16, false) ); }; @@ -760,17 +750,17 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getIsJackpot = proto.bet.beteran.api.betting.BettingHistory.prototype.setIsJackpot = function ( value ) { - return jspb.Message.setProto3BooleanField(this, 18, value); + return jspb.Message.setProto3BooleanField(this, 16, value); }; /** - * optional string site_username = 19; + * optional string site_username = 17; * @return {string} */ proto.bet.beteran.api.betting.BettingHistory.prototype.getSiteUsername = function () { return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 19, "") + jspb.Message.getFieldWithDefault(this, 17, "") ); }; @@ -780,34 +770,68 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getSiteUsername = */ proto.bet.beteran.api.betting.BettingHistory.prototype.setSiteUsername = function (value) { - return jspb.Message.setProto3StringField(this, 19, value); + return jspb.Message.setProto3StringField(this, 17, value); }; /** - * optional string betting_type = 20; + * optional string key = 18; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getBettingType = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 20, "") - ); - }; +proto.bet.beteran.api.betting.BettingHistory.prototype.getKey = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +}; /** * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setBettingType = - function (value) { - return jspb.Message.setProto3StringField(this, 20, value); - }; +proto.bet.beteran.api.betting.BettingHistory.prototype.setKey = function ( + value +) { + return jspb.Message.setProto3StringField(this, 18, value); +}; /** - * optional string category = 21; + * optional string ref_id = 19; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getCategory = +proto.bet.beteran.api.betting.BettingHistory.prototype.getRefId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setRefId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + +/** + * optional string o_ref_id = 20; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getORefId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setORefId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 20, value); +}; + +/** + * optional string betting_type = 21; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getBettingType = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 21, "") @@ -818,51 +842,71 @@ proto.bet.beteran.api.betting.BettingHistory.prototype.getCategory = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setCategory = function ( - value -) { - return jspb.Message.setProto3StringField(this, 21, value); -}; +proto.bet.beteran.api.betting.BettingHistory.prototype.setBettingType = + function (value) { + return jspb.Message.setProto3StringField(this, 21, value); + }; /** - * optional uint64 created_at = 22; - * @return {number} + * optional string category = 22; + * @return {string} */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getCreatedAt = +proto.bet.beteran.api.betting.BettingHistory.prototype.getCategory = function () { - return /** @type {number} */ ( - jspb.Message.getFieldWithDefault(this, 22, 0) + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 22, "") ); }; /** - * @param {number} value + * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this */ -proto.bet.beteran.api.betting.BettingHistory.prototype.setCreatedAt = function ( +proto.bet.beteran.api.betting.BettingHistory.prototype.setCategory = function ( value ) { - return jspb.Message.setProto3IntField(this, 22, value); + return jspb.Message.setProto3StringField(this, 22, value); }; /** - * optional uint64 utc_created_at = 23; + * optional uint64 created_at = 23; * @return {number} */ -proto.bet.beteran.api.betting.BettingHistory.prototype.getUtcCreatedAt = +proto.bet.beteran.api.betting.BettingHistory.prototype.getCreatedAt = function () { return /** @type {number} */ ( jspb.Message.getFieldWithDefault(this, 23, 0) ); }; +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setCreatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 23, value); +}; + +/** + * optional uint64 utc_created_at = 24; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getUtcCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 24, 0) + ); + }; + /** * @param {number} value * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this */ proto.bet.beteran.api.betting.BettingHistory.prototype.setUtcCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 23, value); + return jspb.Message.setProto3IntField(this, 24, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { @@ -912,18 +956,19 @@ if (jspb.Message.GENERATE_TO_OBJECT) { cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), - key: jspb.Message.getFieldWithDefault(msg, 12, ""), - refId: jspb.Message.getFieldWithDefault(msg, 13, ""), - oRefId: jspb.Message.getFieldWithDefault(msg, 14, ""), - groupKey: jspb.Message.getFieldWithDefault(msg, 15, ""), - isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), - siteUsername: jspb.Message.getFieldWithDefault(msg, 19, ""), - bettingType: jspb.Message.getFieldWithDefault(msg, 20, ""), - category: jspb.Message.getFieldWithDefault(msg, 21, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 22, 0), - utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + groupKey: jspb.Message.getFieldWithDefault(msg, 12, ""), + detail: jspb.Message.getFieldWithDefault(msg, 13, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 17, ""), + key: jspb.Message.getFieldWithDefault(msg, 18, ""), + refId: jspb.Message.getFieldWithDefault(msg, 19, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 20, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 21, ""), + category: jspb.Message.getFieldWithDefault(msg, 22, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 24, 0), member: (f = msg.getMember()) && models_member_pb.MemberModel.toObject(includeInstance, f), @@ -1013,53 +1058,57 @@ proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinaryFromReader = break; case 12: var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + msg.setGroupKey(value); break; case 13: var value = /** @type {string} */ (reader.readString()); - msg.setRefId(value); + msg.setDetail(value); break; case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setORefId(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupKey(value); - break; - case 16: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsBonus(value); break; - case 17: + case 15: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsPromo(value); break; - case 18: + case 16: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsJackpot(value); break; - case 19: + case 17: var value = /** @type {string} */ (reader.readString()); msg.setSiteUsername(value); break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; case 20: var value = /** @type {string} */ (reader.readString()); - msg.setBettingType(value); + msg.setORefId(value); break; case 21: var value = /** @type {string} */ (reader.readString()); - msg.setCategory(value); + msg.setBettingType(value); break; case 22: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCreatedAt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); break; case 23: var value = /** @type {number} */ (reader.readUint64()); - msg.setUtcCreatedAt(value); + msg.setCreatedAt(value); break; case 24: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUtcCreatedAt(value); + break; + case 25: var value = new models_member_pb.MemberModel(); reader.readMessage( value, @@ -1143,58 +1192,62 @@ proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter = if (f !== 0.0) { writer.writeDouble(11, f); } - f = message.getKey(); - if (f.length > 0) { + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { writer.writeString(12, f); } - f = message.getRefId(); - if (f.length > 0) { - writer.writeString(13, f); - } - f = message.getORefId(); - if (f.length > 0) { - writer.writeString(14, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 15)); + f = /** @type {string} */ (jspb.Message.getField(message, 13)); if (f != null) { - writer.writeString(15, f); + writer.writeString(13, f); } f = message.getIsBonus(); if (f) { - writer.writeBool(16, f); + writer.writeBool(14, f); } f = message.getIsPromo(); if (f) { - writer.writeBool(17, f); + writer.writeBool(15, f); } f = message.getIsJackpot(); if (f) { - writer.writeBool(18, f); + writer.writeBool(16, f); } f = message.getSiteUsername(); + if (f.length > 0) { + writer.writeString(17, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(18, f); + } + f = message.getRefId(); if (f.length > 0) { writer.writeString(19, f); } - f = message.getBettingType(); + f = message.getORefId(); if (f.length > 0) { writer.writeString(20, f); } - f = message.getCategory(); + f = message.getBettingType(); if (f.length > 0) { writer.writeString(21, f); } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(22, f); + } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(22, f); + writer.writeUint64(23, f); } f = message.getUtcCreatedAt(); if (f !== 0) { - writer.writeUint64(23, f); + writer.writeUint64(24, f); } f = message.getMember(); if (f != null) { writer.writeMessage( - 24, + 25, f, models_member_pb.MemberModel.serializeBinaryToWriter ); @@ -1420,10 +1473,10 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setAfterCash = }; /** - * optional string key = 12; + * optional string group_key = 12; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGroupKey = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 12, "") @@ -1434,17 +1487,34 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setKey = function ( - value -) { - return jspb.Message.setProto3StringField(this, 12, value); -}; +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGroupKey = + function (value) { + return jspb.Message.setField(this, 12, value); + }; /** - * optional string ref_id = 13; + * Clears the field making it undefined. + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearGroupKey = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasGroupKey = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional string detail = 13; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getDetail = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 13, "") @@ -1455,74 +1525,74 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setRefId = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setDetail = function (value) { - return jspb.Message.setProto3StringField(this, 13, value); - }; - -/** - * optional string o_ref_id = 14; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getORefId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 14, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setORefId = - function (value) { - return jspb.Message.setProto3StringField(this, 14, value); - }; - -/** - * optional string group_key = 15; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGroupKey = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 15, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGroupKey = - function (value) { - return jspb.Message.setField(this, 15, value); + return jspb.Message.setField(this, 13, value); }; /** * Clears the field making it undefined. * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearGroupKey = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearDetail = function () { - return jspb.Message.setField(this, 15, undefined); + return jspb.Message.setField(this, 13, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasGroupKey = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasDetail = function () { - return jspb.Message.getField(this, 15) != null; + return jspb.Message.getField(this, 13) != null; }; /** - * optional bool is_bonus = 16; + * optional bool is_bonus = 14; * @return {boolean} */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsBonus = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 14, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsBonus = + function (value) { + return jspb.Message.setProto3BooleanField(this, 14, value); + }; + +/** + * optional bool is_promo = 15; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsPromo = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 15, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsPromo = + function (value) { + return jspb.Message.setProto3BooleanField(this, 15, value); + }; + +/** + * optional bool is_jackpot = 16; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsJackpot = function () { return /** @type {boolean} */ ( jspb.Message.getBooleanFieldWithDefault(this, 16, false) @@ -1533,56 +1603,57 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsBonus = * @param {boolean} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsBonus = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsJackpot = function (value) { return jspb.Message.setProto3BooleanField(this, 16, value); }; /** - * optional bool is_promo = 17; - * @return {boolean} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsPromo = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 17, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsPromo = - function (value) { - return jspb.Message.setProto3BooleanField(this, 17, value); - }; - -/** - * optional bool is_jackpot = 18; - * @return {boolean} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsJackpot = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 18, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsJackpot = - function (value) { - return jspb.Message.setProto3BooleanField(this, 18, value); - }; - -/** - * optional string site_username = 19; + * optional string site_username = 17; * @return {string} */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getSiteUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 17, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setSiteUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 17, value); + }; + +/** + * optional string key = 18; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 18, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setKey = function ( + value +) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + +/** + * optional string ref_id = 19; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 19, "") @@ -1593,16 +1664,16 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getSiteUsername = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setSiteUsername = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setRefId = function (value) { return jspb.Message.setProto3StringField(this, 19, value); }; /** - * optional string betting_type = 20; + * optional string o_ref_id = 20; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBettingType = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getORefId = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 20, "") @@ -1613,16 +1684,16 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBettingType = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setBettingType = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setORefId = function (value) { return jspb.Message.setProto3StringField(this, 20, value); }; /** - * optional string category = 21; + * optional string betting_type = 21; * @return {string} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCategory = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBettingType = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 21, "") @@ -1633,36 +1704,36 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCategory = * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCategory = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setBettingType = function (value) { return jspb.Message.setProto3StringField(this, 21, value); }; /** - * optional uint64 created_at = 22; - * @return {number} + * optional string category = 22; + * @return {string} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCreatedAt = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCategory = function () { - return /** @type {number} */ ( - jspb.Message.getFieldWithDefault(this, 22, 0) + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 22, "") ); }; /** - * @param {number} value + * @param {string} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCreatedAt = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCategory = function (value) { - return jspb.Message.setProto3IntField(this, 22, value); + return jspb.Message.setProto3StringField(this, 22, value); }; /** - * optional uint64 utc_created_at = 23; + * optional uint64 created_at = 23; * @return {number} */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getUtcCreatedAt = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCreatedAt = function () { return /** @type {number} */ ( jspb.Message.getFieldWithDefault(this, 23, 0) @@ -1673,19 +1744,39 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getUtcCreatedAt = * @param {number} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ -proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setUtcCreatedAt = +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCreatedAt = function (value) { return jspb.Message.setProto3IntField(this, 23, value); }; /** - * optional bet.beteran.member.MemberModel member = 24; + * optional uint64 utc_created_at = 24; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getUtcCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 24, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setUtcCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 24, value); + }; + +/** + * optional bet.beteran.member.MemberModel member = 25; * @return {?proto.bet.beteran.member.MemberModel} */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember = function () { return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 24) + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 25) ); }; @@ -1695,7 +1786,7 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember = */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setMember = function (value) { - return jspb.Message.setWrapperField(this, 24, value); + return jspb.Message.setWrapperField(this, 25, value); }; /** @@ -1713,7 +1804,7 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearMember = */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasMember = function () { - return jspb.Message.getField(this, 24) != null; + return jspb.Message.getField(this, 25) != null; }; goog.object.extend(exports, proto.bet.beteran.api.betting);