protobuf-platform 1.0.213 → 1.0.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bonus/bonus.proto CHANGED
@@ -20,6 +20,8 @@ service Bonus {
20
20
  //Common lists
21
21
  rpc readListBonusTypes(PaginationRequest) returns (BonusTypesResponse);
22
22
  rpc readListBonusStatuses(PaginationRequest) returns (BonusStatusesResponse);
23
+ //Dashboard
24
+ rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
23
25
  }
24
26
  //Technical
25
27
  message PingRequest { string ping = 1; }
@@ -193,3 +195,12 @@ message BonusStatusesResponse {
193
195
  optional int32 total_pages = 2;
194
196
  optional int32 total_items = 3;
195
197
  }
198
+ //Dashboard
199
+ message DashboardRequest {
200
+ string start_date = 1;
201
+ string end_date = 2;
202
+ }
203
+ message DashboardResponse {
204
+ int32 free_spins_total = 1;
205
+ int32 free_spins_played = 2;
206
+ }
@@ -70,6 +70,28 @@ function deserialize_bonus_BonusTypesResponse(buffer_arg) {
70
70
  return bonus_pb.BonusTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
71
  }
72
72
 
73
+ function serialize_bonus_DashboardRequest(arg) {
74
+ if (!(arg instanceof bonus_pb.DashboardRequest)) {
75
+ throw new Error('Expected argument of type bonus.DashboardRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_bonus_DashboardRequest(buffer_arg) {
81
+ return bonus_pb.DashboardRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_bonus_DashboardResponse(arg) {
85
+ if (!(arg instanceof bonus_pb.DashboardResponse)) {
86
+ throw new Error('Expected argument of type bonus.DashboardResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_bonus_DashboardResponse(buffer_arg) {
92
+ return bonus_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
73
95
  function serialize_bonus_File(arg) {
74
96
  if (!(arg instanceof bonus_pb.File)) {
75
97
  throw new Error('Expected argument of type bonus.File');
@@ -328,6 +350,18 @@ readListBonusTypes: {
328
350
  responseSerialize: serialize_bonus_BonusStatusesResponse,
329
351
  responseDeserialize: deserialize_bonus_BonusStatusesResponse,
330
352
  },
353
+ // Dashboard
354
+ getDashboardInfo: {
355
+ path: '/bonus.Bonus/getDashboardInfo',
356
+ requestStream: false,
357
+ responseStream: false,
358
+ requestType: bonus_pb.DashboardRequest,
359
+ responseType: bonus_pb.DashboardResponse,
360
+ requestSerialize: serialize_bonus_DashboardRequest,
361
+ requestDeserialize: deserialize_bonus_DashboardRequest,
362
+ responseSerialize: serialize_bonus_DashboardResponse,
363
+ responseDeserialize: deserialize_bonus_DashboardResponse,
364
+ },
331
365
  };
332
366
 
333
367
  exports.BonusClient = grpc.makeGenericClientConstructor(BonusService);
package/bonus/bonus_pb.js CHANGED
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
35
35
  goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
36
36
  goog.exportSymbol('proto.bonus.BonusType', null, global);
37
37
  goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
38
+ goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
39
+ goog.exportSymbol('proto.bonus.DashboardResponse', null, global);
38
40
  goog.exportSymbol('proto.bonus.File', null, global);
39
41
  goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
40
42
  goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
@@ -528,6 +530,48 @@ if (goog.DEBUG && !COMPILED) {
528
530
  */
529
531
  proto.bonus.BonusStatusesResponse.displayName = 'proto.bonus.BonusStatusesResponse';
530
532
  }
533
+ /**
534
+ * Generated by JsPbCodeGenerator.
535
+ * @param {Array=} opt_data Optional initial data array, typically from a
536
+ * server response, or constructed directly in Javascript. The array is used
537
+ * in place and becomes part of the constructed object. It is not cloned.
538
+ * If no data is provided, the constructed object will be empty, but still
539
+ * valid.
540
+ * @extends {jspb.Message}
541
+ * @constructor
542
+ */
543
+ proto.bonus.DashboardRequest = function(opt_data) {
544
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
545
+ };
546
+ goog.inherits(proto.bonus.DashboardRequest, jspb.Message);
547
+ if (goog.DEBUG && !COMPILED) {
548
+ /**
549
+ * @public
550
+ * @override
551
+ */
552
+ proto.bonus.DashboardRequest.displayName = 'proto.bonus.DashboardRequest';
553
+ }
554
+ /**
555
+ * Generated by JsPbCodeGenerator.
556
+ * @param {Array=} opt_data Optional initial data array, typically from a
557
+ * server response, or constructed directly in Javascript. The array is used
558
+ * in place and becomes part of the constructed object. It is not cloned.
559
+ * If no data is provided, the constructed object will be empty, but still
560
+ * valid.
561
+ * @extends {jspb.Message}
562
+ * @constructor
563
+ */
564
+ proto.bonus.DashboardResponse = function(opt_data) {
565
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
566
+ };
567
+ goog.inherits(proto.bonus.DashboardResponse, jspb.Message);
568
+ if (goog.DEBUG && !COMPILED) {
569
+ /**
570
+ * @public
571
+ * @override
572
+ */
573
+ proto.bonus.DashboardResponse.displayName = 'proto.bonus.DashboardResponse';
574
+ }
531
575
 
532
576
 
533
577
 
@@ -8853,4 +8897,324 @@ proto.bonus.BonusStatusesResponse.prototype.hasTotalItems = function() {
8853
8897
  };
8854
8898
 
8855
8899
 
8900
+
8901
+
8902
+
8903
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8904
+ /**
8905
+ * Creates an object representation of this proto.
8906
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8907
+ * Optional fields that are not set will be set to undefined.
8908
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8909
+ * For the list of reserved names please see:
8910
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8911
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8912
+ * JSPB instance for transitional soy proto support:
8913
+ * http://goto/soy-param-migration
8914
+ * @return {!Object}
8915
+ */
8916
+ proto.bonus.DashboardRequest.prototype.toObject = function(opt_includeInstance) {
8917
+ return proto.bonus.DashboardRequest.toObject(opt_includeInstance, this);
8918
+ };
8919
+
8920
+
8921
+ /**
8922
+ * Static version of the {@see toObject} method.
8923
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8924
+ * the JSPB instance for transitional soy proto support:
8925
+ * http://goto/soy-param-migration
8926
+ * @param {!proto.bonus.DashboardRequest} msg The msg instance to transform.
8927
+ * @return {!Object}
8928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8929
+ */
8930
+ proto.bonus.DashboardRequest.toObject = function(includeInstance, msg) {
8931
+ var f, obj = {
8932
+ startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
8933
+ endDate: jspb.Message.getFieldWithDefault(msg, 2, "")
8934
+ };
8935
+
8936
+ if (includeInstance) {
8937
+ obj.$jspbMessageInstance = msg;
8938
+ }
8939
+ return obj;
8940
+ };
8941
+ }
8942
+
8943
+
8944
+ /**
8945
+ * Deserializes binary data (in protobuf wire format).
8946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8947
+ * @return {!proto.bonus.DashboardRequest}
8948
+ */
8949
+ proto.bonus.DashboardRequest.deserializeBinary = function(bytes) {
8950
+ var reader = new jspb.BinaryReader(bytes);
8951
+ var msg = new proto.bonus.DashboardRequest;
8952
+ return proto.bonus.DashboardRequest.deserializeBinaryFromReader(msg, reader);
8953
+ };
8954
+
8955
+
8956
+ /**
8957
+ * Deserializes binary data (in protobuf wire format) from the
8958
+ * given reader into the given message object.
8959
+ * @param {!proto.bonus.DashboardRequest} msg The message object to deserialize into.
8960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8961
+ * @return {!proto.bonus.DashboardRequest}
8962
+ */
8963
+ proto.bonus.DashboardRequest.deserializeBinaryFromReader = function(msg, reader) {
8964
+ while (reader.nextField()) {
8965
+ if (reader.isEndGroup()) {
8966
+ break;
8967
+ }
8968
+ var field = reader.getFieldNumber();
8969
+ switch (field) {
8970
+ case 1:
8971
+ var value = /** @type {string} */ (reader.readString());
8972
+ msg.setStartDate(value);
8973
+ break;
8974
+ case 2:
8975
+ var value = /** @type {string} */ (reader.readString());
8976
+ msg.setEndDate(value);
8977
+ break;
8978
+ default:
8979
+ reader.skipField();
8980
+ break;
8981
+ }
8982
+ }
8983
+ return msg;
8984
+ };
8985
+
8986
+
8987
+ /**
8988
+ * Serializes the message to binary data (in protobuf wire format).
8989
+ * @return {!Uint8Array}
8990
+ */
8991
+ proto.bonus.DashboardRequest.prototype.serializeBinary = function() {
8992
+ var writer = new jspb.BinaryWriter();
8993
+ proto.bonus.DashboardRequest.serializeBinaryToWriter(this, writer);
8994
+ return writer.getResultBuffer();
8995
+ };
8996
+
8997
+
8998
+ /**
8999
+ * Serializes the given message to binary data (in protobuf wire
9000
+ * format), writing to the given BinaryWriter.
9001
+ * @param {!proto.bonus.DashboardRequest} message
9002
+ * @param {!jspb.BinaryWriter} writer
9003
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9004
+ */
9005
+ proto.bonus.DashboardRequest.serializeBinaryToWriter = function(message, writer) {
9006
+ var f = undefined;
9007
+ f = message.getStartDate();
9008
+ if (f.length > 0) {
9009
+ writer.writeString(
9010
+ 1,
9011
+ f
9012
+ );
9013
+ }
9014
+ f = message.getEndDate();
9015
+ if (f.length > 0) {
9016
+ writer.writeString(
9017
+ 2,
9018
+ f
9019
+ );
9020
+ }
9021
+ };
9022
+
9023
+
9024
+ /**
9025
+ * optional string start_date = 1;
9026
+ * @return {string}
9027
+ */
9028
+ proto.bonus.DashboardRequest.prototype.getStartDate = function() {
9029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9030
+ };
9031
+
9032
+
9033
+ /**
9034
+ * @param {string} value
9035
+ * @return {!proto.bonus.DashboardRequest} returns this
9036
+ */
9037
+ proto.bonus.DashboardRequest.prototype.setStartDate = function(value) {
9038
+ return jspb.Message.setProto3StringField(this, 1, value);
9039
+ };
9040
+
9041
+
9042
+ /**
9043
+ * optional string end_date = 2;
9044
+ * @return {string}
9045
+ */
9046
+ proto.bonus.DashboardRequest.prototype.getEndDate = function() {
9047
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9048
+ };
9049
+
9050
+
9051
+ /**
9052
+ * @param {string} value
9053
+ * @return {!proto.bonus.DashboardRequest} returns this
9054
+ */
9055
+ proto.bonus.DashboardRequest.prototype.setEndDate = function(value) {
9056
+ return jspb.Message.setProto3StringField(this, 2, value);
9057
+ };
9058
+
9059
+
9060
+
9061
+
9062
+
9063
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9064
+ /**
9065
+ * Creates an object representation of this proto.
9066
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9067
+ * Optional fields that are not set will be set to undefined.
9068
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9069
+ * For the list of reserved names please see:
9070
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9071
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9072
+ * JSPB instance for transitional soy proto support:
9073
+ * http://goto/soy-param-migration
9074
+ * @return {!Object}
9075
+ */
9076
+ proto.bonus.DashboardResponse.prototype.toObject = function(opt_includeInstance) {
9077
+ return proto.bonus.DashboardResponse.toObject(opt_includeInstance, this);
9078
+ };
9079
+
9080
+
9081
+ /**
9082
+ * Static version of the {@see toObject} method.
9083
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9084
+ * the JSPB instance for transitional soy proto support:
9085
+ * http://goto/soy-param-migration
9086
+ * @param {!proto.bonus.DashboardResponse} msg The msg instance to transform.
9087
+ * @return {!Object}
9088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9089
+ */
9090
+ proto.bonus.DashboardResponse.toObject = function(includeInstance, msg) {
9091
+ var f, obj = {
9092
+ freeSpinsTotal: jspb.Message.getFieldWithDefault(msg, 1, 0),
9093
+ freeSpinsPlayed: jspb.Message.getFieldWithDefault(msg, 2, 0)
9094
+ };
9095
+
9096
+ if (includeInstance) {
9097
+ obj.$jspbMessageInstance = msg;
9098
+ }
9099
+ return obj;
9100
+ };
9101
+ }
9102
+
9103
+
9104
+ /**
9105
+ * Deserializes binary data (in protobuf wire format).
9106
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9107
+ * @return {!proto.bonus.DashboardResponse}
9108
+ */
9109
+ proto.bonus.DashboardResponse.deserializeBinary = function(bytes) {
9110
+ var reader = new jspb.BinaryReader(bytes);
9111
+ var msg = new proto.bonus.DashboardResponse;
9112
+ return proto.bonus.DashboardResponse.deserializeBinaryFromReader(msg, reader);
9113
+ };
9114
+
9115
+
9116
+ /**
9117
+ * Deserializes binary data (in protobuf wire format) from the
9118
+ * given reader into the given message object.
9119
+ * @param {!proto.bonus.DashboardResponse} msg The message object to deserialize into.
9120
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9121
+ * @return {!proto.bonus.DashboardResponse}
9122
+ */
9123
+ proto.bonus.DashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
9124
+ while (reader.nextField()) {
9125
+ if (reader.isEndGroup()) {
9126
+ break;
9127
+ }
9128
+ var field = reader.getFieldNumber();
9129
+ switch (field) {
9130
+ case 1:
9131
+ var value = /** @type {number} */ (reader.readInt32());
9132
+ msg.setFreeSpinsTotal(value);
9133
+ break;
9134
+ case 2:
9135
+ var value = /** @type {number} */ (reader.readInt32());
9136
+ msg.setFreeSpinsPlayed(value);
9137
+ break;
9138
+ default:
9139
+ reader.skipField();
9140
+ break;
9141
+ }
9142
+ }
9143
+ return msg;
9144
+ };
9145
+
9146
+
9147
+ /**
9148
+ * Serializes the message to binary data (in protobuf wire format).
9149
+ * @return {!Uint8Array}
9150
+ */
9151
+ proto.bonus.DashboardResponse.prototype.serializeBinary = function() {
9152
+ var writer = new jspb.BinaryWriter();
9153
+ proto.bonus.DashboardResponse.serializeBinaryToWriter(this, writer);
9154
+ return writer.getResultBuffer();
9155
+ };
9156
+
9157
+
9158
+ /**
9159
+ * Serializes the given message to binary data (in protobuf wire
9160
+ * format), writing to the given BinaryWriter.
9161
+ * @param {!proto.bonus.DashboardResponse} message
9162
+ * @param {!jspb.BinaryWriter} writer
9163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9164
+ */
9165
+ proto.bonus.DashboardResponse.serializeBinaryToWriter = function(message, writer) {
9166
+ var f = undefined;
9167
+ f = message.getFreeSpinsTotal();
9168
+ if (f !== 0) {
9169
+ writer.writeInt32(
9170
+ 1,
9171
+ f
9172
+ );
9173
+ }
9174
+ f = message.getFreeSpinsPlayed();
9175
+ if (f !== 0) {
9176
+ writer.writeInt32(
9177
+ 2,
9178
+ f
9179
+ );
9180
+ }
9181
+ };
9182
+
9183
+
9184
+ /**
9185
+ * optional int32 free_spins_total = 1;
9186
+ * @return {number}
9187
+ */
9188
+ proto.bonus.DashboardResponse.prototype.getFreeSpinsTotal = function() {
9189
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9190
+ };
9191
+
9192
+
9193
+ /**
9194
+ * @param {number} value
9195
+ * @return {!proto.bonus.DashboardResponse} returns this
9196
+ */
9197
+ proto.bonus.DashboardResponse.prototype.setFreeSpinsTotal = function(value) {
9198
+ return jspb.Message.setProto3IntField(this, 1, value);
9199
+ };
9200
+
9201
+
9202
+ /**
9203
+ * optional int32 free_spins_played = 2;
9204
+ * @return {number}
9205
+ */
9206
+ proto.bonus.DashboardResponse.prototype.getFreeSpinsPlayed = function() {
9207
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9208
+ };
9209
+
9210
+
9211
+ /**
9212
+ * @param {number} value
9213
+ * @return {!proto.bonus.DashboardResponse} returns this
9214
+ */
9215
+ proto.bonus.DashboardResponse.prototype.setFreeSpinsPlayed = function(value) {
9216
+ return jspb.Message.setProto3IntField(this, 2, value);
9217
+ };
9218
+
9219
+
8856
9220
  goog.object.extend(exports, proto.bonus);
package/game/game.proto CHANGED
@@ -73,6 +73,8 @@ service Game {
73
73
  rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
74
74
  rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
75
75
  rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
76
+ //Dashboard
77
+ rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
76
78
  }
77
79
 
78
80
  message PingRequest { string ping = 1; }
@@ -525,4 +527,13 @@ message WagerListItemsResponse {
525
527
  repeated WagerListItem items = 1;
526
528
  optional int32 total_pages = 2;
527
529
  optional int32 total_items = 3;
530
+ }
531
+ //Dashboard
532
+ message DashboardRequest {
533
+ string start_date = 1;
534
+ string end_date = 2;
535
+ }
536
+ message DashboardResponse {
537
+ int32 free_spins_total = 1;
538
+ int32 free_spins_played = 2;
528
539
  }
@@ -103,6 +103,28 @@ function deserialize_game_CollectionStatusResponse(buffer_arg) {
103
103
  return game_pb.CollectionStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
104
104
  }
105
105
 
106
+ function serialize_game_DashboardRequest(arg) {
107
+ if (!(arg instanceof game_pb.DashboardRequest)) {
108
+ throw new Error('Expected argument of type game.DashboardRequest');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_game_DashboardRequest(buffer_arg) {
114
+ return game_pb.DashboardRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
117
+ function serialize_game_DashboardResponse(arg) {
118
+ if (!(arg instanceof game_pb.DashboardResponse)) {
119
+ throw new Error('Expected argument of type game.DashboardResponse');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_game_DashboardResponse(buffer_arg) {
125
+ return game_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
106
128
  function serialize_game_File(arg) {
107
129
  if (!(arg instanceof game_pb.File)) {
108
130
  throw new Error('Expected argument of type game.File');
@@ -1401,6 +1423,18 @@ readSingleWagerList: {
1401
1423
  responseSerialize: serialize_game_WagerListItemsResponse,
1402
1424
  responseDeserialize: deserialize_game_WagerListItemsResponse,
1403
1425
  },
1426
+ // Dashboard
1427
+ getDashboardInfo: {
1428
+ path: '/game.Game/getDashboardInfo',
1429
+ requestStream: false,
1430
+ responseStream: false,
1431
+ requestType: game_pb.DashboardRequest,
1432
+ responseType: game_pb.DashboardResponse,
1433
+ requestSerialize: serialize_game_DashboardRequest,
1434
+ requestDeserialize: deserialize_game_DashboardRequest,
1435
+ responseSerialize: serialize_game_DashboardResponse,
1436
+ responseDeserialize: deserialize_game_DashboardResponse,
1437
+ },
1404
1438
  };
1405
1439
 
1406
1440
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);
package/game/game_pb.js CHANGED
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.game.CollectionRequest', null, global);
36
36
  goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
37
37
  goog.exportSymbol('proto.game.CollectionResponse', null, global);
38
38
  goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
39
+ goog.exportSymbol('proto.game.DashboardRequest', null, global);
40
+ goog.exportSymbol('proto.game.DashboardResponse', null, global);
39
41
  goog.exportSymbol('proto.game.File', null, global);
40
42
  goog.exportSymbol('proto.game.FreeSpinBonusCampaignRequest', null, global);
41
43
  goog.exportSymbol('proto.game.FreeSpinCampaignRequest', null, global);
@@ -1786,6 +1788,48 @@ if (goog.DEBUG && !COMPILED) {
1786
1788
  */
1787
1789
  proto.game.WagerListItemsResponse.displayName = 'proto.game.WagerListItemsResponse';
1788
1790
  }
1791
+ /**
1792
+ * Generated by JsPbCodeGenerator.
1793
+ * @param {Array=} opt_data Optional initial data array, typically from a
1794
+ * server response, or constructed directly in Javascript. The array is used
1795
+ * in place and becomes part of the constructed object. It is not cloned.
1796
+ * If no data is provided, the constructed object will be empty, but still
1797
+ * valid.
1798
+ * @extends {jspb.Message}
1799
+ * @constructor
1800
+ */
1801
+ proto.game.DashboardRequest = function(opt_data) {
1802
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1803
+ };
1804
+ goog.inherits(proto.game.DashboardRequest, jspb.Message);
1805
+ if (goog.DEBUG && !COMPILED) {
1806
+ /**
1807
+ * @public
1808
+ * @override
1809
+ */
1810
+ proto.game.DashboardRequest.displayName = 'proto.game.DashboardRequest';
1811
+ }
1812
+ /**
1813
+ * Generated by JsPbCodeGenerator.
1814
+ * @param {Array=} opt_data Optional initial data array, typically from a
1815
+ * server response, or constructed directly in Javascript. The array is used
1816
+ * in place and becomes part of the constructed object. It is not cloned.
1817
+ * If no data is provided, the constructed object will be empty, but still
1818
+ * valid.
1819
+ * @extends {jspb.Message}
1820
+ * @constructor
1821
+ */
1822
+ proto.game.DashboardResponse = function(opt_data) {
1823
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1824
+ };
1825
+ goog.inherits(proto.game.DashboardResponse, jspb.Message);
1826
+ if (goog.DEBUG && !COMPILED) {
1827
+ /**
1828
+ * @public
1829
+ * @override
1830
+ */
1831
+ proto.game.DashboardResponse.displayName = 'proto.game.DashboardResponse';
1832
+ }
1789
1833
 
1790
1834
 
1791
1835
 
@@ -21963,4 +22007,324 @@ proto.game.WagerListItemsResponse.prototype.hasTotalItems = function() {
21963
22007
  };
21964
22008
 
21965
22009
 
22010
+
22011
+
22012
+
22013
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22014
+ /**
22015
+ * Creates an object representation of this proto.
22016
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22017
+ * Optional fields that are not set will be set to undefined.
22018
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22019
+ * For the list of reserved names please see:
22020
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22021
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22022
+ * JSPB instance for transitional soy proto support:
22023
+ * http://goto/soy-param-migration
22024
+ * @return {!Object}
22025
+ */
22026
+ proto.game.DashboardRequest.prototype.toObject = function(opt_includeInstance) {
22027
+ return proto.game.DashboardRequest.toObject(opt_includeInstance, this);
22028
+ };
22029
+
22030
+
22031
+ /**
22032
+ * Static version of the {@see toObject} method.
22033
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22034
+ * the JSPB instance for transitional soy proto support:
22035
+ * http://goto/soy-param-migration
22036
+ * @param {!proto.game.DashboardRequest} msg The msg instance to transform.
22037
+ * @return {!Object}
22038
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22039
+ */
22040
+ proto.game.DashboardRequest.toObject = function(includeInstance, msg) {
22041
+ var f, obj = {
22042
+ startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
22043
+ endDate: jspb.Message.getFieldWithDefault(msg, 2, "")
22044
+ };
22045
+
22046
+ if (includeInstance) {
22047
+ obj.$jspbMessageInstance = msg;
22048
+ }
22049
+ return obj;
22050
+ };
22051
+ }
22052
+
22053
+
22054
+ /**
22055
+ * Deserializes binary data (in protobuf wire format).
22056
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22057
+ * @return {!proto.game.DashboardRequest}
22058
+ */
22059
+ proto.game.DashboardRequest.deserializeBinary = function(bytes) {
22060
+ var reader = new jspb.BinaryReader(bytes);
22061
+ var msg = new proto.game.DashboardRequest;
22062
+ return proto.game.DashboardRequest.deserializeBinaryFromReader(msg, reader);
22063
+ };
22064
+
22065
+
22066
+ /**
22067
+ * Deserializes binary data (in protobuf wire format) from the
22068
+ * given reader into the given message object.
22069
+ * @param {!proto.game.DashboardRequest} msg The message object to deserialize into.
22070
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22071
+ * @return {!proto.game.DashboardRequest}
22072
+ */
22073
+ proto.game.DashboardRequest.deserializeBinaryFromReader = function(msg, reader) {
22074
+ while (reader.nextField()) {
22075
+ if (reader.isEndGroup()) {
22076
+ break;
22077
+ }
22078
+ var field = reader.getFieldNumber();
22079
+ switch (field) {
22080
+ case 1:
22081
+ var value = /** @type {string} */ (reader.readString());
22082
+ msg.setStartDate(value);
22083
+ break;
22084
+ case 2:
22085
+ var value = /** @type {string} */ (reader.readString());
22086
+ msg.setEndDate(value);
22087
+ break;
22088
+ default:
22089
+ reader.skipField();
22090
+ break;
22091
+ }
22092
+ }
22093
+ return msg;
22094
+ };
22095
+
22096
+
22097
+ /**
22098
+ * Serializes the message to binary data (in protobuf wire format).
22099
+ * @return {!Uint8Array}
22100
+ */
22101
+ proto.game.DashboardRequest.prototype.serializeBinary = function() {
22102
+ var writer = new jspb.BinaryWriter();
22103
+ proto.game.DashboardRequest.serializeBinaryToWriter(this, writer);
22104
+ return writer.getResultBuffer();
22105
+ };
22106
+
22107
+
22108
+ /**
22109
+ * Serializes the given message to binary data (in protobuf wire
22110
+ * format), writing to the given BinaryWriter.
22111
+ * @param {!proto.game.DashboardRequest} message
22112
+ * @param {!jspb.BinaryWriter} writer
22113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22114
+ */
22115
+ proto.game.DashboardRequest.serializeBinaryToWriter = function(message, writer) {
22116
+ var f = undefined;
22117
+ f = message.getStartDate();
22118
+ if (f.length > 0) {
22119
+ writer.writeString(
22120
+ 1,
22121
+ f
22122
+ );
22123
+ }
22124
+ f = message.getEndDate();
22125
+ if (f.length > 0) {
22126
+ writer.writeString(
22127
+ 2,
22128
+ f
22129
+ );
22130
+ }
22131
+ };
22132
+
22133
+
22134
+ /**
22135
+ * optional string start_date = 1;
22136
+ * @return {string}
22137
+ */
22138
+ proto.game.DashboardRequest.prototype.getStartDate = function() {
22139
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
22140
+ };
22141
+
22142
+
22143
+ /**
22144
+ * @param {string} value
22145
+ * @return {!proto.game.DashboardRequest} returns this
22146
+ */
22147
+ proto.game.DashboardRequest.prototype.setStartDate = function(value) {
22148
+ return jspb.Message.setProto3StringField(this, 1, value);
22149
+ };
22150
+
22151
+
22152
+ /**
22153
+ * optional string end_date = 2;
22154
+ * @return {string}
22155
+ */
22156
+ proto.game.DashboardRequest.prototype.getEndDate = function() {
22157
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
22158
+ };
22159
+
22160
+
22161
+ /**
22162
+ * @param {string} value
22163
+ * @return {!proto.game.DashboardRequest} returns this
22164
+ */
22165
+ proto.game.DashboardRequest.prototype.setEndDate = function(value) {
22166
+ return jspb.Message.setProto3StringField(this, 2, value);
22167
+ };
22168
+
22169
+
22170
+
22171
+
22172
+
22173
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22174
+ /**
22175
+ * Creates an object representation of this proto.
22176
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22177
+ * Optional fields that are not set will be set to undefined.
22178
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22179
+ * For the list of reserved names please see:
22180
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22181
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22182
+ * JSPB instance for transitional soy proto support:
22183
+ * http://goto/soy-param-migration
22184
+ * @return {!Object}
22185
+ */
22186
+ proto.game.DashboardResponse.prototype.toObject = function(opt_includeInstance) {
22187
+ return proto.game.DashboardResponse.toObject(opt_includeInstance, this);
22188
+ };
22189
+
22190
+
22191
+ /**
22192
+ * Static version of the {@see toObject} method.
22193
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22194
+ * the JSPB instance for transitional soy proto support:
22195
+ * http://goto/soy-param-migration
22196
+ * @param {!proto.game.DashboardResponse} msg The msg instance to transform.
22197
+ * @return {!Object}
22198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22199
+ */
22200
+ proto.game.DashboardResponse.toObject = function(includeInstance, msg) {
22201
+ var f, obj = {
22202
+ freeSpinsTotal: jspb.Message.getFieldWithDefault(msg, 1, 0),
22203
+ freeSpinsPlayed: jspb.Message.getFieldWithDefault(msg, 2, 0)
22204
+ };
22205
+
22206
+ if (includeInstance) {
22207
+ obj.$jspbMessageInstance = msg;
22208
+ }
22209
+ return obj;
22210
+ };
22211
+ }
22212
+
22213
+
22214
+ /**
22215
+ * Deserializes binary data (in protobuf wire format).
22216
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22217
+ * @return {!proto.game.DashboardResponse}
22218
+ */
22219
+ proto.game.DashboardResponse.deserializeBinary = function(bytes) {
22220
+ var reader = new jspb.BinaryReader(bytes);
22221
+ var msg = new proto.game.DashboardResponse;
22222
+ return proto.game.DashboardResponse.deserializeBinaryFromReader(msg, reader);
22223
+ };
22224
+
22225
+
22226
+ /**
22227
+ * Deserializes binary data (in protobuf wire format) from the
22228
+ * given reader into the given message object.
22229
+ * @param {!proto.game.DashboardResponse} msg The message object to deserialize into.
22230
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22231
+ * @return {!proto.game.DashboardResponse}
22232
+ */
22233
+ proto.game.DashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
22234
+ while (reader.nextField()) {
22235
+ if (reader.isEndGroup()) {
22236
+ break;
22237
+ }
22238
+ var field = reader.getFieldNumber();
22239
+ switch (field) {
22240
+ case 1:
22241
+ var value = /** @type {number} */ (reader.readInt32());
22242
+ msg.setFreeSpinsTotal(value);
22243
+ break;
22244
+ case 2:
22245
+ var value = /** @type {number} */ (reader.readInt32());
22246
+ msg.setFreeSpinsPlayed(value);
22247
+ break;
22248
+ default:
22249
+ reader.skipField();
22250
+ break;
22251
+ }
22252
+ }
22253
+ return msg;
22254
+ };
22255
+
22256
+
22257
+ /**
22258
+ * Serializes the message to binary data (in protobuf wire format).
22259
+ * @return {!Uint8Array}
22260
+ */
22261
+ proto.game.DashboardResponse.prototype.serializeBinary = function() {
22262
+ var writer = new jspb.BinaryWriter();
22263
+ proto.game.DashboardResponse.serializeBinaryToWriter(this, writer);
22264
+ return writer.getResultBuffer();
22265
+ };
22266
+
22267
+
22268
+ /**
22269
+ * Serializes the given message to binary data (in protobuf wire
22270
+ * format), writing to the given BinaryWriter.
22271
+ * @param {!proto.game.DashboardResponse} message
22272
+ * @param {!jspb.BinaryWriter} writer
22273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22274
+ */
22275
+ proto.game.DashboardResponse.serializeBinaryToWriter = function(message, writer) {
22276
+ var f = undefined;
22277
+ f = message.getFreeSpinsTotal();
22278
+ if (f !== 0) {
22279
+ writer.writeInt32(
22280
+ 1,
22281
+ f
22282
+ );
22283
+ }
22284
+ f = message.getFreeSpinsPlayed();
22285
+ if (f !== 0) {
22286
+ writer.writeInt32(
22287
+ 2,
22288
+ f
22289
+ );
22290
+ }
22291
+ };
22292
+
22293
+
22294
+ /**
22295
+ * optional int32 free_spins_total = 1;
22296
+ * @return {number}
22297
+ */
22298
+ proto.game.DashboardResponse.prototype.getFreeSpinsTotal = function() {
22299
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
22300
+ };
22301
+
22302
+
22303
+ /**
22304
+ * @param {number} value
22305
+ * @return {!proto.game.DashboardResponse} returns this
22306
+ */
22307
+ proto.game.DashboardResponse.prototype.setFreeSpinsTotal = function(value) {
22308
+ return jspb.Message.setProto3IntField(this, 1, value);
22309
+ };
22310
+
22311
+
22312
+ /**
22313
+ * optional int32 free_spins_played = 2;
22314
+ * @return {number}
22315
+ */
22316
+ proto.game.DashboardResponse.prototype.getFreeSpinsPlayed = function() {
22317
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
22318
+ };
22319
+
22320
+
22321
+ /**
22322
+ * @param {number} value
22323
+ * @return {!proto.game.DashboardResponse} returns this
22324
+ */
22325
+ proto.game.DashboardResponse.prototype.setFreeSpinsPlayed = function(value) {
22326
+ return jspb.Message.setProto3IntField(this, 2, value);
22327
+ };
22328
+
22329
+
21966
22330
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.213",
3
+ "version": "1.0.215",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {