com.xmobitea.changx.gn-unity 2.4.12 → 2.5.0

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.
Files changed (41) hide show
  1. package/Editor/GNServerSettingsEditor.cs +6 -0
  2. package/Runtime/Config/GNServerSettings.cs +10 -1
  3. package/Runtime/Constant/EnumType/ItemType.cs +2 -2
  4. package/Runtime/Constant/EnumType/StoreItemType.cs +10 -0
  5. package/Runtime/Constant/EnumType/StoreItemType.cs.meta +11 -0
  6. package/Runtime/Constant/ErrorCode/GNErrorCode.cs +4 -1
  7. package/Runtime/Constant/OperationCode.cs +3 -0
  8. package/Runtime/Constant/ParameterCode/GNParameterCode.cs +13 -0
  9. package/Runtime/Entity/Models/AuthenticateModels.cs +1 -1
  10. package/Runtime/Entity/Models/CharacterPlayerModels.cs +54 -4
  11. package/Runtime/Entity/Models/CharacterPlayerRequestModels.cs +24 -0
  12. package/Runtime/Entity/Models/CharacterPlayerResponseModels.cs +5 -0
  13. package/Runtime/Entity/Models/ContentModels.cs +0 -10
  14. package/Runtime/Entity/Models/DashboardModels.cs +47 -4
  15. package/Runtime/Entity/Models/GamePlayerModels.cs +13 -4
  16. package/Runtime/Entity/Models/GroupModels.cs +15 -3
  17. package/Runtime/Entity/Models/InventoryModels.cs +11 -2
  18. package/Runtime/Entity/Models/MasterPlayerModels.cs +5 -2
  19. package/Runtime/Entity/Models/MultiplayerModels.cs +1 -1
  20. package/Runtime/Entity/Models/StoreInventoryModels.cs +75 -13
  21. package/Runtime/Entity/Models/StoreInventoryRequestModels.cs +48 -0
  22. package/Runtime/Entity/Models/StoreInventoryResponseModels.cs +10 -0
  23. package/Runtime/Entity/Response/UploadFileResponse.cs +9 -0
  24. package/Runtime/Entity/Response/UploadFileResponse.cs.meta +11 -0
  25. package/Runtime/GNNetwork.cs +1 -1
  26. package/Runtime/GNNetworkApi.cs +35 -0
  27. package/Runtime/GNNetworkCharacterPlayerApi.cs +30 -0
  28. package/Runtime/GNNetworkStoreInventoryApi.cs +59 -0
  29. package/Runtime/Helper/ConverterService.cs +142 -46
  30. package/Runtime/Helper/MessagePackConverterService.cs +21 -0
  31. package/Runtime/Helper/MessagePackConverterService.cs.meta +11 -0
  32. package/Runtime/Networking/Http/HttpPeer.cs +6 -5
  33. package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs +1 -1
  34. package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs +193 -389
  35. package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs +3 -4
  36. package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs +8 -9
  37. package/Runtime/Networking/NetworkingPeerAPI.cs +39 -0
  38. package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs +2 -2
  39. package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs +2 -2
  40. package/Runtime/Networking/Socket/NetworkingSocketPeerBase.cs +3 -3
  41. package/package.json +1 -1
@@ -15,6 +15,7 @@
15
15
  {
16
16
  SerializedProperty serverAddress;
17
17
  SerializedProperty serverPort;
18
+ SerializedProperty serverSocketPort;
18
19
  SerializedProperty useSsl;
19
20
  SerializedProperty useSocket;
20
21
  SerializedProperty useHttp;
@@ -38,6 +39,7 @@
38
39
  {
39
40
  this.serverAddress = this.serializedObject.FindProperty("serverAddress");
40
41
  this.serverPort = this.serializedObject.FindProperty("serverPort");
42
+ this.serverSocketPort = this.serializedObject.FindProperty("serverSocketPort");
41
43
  this.useSsl = this.serializedObject.FindProperty("useSsl");
42
44
  this.useSocket = this.serializedObject.FindProperty("useSocket");
43
45
  this.useHttp = this.serializedObject.FindProperty("useHttp");
@@ -76,6 +78,7 @@
76
78
 
77
79
  EditorGUILayout.PropertyField(this.serverAddress);
78
80
  EditorGUILayout.PropertyField(this.serverPort);
81
+ EditorGUILayout.Space(5);
79
82
  EditorGUILayout.PropertyField(this.useSsl);
80
83
  EditorGUILayout.PropertyField(this.sendRate);
81
84
  EditorGUILayout.Space(10);
@@ -92,6 +95,9 @@
92
95
 
93
96
  if (this.useSocket.boolValue)
94
97
  {
98
+ EditorGUILayout.PropertyField(this.serverSocketPort);
99
+ EditorGUILayout.Space(5);
100
+
95
101
  #if UNITY_USING_BEST_HTTP
96
102
  EditorGUILayout.PropertyField(this.reconnectDelay);
97
103
  EditorGUILayout.PropertyField(this.pingInterval);
@@ -60,6 +60,9 @@
60
60
  [SerializeField]
61
61
  private int serverPort = 2202;
62
62
 
63
+ [SerializeField]
64
+ private int serverSocketPort = 2901;
65
+
63
66
  [SerializeField]
64
67
  private bool useSsl = false;
65
68
 
@@ -111,6 +114,12 @@
111
114
  /// <returns>The server port.</returns>
112
115
  public int getServerPort() => this.serverPort;
113
116
 
117
+ /// <summary>
118
+ /// Gets the server socket port.
119
+ /// </summary>
120
+ /// <returns>The server socket port.</returns>
121
+ public int getServerSocketPort() => this.serverSocketPort;
122
+
114
123
  /// <summary>
115
124
  /// Indicates whether SSL is used.
116
125
  /// </summary>
@@ -196,7 +205,7 @@
196
205
  public string getSocketUrl() =>
197
206
  this.serverPort < 0
198
207
  ? $"{(this.useSsl ? "https" : "http")}://{this.serverAddress}"
199
- : $"{(this.useSsl ? "https" : "http")}://{this.serverAddress}:{this.serverPort}";
208
+ : $"{(this.useSsl ? "https" : "http")}://{this.serverAddress}:{this.serverSocketPort}";
200
209
 
201
210
  /// <summary>
202
211
  /// Constructs the HTTP URL.
@@ -2,8 +2,8 @@
2
2
  {
3
3
  public enum ItemType
4
4
  {
5
- NonComsumable = 1,
6
- Consumable = 2,
5
+ NonStackable = 1,
6
+ Stackable = 2,
7
7
 
8
8
  }
9
9
 
@@ -0,0 +1,10 @@
1
+ namespace XmobiTea.GN.Constant
2
+ {
3
+ public enum StoreItemType
4
+ {
5
+ NonConsumable = 1,
6
+ Consumable = 2,
7
+
8
+ }
9
+
10
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 9e657d4526acec54ea8f03be472b7a12
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -23,7 +23,7 @@
23
23
  public const int FileNotFound = 18;
24
24
  public const int FileNotUpload = 19;
25
25
  public const int OwnerTypeNotSupport = 20;
26
- public const int ItemNotComsumable = 21;
26
+ public const int ItemNotStackable = 21;
27
27
  public const int GameNotFound = 22;
28
28
  public const int GameIsExists = 23;
29
29
  public const int SecretInfoNotFound = 24;
@@ -54,6 +54,9 @@
54
54
  public const int VersionInvalid = 47;
55
55
  public const int EmailInvalid = 48;
56
56
 
57
+ public const int StoreItemHadPurchaseAndNonConsumable = 49;
58
+ public const int StoreItemHadExists = 50;
59
+
57
60
  }
58
61
 
59
62
  }
@@ -246,6 +246,9 @@ namespace XmobiTea.GN.Constant
246
246
  public const int RemovePushNotification = 190;
247
247
  public const int GetPushNotification = 191;
248
248
 
249
+ public const int GetStoreUsed = 192;
250
+ public const int RemoveStoreUsed = 193;
251
+
249
252
  private OperationCode() { }
250
253
 
251
254
  }
@@ -630,6 +630,19 @@
630
630
  public const string Indexes = "indexes";
631
631
  public const string DatabaseSystem = "databaseSystem";
632
632
 
633
+ public const string Cost = "cost";
634
+ public const string MonthlyCost = "monthlyCost";
635
+ public const string RequestCount = "requestCount";
636
+ public const string MatchmakingRequestCount = "matchmakingRequestCount";
637
+ public const string CloudScriptGBs = "cloudScriptGBs";
638
+ public const string StorageSizeInBytes = "storageSizeInBytes";
639
+ public const string DataTransferSizeInBytes = "dataTransferSizeInBytes";
640
+
641
+ public const string StoreItemType = "storeItemType";
642
+ public const string OwnerIds = "ownerIds";
643
+ public const string GetStoreUsed = "getStoreUsed";
644
+ public const string RemoveStoreUsed = "removeStoreUsed";
645
+
633
646
  }
634
647
 
635
648
  }
@@ -119,7 +119,7 @@
119
119
  public string token;
120
120
 
121
121
  [NumberDataMember(code = GNParameterCode.Type, minValue = 1, maxValue = 2, mustInt = true)]
122
- public long type;
122
+ public int type;
123
123
 
124
124
  [BooleanDataMember(code = GNParameterCode.CreatePlayerIfNotExists, isOptional = true, defaultValue = false)]
125
125
  public bool? createPlayerIfNotExists;
@@ -2,6 +2,7 @@
2
2
  {
3
3
  using System.Collections.Generic;
4
4
  using XmobiTea.GN.Constant;
5
+ using static XmobiTea.GN.Entity.Models.MasterPlayerModels;
5
6
 
6
7
  public partial class CharacterPlayerModels
7
8
  {
@@ -139,6 +140,9 @@
139
140
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
140
141
  public int? limit;
141
142
 
143
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
144
+ public bool? loadFromCache;
145
+
142
146
  }
143
147
 
144
148
  public class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData : GetFriendStatisticsLeaderboardAroundPlayerRequestData
@@ -166,6 +170,9 @@
166
170
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
167
171
  public int? limit;
168
172
 
173
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
174
+ public bool? loadFromCache;
175
+
169
176
  }
170
177
 
171
178
  public class ServerGetFriendStatisticsLeaderboardRequestData : GetFriendStatisticsLeaderboardRequestData
@@ -469,6 +476,12 @@
469
476
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
470
477
  public int? limit;
471
478
 
479
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
480
+ public bool? loadFromCache;
481
+
482
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
483
+ public string? catalogId;
484
+
472
485
  }
473
486
 
474
487
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -499,6 +512,9 @@
499
512
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
500
513
  public string? version;
501
514
 
515
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
516
+ public string? catalogId;
517
+
502
518
  }
503
519
 
504
520
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -595,8 +611,8 @@
595
611
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
596
612
  public string? displayName;
597
613
 
598
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
599
- public double? amount;
614
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
615
+ public int? amount;
600
616
 
601
617
  }
602
618
 
@@ -722,7 +738,7 @@
722
738
  public string characterId;
723
739
 
724
740
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
725
- public long type;
741
+ public int type;
726
742
 
727
743
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
728
744
  public string value;
@@ -815,7 +831,7 @@
815
831
  public string characterId;
816
832
 
817
833
  [NumberDataMember(code = GNParameterCode.TsExpire)]
818
- public double tsExpire;
834
+ public long tsExpire;
819
835
 
820
836
  [StringDataMember(code = GNParameterCode.Reason)]
821
837
  public string reason;
@@ -953,6 +969,30 @@
953
969
  {
954
970
  }
955
971
 
972
+ public class GetLastLoginLeaderboardRequestData
973
+ {
974
+ [GNHashtableDataMember(code = GNParameterCode.InfoRequestParam, mustNonNull = true)]
975
+ public InfoRequestParam infoRequestParam;
976
+
977
+ [NumberDataMember(code = GNParameterCode.Skip, defaultValue = 0, minValue = 0, mustInt = true, isOptional = true)]
978
+ public int? skip;
979
+
980
+ [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
981
+ public int? limit;
982
+
983
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
984
+ public bool? loadFromCache;
985
+
986
+ }
987
+
988
+ public class ServerGetLastLoginLeaderboardRequestData : GetLastLoginLeaderboardRequestData
989
+ {
990
+ }
991
+
992
+ public class AdminGetLastLoginLeaderboardRequestData : ServerGetLastLoginLeaderboardRequestData
993
+ {
994
+ }
995
+
956
996
  public class GetStatisticsLogRequestData
957
997
  {
958
998
  [GNArrayDataMember(code = GNParameterCode.Keys, minLength = 1, maxLength = 32, mustNonNull = true, elementCls = typeof(string), isOptional = true)]
@@ -1290,6 +1330,9 @@
1290
1330
  [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
1291
1331
  public bool? loadFromCache;
1292
1332
 
1333
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
1334
+ public string? catalogId;
1335
+
1293
1336
  }
1294
1337
 
1295
1338
  public class ServerGetCurrencyLeaderboardRequestData : GetCurrencyLeaderboardRequestData
@@ -1314,6 +1357,13 @@
1314
1357
 
1315
1358
  }
1316
1359
 
1360
+ public class GetLastLoginLeaderboardResponseData
1361
+ {
1362
+ [GNArrayDataMember(code = GNParameterCode.Results, elementCls = typeof(CharacterPlayerLeaderboardResponseData))]
1363
+ public List<CharacterPlayerLeaderboardResponseData> results;
1364
+
1365
+ }
1366
+
1317
1367
  public class GetStatisticsLogResponseData
1318
1368
  {
1319
1369
  [GNArrayDataMember(code = GNParameterCode.Results, elementCls = typeof(CharacterPlayerLogResponseData))]
@@ -1252,6 +1252,30 @@
1252
1252
  public AdminGetCreateLeaderboardOperationRequest(CharacterPlayerModels.AdminGetCreateLeaderboardRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
1253
1253
  }
1254
1254
 
1255
+ public class GetLastLoginLeaderboardOperationRequest : CustomOperationRequest<CharacterPlayerModels.GetLastLoginLeaderboardRequestData>
1256
+ {
1257
+ protected override int operationCode => OperationCode.GetLastLoginLeaderboard;
1258
+ protected override bool operationEncrypted => true;
1259
+ protected override RequestType requestType => RequestType.CharacterPlayer;
1260
+ protected override RequestRole requestRole => RequestRole.Client;
1261
+
1262
+ public GetLastLoginLeaderboardOperationRequest(CharacterPlayerModels.GetLastLoginLeaderboardRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
1263
+ }
1264
+
1265
+ public class ServerGetLastLoginLeaderboardOperationRequest : GetLastLoginLeaderboardOperationRequest
1266
+ {
1267
+ protected override RequestRole requestRole => RequestRole.Server;
1268
+
1269
+ public ServerGetLastLoginLeaderboardOperationRequest(CharacterPlayerModels.ServerGetLastLoginLeaderboardRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
1270
+ }
1271
+
1272
+ public class AdminGetLastLoginLeaderboardOperationRequest : GetLastLoginLeaderboardOperationRequest
1273
+ {
1274
+ protected override RequestRole requestRole => RequestRole.Admin;
1275
+
1276
+ public AdminGetLastLoginLeaderboardOperationRequest(CharacterPlayerModels.AdminGetLastLoginLeaderboardRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
1277
+ }
1278
+
1255
1279
  public class GetStatisticsLogOperationRequest : CustomOperationRequest<CharacterPlayerModels.GetStatisticsLogRequestData>
1256
1280
  {
1257
1281
  protected override int operationCode => OperationCode.GetStatisticsLog;
@@ -254,6 +254,11 @@
254
254
 
255
255
  }
256
256
 
257
+ public class GetLastLoginLeaderboardOperationResponse : CustomOperationResponse<CharacterPlayerModels.GetLastLoginLeaderboardResponseData>
258
+ {
259
+
260
+ }
261
+
257
262
  public class GetStatisticsLogOperationResponse : CustomOperationResponse<CharacterPlayerModels.GetStatisticsLogResponseData>
258
263
  {
259
264
 
@@ -15,9 +15,6 @@
15
15
 
16
16
  public class ServerCreateNewFileUploadInfoRequestData : CreateNewFileUploadInfoRequestData
17
17
  {
18
- [StringDataMember(code = GNParameterCode.UserId, minLength = 10, maxLength = 10, mustNonNull = true)]
19
- public string userId;
20
-
21
18
  }
22
19
 
23
20
  public class AdminCreateNewFileUploadInfoRequestData : ServerCreateNewFileUploadInfoRequestData
@@ -180,19 +177,12 @@
180
177
 
181
178
  public class GetFileUploadInfoResponseData : FileIdUploadResponseData
182
179
  {
183
- //operationResponse.setParameter(GNParameterCode.FileName, uploadFileInfo.getFileName());
184
- // operationResponse.setParameter(GNParameterCode.TsCreate, uploadFileInfo.getTsCreate());
185
- // operationResponse.setParameter(GNParameterCode.UserId, uploadFileInfo.getUserId());
186
-
187
180
  [StringDataMember(code = GNParameterCode.FileName)]
188
181
  public string fileName;
189
182
 
190
183
  [NumberDataMember(code = GNParameterCode.TsCreate)]
191
184
  public long tsCreate;
192
185
 
193
- [StringDataMember(code = GNParameterCode.UserId)]
194
- public string userId;
195
-
196
186
  [GNHashtableDataMember(code = GNParameterCode.RemoveStatus)]
197
187
  public GenericModels.RemoveStatusItem removeStatus;
198
188
 
@@ -165,7 +165,7 @@
165
165
  public bool? remove;
166
166
 
167
167
  [NumberDataMember(code = GNParameterCode.TsExpire, isOptional = true)]
168
- public double? tsExpire;
168
+ public long? tsExpire;
169
169
 
170
170
  [GNHashtableDataMember(code = GNParameterCode.Permission, isOptional = true)]
171
171
  public PermissionParam? permissionParam;
@@ -209,6 +209,12 @@
209
209
  [BooleanDataMember(code = GNParameterCode.DatabaseSystem, isOptional = true)]
210
210
  public bool? databaseSystem;
211
211
 
212
+ [BooleanDataMember(code = GNParameterCode.Cost, isOptional = true)]
213
+ public bool? cost;
214
+
215
+ [BooleanDataMember(code = GNParameterCode.MonthlyCost, isOptional = true)]
216
+ public bool? monthlyCost;
217
+
212
218
  }
213
219
 
214
220
  public class GetEventCallbackCloudScriptRequestData
@@ -242,6 +248,9 @@
242
248
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
243
249
  public string? log;
244
250
 
251
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
252
+ public string? catalogId;
253
+
245
254
  }
246
255
 
247
256
  public class GetBackupStatisticsLeaderboardVersionRequestData
@@ -511,6 +520,9 @@
511
520
  [GNHashtableDataMember(code = GNParameterCode.GetCreateLeaderboard, isOptional = true)]
512
521
  public PermissionRulesParam? getCreateLeaderboard;
513
522
 
523
+ [GNHashtableDataMember(code = GNParameterCode.GetLastLoginLeaderboard, isOptional = true)]
524
+ public PermissionRulesParam? getLastLoginLeaderboard;
525
+
514
526
  [GNHashtableDataMember(code = GNParameterCode.GetStatisticsLog, isOptional = true)]
515
527
  public PermissionRulesParam? getStatisticsLog;
516
528
 
@@ -597,7 +609,7 @@
597
609
  public string displayName;
598
610
 
599
611
  [NumberDataMember(code = GNParameterCode.Permission, mustInt = true)]
600
- public long permission;
612
+ public int permission;
601
613
 
602
614
  }
603
615
 
@@ -1132,7 +1144,7 @@
1132
1144
  public string catalogId;
1133
1145
 
1134
1146
  [NumberDataMember(code = GNParameterCode.ItemType, mustInt = true)]
1135
- public long itemType;
1147
+ public int itemType;
1136
1148
 
1137
1149
  [GNArrayDataMember(code = GNParameterCode.ItemClassSettings, elementCls = typeof(ItemClassSettingsParam))]
1138
1150
  public List<ItemClassSettingsParam> itemClassSettings;
@@ -1621,7 +1633,7 @@
1621
1633
  public string key;
1622
1634
 
1623
1635
  [NumberDataMember(code = GNParameterCode.StatisticsAggregationMethod, mustInt = true)]
1624
- public long statisticsAggregationMethod;
1636
+ public int statisticsAggregationMethod;
1625
1637
 
1626
1638
  [NumberDataMember(code = GNParameterCode.MaximumValue, isOptional = true, defaultValue = 0)]
1627
1639
  public double? maximumValue;
@@ -1678,6 +1690,12 @@
1678
1690
  [GNHashtableDataMember(code = GNParameterCode.GetStoreLog, isOptional = true)]
1679
1691
  public PermissionRulesParam? getStoreLog;
1680
1692
 
1693
+ [GNHashtableDataMember(code = GNParameterCode.GetStoreUsed, isOptional = true)]
1694
+ public PermissionRulesParam? getStoreUsed;
1695
+
1696
+ [GNHashtableDataMember(code = GNParameterCode.RemoveStoreUsed, isOptional = true)]
1697
+ public PermissionRulesParam? removeStoreUsed;
1698
+
1681
1699
  }
1682
1700
 
1683
1701
  public class TagSettingsParam
@@ -2147,6 +2165,25 @@
2147
2165
 
2148
2166
  }
2149
2167
 
2168
+ public class CostResponseData
2169
+ {
2170
+ [NumberDataMember(code = GNParameterCode.RequestCount)]
2171
+ public int requestCount;
2172
+
2173
+ [NumberDataMember(code = GNParameterCode.MatchmakingRequestCount)]
2174
+ public int matchmakingRequestCount;
2175
+
2176
+ [NumberDataMember(code = GNParameterCode.CloudScriptGBs)]
2177
+ public double cloudScriptGBs;
2178
+
2179
+ [NumberDataMember(code = GNParameterCode.StorageSizeInBytes)]
2180
+ public double storageSizeInBytes;
2181
+
2182
+ [NumberDataMember(code = GNParameterCode.DataTransferSizeInBytes)]
2183
+ public long dataTransferSizeInBytes;
2184
+
2185
+ }
2186
+
2150
2187
  public class OperationSystemResponseData
2151
2188
  {
2152
2189
  [NumberDataMember(code = GNParameterCode.CpuUsage)]
@@ -2197,6 +2234,12 @@
2197
2234
  [GNHashtableDataMember(code = GNParameterCode.DatabaseSystem, isOptional = true)]
2198
2235
  public DatabaseSystemResponseData? databaseSystem;
2199
2236
 
2237
+ [GNHashtableDataMember(code = GNParameterCode.Cost, isOptional = true)]
2238
+ public CostResponseData? cost;
2239
+
2240
+ [GNHashtableDataMember(code = GNParameterCode.MonthlyCost, isOptional = true)]
2241
+ public CostResponseData? monthlyCost;
2242
+
2200
2243
  }
2201
2244
 
2202
2245
  public class ChildScriptResponseData
@@ -143,6 +143,9 @@
143
143
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
144
144
  public int? limit;
145
145
 
146
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
147
+ public bool? loadFromCache;
148
+
146
149
  }
147
150
 
148
151
  public class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData : GetFriendStatisticsLeaderboardAroundPlayerRequestData
@@ -173,6 +176,9 @@
173
176
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
174
177
  public int? limit;
175
178
 
179
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
180
+ public bool? loadFromCache;
181
+
176
182
  }
177
183
 
178
184
  public class ServerGetFriendStatisticsLeaderboardRequestData : GetFriendStatisticsLeaderboardRequestData
@@ -521,6 +527,9 @@
521
527
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
522
528
  public int? limit;
523
529
 
530
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
531
+ public bool? loadFromCache;
532
+
524
533
  }
525
534
 
526
535
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -686,8 +695,8 @@
686
695
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
687
696
  public string? displayName;
688
697
 
689
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
690
- public double? amount;
698
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
699
+ public int? amount;
691
700
 
692
701
  }
693
702
 
@@ -855,7 +864,7 @@
855
864
  public string? userId;
856
865
 
857
866
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
858
- public long type;
867
+ public int type;
859
868
 
860
869
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
861
870
  public string value;
@@ -945,7 +954,7 @@
945
954
  public string? userId;
946
955
 
947
956
  [NumberDataMember(code = GNParameterCode.TsExpire)]
948
- public double tsExpire;
957
+ public long tsExpire;
949
958
 
950
959
  [StringDataMember(code = GNParameterCode.Reason)]
951
960
  public string reason;
@@ -352,6 +352,12 @@
352
352
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
353
353
  public int? limit;
354
354
 
355
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
356
+ public bool? loadFromCache;
357
+
358
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
359
+ public string? catalogId;
360
+
355
361
  }
356
362
 
357
363
  public class ServerGetStatisticsLeaderboardAroundGroupRequestData : GetStatisticsLeaderboardAroundGroupRequestData
@@ -382,6 +388,9 @@
382
388
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
383
389
  public string? version;
384
390
 
391
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
392
+ public string? catalogId;
393
+
385
394
  }
386
395
 
387
396
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -439,8 +448,8 @@
439
448
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
440
449
  public string? displayName;
441
450
 
442
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
443
- public double? amount;
451
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
452
+ public int? amount;
444
453
 
445
454
  }
446
455
 
@@ -551,7 +560,7 @@
551
560
  public string groupId;
552
561
 
553
562
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
554
- public long type;
563
+ public int type;
555
564
 
556
565
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
557
566
  public string value;
@@ -1039,6 +1048,9 @@
1039
1048
  [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
1040
1049
  public bool? loadFromCache;
1041
1050
 
1051
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
1052
+ public string? catalogId;
1053
+
1042
1054
  }
1043
1055
 
1044
1056
  public class ServerGetCurrencyLeaderboardRequestData : GetCurrencyLeaderboardRequestData
@@ -322,6 +322,12 @@
322
322
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
323
323
  public int? limit;
324
324
 
325
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
326
+ public bool? loadFromCache;
327
+
328
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
329
+ public string? catalogId;
330
+
325
331
  }
326
332
 
327
333
  public class ServerGetStatisticsLeaderboardAroundItemRequestData : GetStatisticsLeaderboardAroundItemRequestData
@@ -352,6 +358,9 @@
352
358
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
353
359
  public string? version;
354
360
 
361
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
362
+ public string? catalogId;
363
+
355
364
  }
356
365
 
357
366
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -455,7 +464,7 @@
455
464
  public string itemId;
456
465
 
457
466
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
458
- public long type;
467
+ public int type;
459
468
 
460
469
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
461
470
  public string value;
@@ -554,7 +563,7 @@
554
563
  public string newOwnerId;
555
564
 
556
565
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
557
- public long newOwnerType;
566
+ public int newOwnerType;
558
567
 
559
568
  }
560
569
 
@@ -492,6 +492,9 @@
492
492
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
493
493
  public int? limit;
494
494
 
495
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
496
+ public bool? loadFromCache;
497
+
495
498
  }
496
499
 
497
500
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -1069,7 +1072,7 @@
1069
1072
  public string? userId;
1070
1073
 
1071
1074
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
1072
- public long type;
1075
+ public int type;
1073
1076
 
1074
1077
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
1075
1078
  public string value;
@@ -1180,7 +1183,7 @@
1180
1183
  public string? userId;
1181
1184
 
1182
1185
  [NumberDataMember(code = GNParameterCode.TsExpire)]
1183
- public double tsExpire;
1186
+ public long tsExpire;
1184
1187
 
1185
1188
  [StringDataMember(code = GNParameterCode.Reason)]
1186
1189
  public string reason;