protobuf-platform 1.0.212 → 1.0.214

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/bet/bet.proto CHANGED
@@ -22,6 +22,12 @@ message DashboardRequest {
22
22
  string start_date = 1;
23
23
  string end_date = 2;
24
24
  }
25
+ message DashboardGameInfo {
26
+ string title = 1;
27
+ float calculated_value = 2;
28
+ optional string slug = 3;
29
+ optional string image = 4;
30
+ }
25
31
  message DashboardResponse {
26
32
  optional float min_bet_real = 1;
27
33
  optional float min_bet_bonus = 2;
@@ -36,10 +42,10 @@ message DashboardResponse {
36
42
  optional float ggr_total = 11;
37
43
  optional float ggr_real = 12;
38
44
  optional float ggr_bonus = 13;
39
- repeated string top_games_uuid_count_bet_real = 14;
40
- repeated string top_games_uuid_count_bet_bonus = 15;
41
- repeated string top_games_uuid_sum_bet_real = 16;
42
- repeated string top_games_uuid_sum_bet_bonus = 17;
45
+ repeated DashboardGameInfo top_games_count_bet_real = 14;
46
+ repeated DashboardGameInfo top_games_count_bet_bonus = 15;
47
+ repeated DashboardGameInfo top_games_sum_bet_real = 16;
48
+ repeated DashboardGameInfo top_games_sum_bet_bonus = 17;
43
49
  }
44
50
  //User info
45
51
  message UserBetItem {
package/bet/bet_pb.js CHANGED
@@ -22,6 +22,7 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
25
+ goog.exportSymbol('proto.bet.DashboardGameInfo', null, global);
25
26
  goog.exportSymbol('proto.bet.DashboardRequest', null, global);
26
27
  goog.exportSymbol('proto.bet.DashboardResponse', null, global);
27
28
  goog.exportSymbol('proto.bet.PaginationRequest', null, global);
@@ -134,6 +135,27 @@ if (goog.DEBUG && !COMPILED) {
134
135
  */
135
136
  proto.bet.DashboardRequest.displayName = 'proto.bet.DashboardRequest';
136
137
  }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.bet.DashboardGameInfo = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
+ };
151
+ goog.inherits(proto.bet.DashboardGameInfo, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.bet.DashboardGameInfo.displayName = 'proto.bet.DashboardGameInfo';
158
+ }
137
159
  /**
138
160
  * Generated by JsPbCodeGenerator.
139
161
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1073,6 +1095,262 @@ proto.bet.DashboardRequest.prototype.setEndDate = function(value) {
1073
1095
 
1074
1096
 
1075
1097
 
1098
+
1099
+
1100
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1101
+ /**
1102
+ * Creates an object representation of this proto.
1103
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1104
+ * Optional fields that are not set will be set to undefined.
1105
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1106
+ * For the list of reserved names please see:
1107
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1108
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1109
+ * JSPB instance for transitional soy proto support:
1110
+ * http://goto/soy-param-migration
1111
+ * @return {!Object}
1112
+ */
1113
+ proto.bet.DashboardGameInfo.prototype.toObject = function(opt_includeInstance) {
1114
+ return proto.bet.DashboardGameInfo.toObject(opt_includeInstance, this);
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * Static version of the {@see toObject} method.
1120
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1121
+ * the JSPB instance for transitional soy proto support:
1122
+ * http://goto/soy-param-migration
1123
+ * @param {!proto.bet.DashboardGameInfo} msg The msg instance to transform.
1124
+ * @return {!Object}
1125
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1126
+ */
1127
+ proto.bet.DashboardGameInfo.toObject = function(includeInstance, msg) {
1128
+ var f, obj = {
1129
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
1130
+ calculatedValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1131
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
1132
+ image: jspb.Message.getFieldWithDefault(msg, 4, "")
1133
+ };
1134
+
1135
+ if (includeInstance) {
1136
+ obj.$jspbMessageInstance = msg;
1137
+ }
1138
+ return obj;
1139
+ };
1140
+ }
1141
+
1142
+
1143
+ /**
1144
+ * Deserializes binary data (in protobuf wire format).
1145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1146
+ * @return {!proto.bet.DashboardGameInfo}
1147
+ */
1148
+ proto.bet.DashboardGameInfo.deserializeBinary = function(bytes) {
1149
+ var reader = new jspb.BinaryReader(bytes);
1150
+ var msg = new proto.bet.DashboardGameInfo;
1151
+ return proto.bet.DashboardGameInfo.deserializeBinaryFromReader(msg, reader);
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * Deserializes binary data (in protobuf wire format) from the
1157
+ * given reader into the given message object.
1158
+ * @param {!proto.bet.DashboardGameInfo} msg The message object to deserialize into.
1159
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1160
+ * @return {!proto.bet.DashboardGameInfo}
1161
+ */
1162
+ proto.bet.DashboardGameInfo.deserializeBinaryFromReader = function(msg, reader) {
1163
+ while (reader.nextField()) {
1164
+ if (reader.isEndGroup()) {
1165
+ break;
1166
+ }
1167
+ var field = reader.getFieldNumber();
1168
+ switch (field) {
1169
+ case 1:
1170
+ var value = /** @type {string} */ (reader.readString());
1171
+ msg.setTitle(value);
1172
+ break;
1173
+ case 2:
1174
+ var value = /** @type {number} */ (reader.readFloat());
1175
+ msg.setCalculatedValue(value);
1176
+ break;
1177
+ case 3:
1178
+ var value = /** @type {string} */ (reader.readString());
1179
+ msg.setSlug(value);
1180
+ break;
1181
+ case 4:
1182
+ var value = /** @type {string} */ (reader.readString());
1183
+ msg.setImage(value);
1184
+ break;
1185
+ default:
1186
+ reader.skipField();
1187
+ break;
1188
+ }
1189
+ }
1190
+ return msg;
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Serializes the message to binary data (in protobuf wire format).
1196
+ * @return {!Uint8Array}
1197
+ */
1198
+ proto.bet.DashboardGameInfo.prototype.serializeBinary = function() {
1199
+ var writer = new jspb.BinaryWriter();
1200
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter(this, writer);
1201
+ return writer.getResultBuffer();
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * Serializes the given message to binary data (in protobuf wire
1207
+ * format), writing to the given BinaryWriter.
1208
+ * @param {!proto.bet.DashboardGameInfo} message
1209
+ * @param {!jspb.BinaryWriter} writer
1210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1211
+ */
1212
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter = function(message, writer) {
1213
+ var f = undefined;
1214
+ f = message.getTitle();
1215
+ if (f.length > 0) {
1216
+ writer.writeString(
1217
+ 1,
1218
+ f
1219
+ );
1220
+ }
1221
+ f = message.getCalculatedValue();
1222
+ if (f !== 0.0) {
1223
+ writer.writeFloat(
1224
+ 2,
1225
+ f
1226
+ );
1227
+ }
1228
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1229
+ if (f != null) {
1230
+ writer.writeString(
1231
+ 3,
1232
+ f
1233
+ );
1234
+ }
1235
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1236
+ if (f != null) {
1237
+ writer.writeString(
1238
+ 4,
1239
+ f
1240
+ );
1241
+ }
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * optional string title = 1;
1247
+ * @return {string}
1248
+ */
1249
+ proto.bet.DashboardGameInfo.prototype.getTitle = function() {
1250
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * @param {string} value
1256
+ * @return {!proto.bet.DashboardGameInfo} returns this
1257
+ */
1258
+ proto.bet.DashboardGameInfo.prototype.setTitle = function(value) {
1259
+ return jspb.Message.setProto3StringField(this, 1, value);
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * optional float calculated_value = 2;
1265
+ * @return {number}
1266
+ */
1267
+ proto.bet.DashboardGameInfo.prototype.getCalculatedValue = function() {
1268
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * @param {number} value
1274
+ * @return {!proto.bet.DashboardGameInfo} returns this
1275
+ */
1276
+ proto.bet.DashboardGameInfo.prototype.setCalculatedValue = function(value) {
1277
+ return jspb.Message.setProto3FloatField(this, 2, value);
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * optional string slug = 3;
1283
+ * @return {string}
1284
+ */
1285
+ proto.bet.DashboardGameInfo.prototype.getSlug = function() {
1286
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * @param {string} value
1292
+ * @return {!proto.bet.DashboardGameInfo} returns this
1293
+ */
1294
+ proto.bet.DashboardGameInfo.prototype.setSlug = function(value) {
1295
+ return jspb.Message.setField(this, 3, value);
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * Clears the field making it undefined.
1301
+ * @return {!proto.bet.DashboardGameInfo} returns this
1302
+ */
1303
+ proto.bet.DashboardGameInfo.prototype.clearSlug = function() {
1304
+ return jspb.Message.setField(this, 3, undefined);
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * Returns whether this field is set.
1310
+ * @return {boolean}
1311
+ */
1312
+ proto.bet.DashboardGameInfo.prototype.hasSlug = function() {
1313
+ return jspb.Message.getField(this, 3) != null;
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * optional string image = 4;
1319
+ * @return {string}
1320
+ */
1321
+ proto.bet.DashboardGameInfo.prototype.getImage = function() {
1322
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * @param {string} value
1328
+ * @return {!proto.bet.DashboardGameInfo} returns this
1329
+ */
1330
+ proto.bet.DashboardGameInfo.prototype.setImage = function(value) {
1331
+ return jspb.Message.setField(this, 4, value);
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * Clears the field making it undefined.
1337
+ * @return {!proto.bet.DashboardGameInfo} returns this
1338
+ */
1339
+ proto.bet.DashboardGameInfo.prototype.clearImage = function() {
1340
+ return jspb.Message.setField(this, 4, undefined);
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * Returns whether this field is set.
1346
+ * @return {boolean}
1347
+ */
1348
+ proto.bet.DashboardGameInfo.prototype.hasImage = function() {
1349
+ return jspb.Message.getField(this, 4) != null;
1350
+ };
1351
+
1352
+
1353
+
1076
1354
  /**
1077
1355
  * List of repeated fields within this message type.
1078
1356
  * @private {!Array<number>}
@@ -1124,10 +1402,14 @@ proto.bet.DashboardResponse.toObject = function(includeInstance, msg) {
1124
1402
  ggrTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
1125
1403
  ggrReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
1126
1404
  ggrBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
1127
- topGamesUuidCountBetRealList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
1128
- topGamesUuidCountBetBonusList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
1129
- topGamesUuidSumBetRealList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
1130
- topGamesUuidSumBetBonusList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f
1405
+ topGamesCountBetRealList: jspb.Message.toObjectList(msg.getTopGamesCountBetRealList(),
1406
+ proto.bet.DashboardGameInfo.toObject, includeInstance),
1407
+ topGamesCountBetBonusList: jspb.Message.toObjectList(msg.getTopGamesCountBetBonusList(),
1408
+ proto.bet.DashboardGameInfo.toObject, includeInstance),
1409
+ topGamesSumBetRealList: jspb.Message.toObjectList(msg.getTopGamesSumBetRealList(),
1410
+ proto.bet.DashboardGameInfo.toObject, includeInstance),
1411
+ topGamesSumBetBonusList: jspb.Message.toObjectList(msg.getTopGamesSumBetBonusList(),
1412
+ proto.bet.DashboardGameInfo.toObject, includeInstance)
1131
1413
  };
1132
1414
 
1133
1415
  if (includeInstance) {
@@ -1217,20 +1499,24 @@ proto.bet.DashboardResponse.deserializeBinaryFromReader = function(msg, reader)
1217
1499
  msg.setGgrBonus(value);
1218
1500
  break;
1219
1501
  case 14:
1220
- var value = /** @type {string} */ (reader.readString());
1221
- msg.addTopGamesUuidCountBetReal(value);
1502
+ var value = new proto.bet.DashboardGameInfo;
1503
+ reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1504
+ msg.addTopGamesCountBetReal(value);
1222
1505
  break;
1223
1506
  case 15:
1224
- var value = /** @type {string} */ (reader.readString());
1225
- msg.addTopGamesUuidCountBetBonus(value);
1507
+ var value = new proto.bet.DashboardGameInfo;
1508
+ reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1509
+ msg.addTopGamesCountBetBonus(value);
1226
1510
  break;
1227
1511
  case 16:
1228
- var value = /** @type {string} */ (reader.readString());
1229
- msg.addTopGamesUuidSumBetReal(value);
1512
+ var value = new proto.bet.DashboardGameInfo;
1513
+ reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1514
+ msg.addTopGamesSumBetReal(value);
1230
1515
  break;
1231
1516
  case 17:
1232
- var value = /** @type {string} */ (reader.readString());
1233
- msg.addTopGamesUuidSumBetBonus(value);
1517
+ var value = new proto.bet.DashboardGameInfo;
1518
+ reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1519
+ msg.addTopGamesSumBetBonus(value);
1234
1520
  break;
1235
1521
  default:
1236
1522
  reader.skipField();
@@ -1352,32 +1638,36 @@ proto.bet.DashboardResponse.serializeBinaryToWriter = function(message, writer)
1352
1638
  f
1353
1639
  );
1354
1640
  }
1355
- f = message.getTopGamesUuidCountBetRealList();
1641
+ f = message.getTopGamesCountBetRealList();
1356
1642
  if (f.length > 0) {
1357
- writer.writeRepeatedString(
1643
+ writer.writeRepeatedMessage(
1358
1644
  14,
1359
- f
1645
+ f,
1646
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter
1360
1647
  );
1361
1648
  }
1362
- f = message.getTopGamesUuidCountBetBonusList();
1649
+ f = message.getTopGamesCountBetBonusList();
1363
1650
  if (f.length > 0) {
1364
- writer.writeRepeatedString(
1651
+ writer.writeRepeatedMessage(
1365
1652
  15,
1366
- f
1653
+ f,
1654
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter
1367
1655
  );
1368
1656
  }
1369
- f = message.getTopGamesUuidSumBetRealList();
1657
+ f = message.getTopGamesSumBetRealList();
1370
1658
  if (f.length > 0) {
1371
- writer.writeRepeatedString(
1659
+ writer.writeRepeatedMessage(
1372
1660
  16,
1373
- f
1661
+ f,
1662
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter
1374
1663
  );
1375
1664
  }
1376
- f = message.getTopGamesUuidSumBetBonusList();
1665
+ f = message.getTopGamesSumBetBonusList();
1377
1666
  if (f.length > 0) {
1378
- writer.writeRepeatedString(
1667
+ writer.writeRepeatedMessage(
1379
1668
  17,
1380
- f
1669
+ f,
1670
+ proto.bet.DashboardGameInfo.serializeBinaryToWriter
1381
1671
  );
1382
1672
  }
1383
1673
  };
@@ -1852,30 +2142,31 @@ proto.bet.DashboardResponse.prototype.hasGgrBonus = function() {
1852
2142
 
1853
2143
 
1854
2144
  /**
1855
- * repeated string top_games_uuid_count_bet_real = 14;
1856
- * @return {!Array<string>}
2145
+ * repeated DashboardGameInfo top_games_count_bet_real = 14;
2146
+ * @return {!Array<!proto.bet.DashboardGameInfo>}
1857
2147
  */
1858
- proto.bet.DashboardResponse.prototype.getTopGamesUuidCountBetRealList = function() {
1859
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
2148
+ proto.bet.DashboardResponse.prototype.getTopGamesCountBetRealList = function() {
2149
+ return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2150
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 14));
1860
2151
  };
1861
2152
 
1862
2153
 
1863
2154
  /**
1864
- * @param {!Array<string>} value
2155
+ * @param {!Array<!proto.bet.DashboardGameInfo>} value
1865
2156
  * @return {!proto.bet.DashboardResponse} returns this
1866
- */
1867
- proto.bet.DashboardResponse.prototype.setTopGamesUuidCountBetRealList = function(value) {
1868
- return jspb.Message.setField(this, 14, value || []);
2157
+ */
2158
+ proto.bet.DashboardResponse.prototype.setTopGamesCountBetRealList = function(value) {
2159
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
1869
2160
  };
1870
2161
 
1871
2162
 
1872
2163
  /**
1873
- * @param {string} value
2164
+ * @param {!proto.bet.DashboardGameInfo=} opt_value
1874
2165
  * @param {number=} opt_index
1875
- * @return {!proto.bet.DashboardResponse} returns this
2166
+ * @return {!proto.bet.DashboardGameInfo}
1876
2167
  */
1877
- proto.bet.DashboardResponse.prototype.addTopGamesUuidCountBetReal = function(value, opt_index) {
1878
- return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
2168
+ proto.bet.DashboardResponse.prototype.addTopGamesCountBetReal = function(opt_value, opt_index) {
2169
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.bet.DashboardGameInfo, opt_index);
1879
2170
  };
1880
2171
 
1881
2172
 
@@ -1883,36 +2174,37 @@ proto.bet.DashboardResponse.prototype.addTopGamesUuidCountBetReal = function(val
1883
2174
  * Clears the list making it empty but non-null.
1884
2175
  * @return {!proto.bet.DashboardResponse} returns this
1885
2176
  */
1886
- proto.bet.DashboardResponse.prototype.clearTopGamesUuidCountBetRealList = function() {
1887
- return this.setTopGamesUuidCountBetRealList([]);
2177
+ proto.bet.DashboardResponse.prototype.clearTopGamesCountBetRealList = function() {
2178
+ return this.setTopGamesCountBetRealList([]);
1888
2179
  };
1889
2180
 
1890
2181
 
1891
2182
  /**
1892
- * repeated string top_games_uuid_count_bet_bonus = 15;
1893
- * @return {!Array<string>}
2183
+ * repeated DashboardGameInfo top_games_count_bet_bonus = 15;
2184
+ * @return {!Array<!proto.bet.DashboardGameInfo>}
1894
2185
  */
1895
- proto.bet.DashboardResponse.prototype.getTopGamesUuidCountBetBonusList = function() {
1896
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15));
2186
+ proto.bet.DashboardResponse.prototype.getTopGamesCountBetBonusList = function() {
2187
+ return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2188
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 15));
1897
2189
  };
1898
2190
 
1899
2191
 
1900
2192
  /**
1901
- * @param {!Array<string>} value
2193
+ * @param {!Array<!proto.bet.DashboardGameInfo>} value
1902
2194
  * @return {!proto.bet.DashboardResponse} returns this
1903
- */
1904
- proto.bet.DashboardResponse.prototype.setTopGamesUuidCountBetBonusList = function(value) {
1905
- return jspb.Message.setField(this, 15, value || []);
2195
+ */
2196
+ proto.bet.DashboardResponse.prototype.setTopGamesCountBetBonusList = function(value) {
2197
+ return jspb.Message.setRepeatedWrapperField(this, 15, value);
1906
2198
  };
1907
2199
 
1908
2200
 
1909
2201
  /**
1910
- * @param {string} value
2202
+ * @param {!proto.bet.DashboardGameInfo=} opt_value
1911
2203
  * @param {number=} opt_index
1912
- * @return {!proto.bet.DashboardResponse} returns this
2204
+ * @return {!proto.bet.DashboardGameInfo}
1913
2205
  */
1914
- proto.bet.DashboardResponse.prototype.addTopGamesUuidCountBetBonus = function(value, opt_index) {
1915
- return jspb.Message.addToRepeatedField(this, 15, value, opt_index);
2206
+ proto.bet.DashboardResponse.prototype.addTopGamesCountBetBonus = function(opt_value, opt_index) {
2207
+ return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.bet.DashboardGameInfo, opt_index);
1916
2208
  };
1917
2209
 
1918
2210
 
@@ -1920,36 +2212,37 @@ proto.bet.DashboardResponse.prototype.addTopGamesUuidCountBetBonus = function(va
1920
2212
  * Clears the list making it empty but non-null.
1921
2213
  * @return {!proto.bet.DashboardResponse} returns this
1922
2214
  */
1923
- proto.bet.DashboardResponse.prototype.clearTopGamesUuidCountBetBonusList = function() {
1924
- return this.setTopGamesUuidCountBetBonusList([]);
2215
+ proto.bet.DashboardResponse.prototype.clearTopGamesCountBetBonusList = function() {
2216
+ return this.setTopGamesCountBetBonusList([]);
1925
2217
  };
1926
2218
 
1927
2219
 
1928
2220
  /**
1929
- * repeated string top_games_uuid_sum_bet_real = 16;
1930
- * @return {!Array<string>}
2221
+ * repeated DashboardGameInfo top_games_sum_bet_real = 16;
2222
+ * @return {!Array<!proto.bet.DashboardGameInfo>}
1931
2223
  */
1932
- proto.bet.DashboardResponse.prototype.getTopGamesUuidSumBetRealList = function() {
1933
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
2224
+ proto.bet.DashboardResponse.prototype.getTopGamesSumBetRealList = function() {
2225
+ return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2226
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 16));
1934
2227
  };
1935
2228
 
1936
2229
 
1937
2230
  /**
1938
- * @param {!Array<string>} value
2231
+ * @param {!Array<!proto.bet.DashboardGameInfo>} value
1939
2232
  * @return {!proto.bet.DashboardResponse} returns this
1940
- */
1941
- proto.bet.DashboardResponse.prototype.setTopGamesUuidSumBetRealList = function(value) {
1942
- return jspb.Message.setField(this, 16, value || []);
2233
+ */
2234
+ proto.bet.DashboardResponse.prototype.setTopGamesSumBetRealList = function(value) {
2235
+ return jspb.Message.setRepeatedWrapperField(this, 16, value);
1943
2236
  };
1944
2237
 
1945
2238
 
1946
2239
  /**
1947
- * @param {string} value
2240
+ * @param {!proto.bet.DashboardGameInfo=} opt_value
1948
2241
  * @param {number=} opt_index
1949
- * @return {!proto.bet.DashboardResponse} returns this
2242
+ * @return {!proto.bet.DashboardGameInfo}
1950
2243
  */
1951
- proto.bet.DashboardResponse.prototype.addTopGamesUuidSumBetReal = function(value, opt_index) {
1952
- return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
2244
+ proto.bet.DashboardResponse.prototype.addTopGamesSumBetReal = function(opt_value, opt_index) {
2245
+ return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.bet.DashboardGameInfo, opt_index);
1953
2246
  };
1954
2247
 
1955
2248
 
@@ -1957,36 +2250,37 @@ proto.bet.DashboardResponse.prototype.addTopGamesUuidSumBetReal = function(value
1957
2250
  * Clears the list making it empty but non-null.
1958
2251
  * @return {!proto.bet.DashboardResponse} returns this
1959
2252
  */
1960
- proto.bet.DashboardResponse.prototype.clearTopGamesUuidSumBetRealList = function() {
1961
- return this.setTopGamesUuidSumBetRealList([]);
2253
+ proto.bet.DashboardResponse.prototype.clearTopGamesSumBetRealList = function() {
2254
+ return this.setTopGamesSumBetRealList([]);
1962
2255
  };
1963
2256
 
1964
2257
 
1965
2258
  /**
1966
- * repeated string top_games_uuid_sum_bet_bonus = 17;
1967
- * @return {!Array<string>}
2259
+ * repeated DashboardGameInfo top_games_sum_bet_bonus = 17;
2260
+ * @return {!Array<!proto.bet.DashboardGameInfo>}
1968
2261
  */
1969
- proto.bet.DashboardResponse.prototype.getTopGamesUuidSumBetBonusList = function() {
1970
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 17));
2262
+ proto.bet.DashboardResponse.prototype.getTopGamesSumBetBonusList = function() {
2263
+ return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2264
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 17));
1971
2265
  };
1972
2266
 
1973
2267
 
1974
2268
  /**
1975
- * @param {!Array<string>} value
2269
+ * @param {!Array<!proto.bet.DashboardGameInfo>} value
1976
2270
  * @return {!proto.bet.DashboardResponse} returns this
1977
- */
1978
- proto.bet.DashboardResponse.prototype.setTopGamesUuidSumBetBonusList = function(value) {
1979
- return jspb.Message.setField(this, 17, value || []);
2271
+ */
2272
+ proto.bet.DashboardResponse.prototype.setTopGamesSumBetBonusList = function(value) {
2273
+ return jspb.Message.setRepeatedWrapperField(this, 17, value);
1980
2274
  };
1981
2275
 
1982
2276
 
1983
2277
  /**
1984
- * @param {string} value
2278
+ * @param {!proto.bet.DashboardGameInfo=} opt_value
1985
2279
  * @param {number=} opt_index
1986
- * @return {!proto.bet.DashboardResponse} returns this
2280
+ * @return {!proto.bet.DashboardGameInfo}
1987
2281
  */
1988
- proto.bet.DashboardResponse.prototype.addTopGamesUuidSumBetBonus = function(value, opt_index) {
1989
- return jspb.Message.addToRepeatedField(this, 17, value, opt_index);
2282
+ proto.bet.DashboardResponse.prototype.addTopGamesSumBetBonus = function(opt_value, opt_index) {
2283
+ return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.bet.DashboardGameInfo, opt_index);
1990
2284
  };
1991
2285
 
1992
2286
 
@@ -1994,8 +2288,8 @@ proto.bet.DashboardResponse.prototype.addTopGamesUuidSumBetBonus = function(valu
1994
2288
  * Clears the list making it empty but non-null.
1995
2289
  * @return {!proto.bet.DashboardResponse} returns this
1996
2290
  */
1997
- proto.bet.DashboardResponse.prototype.clearTopGamesUuidSumBetBonusList = function() {
1998
- return this.setTopGamesUuidSumBetBonusList([]);
2291
+ proto.bet.DashboardResponse.prototype.clearTopGamesSumBetBonusList = function() {
2292
+ return this.setTopGamesSumBetBonusList([]);
1999
2293
  };
2000
2294
 
2001
2295
 
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.212",
3
+ "version": "1.0.214",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {