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.
- package/Editor/GNServerSettingsEditor.cs +6 -0
- package/Runtime/Config/GNServerSettings.cs +10 -1
- package/Runtime/Constant/EnumType/ItemType.cs +2 -2
- package/Runtime/Constant/EnumType/StoreItemType.cs +10 -0
- package/Runtime/Constant/EnumType/StoreItemType.cs.meta +11 -0
- package/Runtime/Constant/ErrorCode/GNErrorCode.cs +4 -1
- package/Runtime/Constant/OperationCode.cs +3 -0
- package/Runtime/Constant/ParameterCode/GNParameterCode.cs +13 -0
- package/Runtime/Entity/Models/AuthenticateModels.cs +1 -1
- package/Runtime/Entity/Models/CharacterPlayerModels.cs +54 -4
- package/Runtime/Entity/Models/CharacterPlayerRequestModels.cs +24 -0
- package/Runtime/Entity/Models/CharacterPlayerResponseModels.cs +5 -0
- package/Runtime/Entity/Models/ContentModels.cs +0 -10
- package/Runtime/Entity/Models/DashboardModels.cs +47 -4
- package/Runtime/Entity/Models/GamePlayerModels.cs +13 -4
- package/Runtime/Entity/Models/GroupModels.cs +15 -3
- package/Runtime/Entity/Models/InventoryModels.cs +11 -2
- package/Runtime/Entity/Models/MasterPlayerModels.cs +5 -2
- package/Runtime/Entity/Models/MultiplayerModels.cs +1 -1
- package/Runtime/Entity/Models/StoreInventoryModels.cs +75 -13
- package/Runtime/Entity/Models/StoreInventoryRequestModels.cs +48 -0
- package/Runtime/Entity/Models/StoreInventoryResponseModels.cs +10 -0
- package/Runtime/Entity/Response/UploadFileResponse.cs +9 -0
- package/Runtime/Entity/Response/UploadFileResponse.cs.meta +11 -0
- package/Runtime/GNNetwork.cs +1 -1
- package/Runtime/GNNetworkApi.cs +35 -0
- package/Runtime/GNNetworkCharacterPlayerApi.cs +30 -0
- package/Runtime/GNNetworkStoreInventoryApi.cs +59 -0
- package/Runtime/Helper/ConverterService.cs +142 -46
- package/Runtime/Helper/MessagePackConverterService.cs +21 -0
- package/Runtime/Helper/MessagePackConverterService.cs.meta +11 -0
- package/Runtime/Networking/Http/HttpPeer.cs +6 -5
- package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs +1 -1
- package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs +193 -389
- package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs +3 -4
- package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs +8 -9
- package/Runtime/Networking/NetworkingPeerAPI.cs +39 -0
- package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs +2 -2
- package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs +2 -2
- package/Runtime/Networking/Socket/NetworkingSocketPeerBase.cs +3 -3
- package/package.json +1 -1
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
{
|
|
8
8
|
public class BuyStoreItemRequestData
|
|
9
9
|
{
|
|
10
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
10
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
11
11
|
public string storeId;
|
|
12
12
|
|
|
13
13
|
[StringDataMember(code = GNParameterCode.OwnerId, minLength = 10, maxLength = 11, mustNonNull = true)]
|
|
14
14
|
public string id;
|
|
15
15
|
|
|
16
16
|
[NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
|
|
17
|
-
public
|
|
17
|
+
public int type;
|
|
18
18
|
|
|
19
19
|
[StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
|
|
20
20
|
public string? log;
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
|
|
32
32
|
public class PresentStoreItemRequestData
|
|
33
33
|
{
|
|
34
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
34
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
35
35
|
public string storeId;
|
|
36
36
|
|
|
37
37
|
[StringDataMember(code = GNParameterCode.OwnerId, minLength = 10, maxLength = 11, mustNonNull = true)]
|
|
38
38
|
public string id;
|
|
39
39
|
|
|
40
40
|
[NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
|
|
41
|
-
public
|
|
41
|
+
public int type;
|
|
42
42
|
|
|
43
43
|
[StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
|
|
44
44
|
public string? log;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
public class GetStoreItemInformationRequestData
|
|
57
57
|
{
|
|
58
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
58
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
59
59
|
public string storeId;
|
|
60
60
|
|
|
61
61
|
[GNHashtableDataMember(code = GNParameterCode.InfoRequestParam, mustNonNull = true)]
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
|
|
74
74
|
public class GetStoreLogRequestData
|
|
75
75
|
{
|
|
76
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
76
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true, isOptional = true)]
|
|
77
77
|
public string? storeId;
|
|
78
78
|
|
|
79
79
|
[GNArrayDataMember(code = GNParameterCode.StoreReceiveTypes, minLength = 1, maxLength = 10, mustNonNull = true, elementCls = typeof(int))]
|
|
@@ -98,6 +98,39 @@
|
|
|
98
98
|
{
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
public class GetStoreUsedRequestData
|
|
102
|
+
{
|
|
103
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
104
|
+
public string storeId;
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public class ServerGetStoreUsedRequestData : GetStoreUsedRequestData
|
|
109
|
+
{
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public class AdminGetStoreUsedRequestData : ServerGetStoreUsedRequestData
|
|
113
|
+
{
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public class RemoveStoreUsedRequestData
|
|
117
|
+
{
|
|
118
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
119
|
+
public string storeId;
|
|
120
|
+
|
|
121
|
+
[GNArrayDataMember(code = GNParameterCode.OwnerIds, isOptional = true, elementCls = typeof(string))]
|
|
122
|
+
public List<string>? ownerIds;
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public class ServerRemoveStoreUsedRequestData : RemoveStoreUsedRequestData
|
|
127
|
+
{
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
public class AdminRemoveStoreUsedRequestData : ServerRemoveStoreUsedRequestData
|
|
131
|
+
{
|
|
132
|
+
}
|
|
133
|
+
|
|
101
134
|
public class GetStoreItemsWithTagRequestData
|
|
102
135
|
{
|
|
103
136
|
[StringDataMember(code = GNParameterCode.Key, minLength = 2, maxLength = 32, mustNonNull = true)]
|
|
@@ -127,7 +160,7 @@
|
|
|
127
160
|
|
|
128
161
|
public class GrantStoreItemRequestData
|
|
129
162
|
{
|
|
130
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
163
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, isOptional = true)]
|
|
131
164
|
public string? storeId;
|
|
132
165
|
|
|
133
166
|
[StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
|
|
@@ -145,7 +178,7 @@
|
|
|
145
178
|
|
|
146
179
|
public class SetRemoveStatusRequestData
|
|
147
180
|
{
|
|
148
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
181
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
149
182
|
public string storeId;
|
|
150
183
|
|
|
151
184
|
[StringDataMember(code = GNParameterCode.Reason, isOptional = true, defaultValue = "")]
|
|
@@ -163,9 +196,12 @@
|
|
|
163
196
|
|
|
164
197
|
public class SetStoreItemInformationRequestData
|
|
165
198
|
{
|
|
166
|
-
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength =
|
|
199
|
+
[StringDataMember(code = GNParameterCode.StoreId, minLength = 10, maxLength = 32, mustNonNull = true)]
|
|
167
200
|
public string storeId;
|
|
168
201
|
|
|
202
|
+
[NumberDataMember(code = GNParameterCode.StoreItemType, minValue = 1, maxValue = 2, mustInt = true, isOptional = true)]
|
|
203
|
+
public int? storeItemType;
|
|
204
|
+
|
|
169
205
|
[GNArrayDataMember(code = GNParameterCode.StoreDatas, minLength = 0, maxLength = 32, mustNonNull = true, isOptional = true, elementCls = typeof(StoreDataParam))]
|
|
170
206
|
public List<StoreDataParam>? storeDataParams;
|
|
171
207
|
|
|
@@ -209,7 +245,7 @@
|
|
|
209
245
|
public string id;
|
|
210
246
|
|
|
211
247
|
[NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
|
|
212
|
-
public
|
|
248
|
+
public int type;
|
|
213
249
|
|
|
214
250
|
[StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
|
|
215
251
|
public string? log;
|
|
@@ -233,7 +269,7 @@
|
|
|
233
269
|
public string id;
|
|
234
270
|
|
|
235
271
|
[NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
|
|
236
|
-
public
|
|
272
|
+
public int type;
|
|
237
273
|
|
|
238
274
|
[StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
|
|
239
275
|
public string? log;
|
|
@@ -257,7 +293,7 @@
|
|
|
257
293
|
public string id;
|
|
258
294
|
|
|
259
295
|
[NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
|
|
260
|
-
public
|
|
296
|
+
public int type;
|
|
261
297
|
|
|
262
298
|
[StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
|
|
263
299
|
public string? log;
|
|
@@ -303,7 +339,7 @@
|
|
|
303
339
|
public class AvatarParam
|
|
304
340
|
{
|
|
305
341
|
[NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
|
|
306
|
-
public
|
|
342
|
+
public int type;
|
|
307
343
|
|
|
308
344
|
[StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
|
|
309
345
|
public string value;
|
|
@@ -341,6 +377,9 @@
|
|
|
341
377
|
[BooleanDataMember(code = GNParameterCode.StoreItems, isOptional = true, defaultValue = false)]
|
|
342
378
|
public bool? storeItems;
|
|
343
379
|
|
|
380
|
+
[BooleanDataMember(code = GNParameterCode.StoreItemType, isOptional = true, defaultValue = false)]
|
|
381
|
+
public bool? storeItemType;
|
|
382
|
+
|
|
344
383
|
[BooleanDataMember(code = GNParameterCode.StoreCurrencies, isOptional = true, defaultValue = false)]
|
|
345
384
|
public bool? storeCurrencies;
|
|
346
385
|
|
|
@@ -464,6 +503,9 @@
|
|
|
464
503
|
[GNArrayDataMember(code = GNParameterCode.StoreItems, isOptional = true, elementCls = typeof(StoreInventoryItem))]
|
|
465
504
|
public List<StoreInventoryItem>? storeItems;
|
|
466
505
|
|
|
506
|
+
[BooleanDataMember(code = GNParameterCode.StoreItemType, isOptional = true, defaultValue = false)]
|
|
507
|
+
public bool? storeItemType;
|
|
508
|
+
|
|
467
509
|
[GNArrayDataMember(code = GNParameterCode.StoreCurrencies, isOptional = true, elementCls = typeof(PriceCurrencyItem))]
|
|
468
510
|
public List<PriceCurrencyItem>? storeCurrencies;
|
|
469
511
|
|
|
@@ -655,6 +697,26 @@
|
|
|
655
697
|
|
|
656
698
|
}
|
|
657
699
|
|
|
700
|
+
public class StoreUsedResponseData
|
|
701
|
+
{
|
|
702
|
+
[StringDataMember(code = GNParameterCode.OwnerId)]
|
|
703
|
+
public string id;
|
|
704
|
+
|
|
705
|
+
[NumberDataMember(code = GNParameterCode.OwnerType)]
|
|
706
|
+
public int type;
|
|
707
|
+
|
|
708
|
+
[NumberDataMember(code = GNParameterCode.TsCreate)]
|
|
709
|
+
public long tsCreate;
|
|
710
|
+
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
public class GetStoreUsedResponseData
|
|
714
|
+
{
|
|
715
|
+
[GNArrayDataMember(code = GNParameterCode.Results, elementCls = typeof(StoreUsedResponseData))]
|
|
716
|
+
public List<StoreUsedResponseData> results;
|
|
717
|
+
|
|
718
|
+
}
|
|
719
|
+
|
|
658
720
|
public class EmptyResponseData
|
|
659
721
|
{
|
|
660
722
|
|
|
@@ -301,6 +301,54 @@
|
|
|
301
301
|
public AdminGetStoreLogOperationRequest(StoreInventoryModels.AdminGetStoreLogRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
public class GetStoreUsedOperationRequest : CustomOperationRequest<StoreInventoryModels.GetStoreUsedRequestData>
|
|
305
|
+
{
|
|
306
|
+
protected override int operationCode => OperationCode.GetStoreUsed;
|
|
307
|
+
protected override bool operationEncrypted => true;
|
|
308
|
+
protected override RequestType requestType => RequestType.StoreInventory;
|
|
309
|
+
protected override RequestRole requestRole => RequestRole.Client;
|
|
310
|
+
|
|
311
|
+
public GetStoreUsedOperationRequest(StoreInventoryModels.GetStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
public class ServerGetStoreUsedOperationRequest : GetStoreUsedOperationRequest
|
|
315
|
+
{
|
|
316
|
+
protected override RequestRole requestRole => RequestRole.Server;
|
|
317
|
+
|
|
318
|
+
public ServerGetStoreUsedOperationRequest(StoreInventoryModels.ServerGetStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
public class AdminGetStoreUsedOperationRequest : GetStoreUsedOperationRequest
|
|
322
|
+
{
|
|
323
|
+
protected override RequestRole requestRole => RequestRole.Admin;
|
|
324
|
+
|
|
325
|
+
public AdminGetStoreUsedOperationRequest(StoreInventoryModels.AdminGetStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
public class RemoveStoreUsedOperationRequest : CustomOperationRequest<StoreInventoryModels.RemoveStoreUsedRequestData>
|
|
329
|
+
{
|
|
330
|
+
protected override int operationCode => OperationCode.RemoveStoreUsed;
|
|
331
|
+
protected override bool operationEncrypted => true;
|
|
332
|
+
protected override RequestType requestType => RequestType.StoreInventory;
|
|
333
|
+
protected override RequestRole requestRole => RequestRole.Client;
|
|
334
|
+
|
|
335
|
+
public RemoveStoreUsedOperationRequest(StoreInventoryModels.RemoveStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
public class ServerRemoveStoreUsedOperationRequest : RemoveStoreUsedOperationRequest
|
|
339
|
+
{
|
|
340
|
+
protected override RequestRole requestRole => RequestRole.Server;
|
|
341
|
+
|
|
342
|
+
public ServerRemoveStoreUsedOperationRequest(StoreInventoryModels.ServerRemoveStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
public class AdminRemoveStoreUsedOperationRequest : RemoveStoreUsedOperationRequest
|
|
346
|
+
{
|
|
347
|
+
protected override RequestRole requestRole => RequestRole.Admin;
|
|
348
|
+
|
|
349
|
+
public AdminRemoveStoreUsedOperationRequest(StoreInventoryModels.AdminRemoveStoreUsedRequestData requestData, int timeout = OperationRequest.defaultTimeOut) : base(requestData, timeout) { }
|
|
350
|
+
}
|
|
351
|
+
|
|
304
352
|
}
|
|
305
353
|
|
|
306
354
|
}
|
|
@@ -64,6 +64,16 @@
|
|
|
64
64
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
public class GetStoreUsedOperationResponse : CustomOperationResponse<StoreInventoryModels.GetStoreUsedResponseData>
|
|
68
|
+
{
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public class RemoveStoreUsedOperationResponse : CustomOperationResponse<StoreInventoryModels.EmptyResponseData>
|
|
73
|
+
{
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
67
77
|
}
|
|
68
78
|
|
|
69
79
|
}
|
package/Runtime/GNNetwork.cs
CHANGED
package/Runtime/GNNetworkApi.cs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
using System;
|
|
4
4
|
using System.Threading.Tasks;
|
|
5
5
|
using XmobiTea.GN.Entity.Response;
|
|
6
|
+
using XmobiTea.GN.Networking;
|
|
6
7
|
|
|
7
8
|
public static partial class GNNetwork
|
|
8
9
|
{
|
|
@@ -67,5 +68,39 @@
|
|
|
67
68
|
return taskCompletionSource.Task;
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
/// <summary>
|
|
72
|
+
/// Upload file to server
|
|
73
|
+
/// </summary>
|
|
74
|
+
/// <param name="fileId">the file id</param>
|
|
75
|
+
/// <param name="content">content byte of this file</param>
|
|
76
|
+
/// <param name="filename">the full file name</param>
|
|
77
|
+
/// <param name="mimetype">the mimetype of file</param>
|
|
78
|
+
/// <param name="onResponse">response</param>
|
|
79
|
+
public static void uploadFile(string fileId, byte[] content, string filename, string mimetype, Action<UploadFileResponse> onResponse)
|
|
80
|
+
{
|
|
81
|
+
GNNetwork.peer.uploadFile(fileId, content, filename, mimetype, onResponse);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public static Task<UploadFileResponse> uploadFileAsync(string fileId, byte[] content, string filename, string mimetype)
|
|
85
|
+
{
|
|
86
|
+
// Create a TaskCompletionSource to manage the asynchronous operation.
|
|
87
|
+
var taskCompletionSource = new TaskCompletionSource<UploadFileResponse>();
|
|
88
|
+
|
|
89
|
+
// Call the syncTs method and use the callback to set the Task result.
|
|
90
|
+
GNNetwork.uploadFile(fileId, content, filename, mimetype, response =>
|
|
91
|
+
{
|
|
92
|
+
// Set the result of the Task once the callback is invoked.
|
|
93
|
+
taskCompletionSource.SetResult(response);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Return the Task to the caller, allowing them to await the result.
|
|
97
|
+
return taskCompletionSource.Task;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public static string getDownloadFileUrl(string downloadToken)
|
|
101
|
+
{
|
|
102
|
+
return GNNetwork.gnServerSettings.getHttpUrl() + "/" + NetworkingPeer.DOWNLOAD_FILE + "/" + downloadToken;
|
|
103
|
+
}
|
|
104
|
+
|
|
70
105
|
}
|
|
71
106
|
}
|
|
@@ -512,6 +512,16 @@
|
|
|
512
512
|
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.GetCreateLeaderboardOperationRequest, CharacterPlayerResponseModels.GetCreateLeaderboardOperationResponse>(new CharacterPlayerRequestModels.GetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
+
public void getLastLoginLeaderboard(CharacterPlayerModels.GetLastLoginLeaderboardRequestData requestData, Action<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
516
|
+
{
|
|
517
|
+
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.GetLastLoginLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
public Task<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> getLastLoginLeaderboardAsync(CharacterPlayerModels.GetLastLoginLeaderboardRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
521
|
+
{
|
|
522
|
+
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.GetLastLoginLeaderboardOperationRequest, CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse>(new CharacterPlayerRequestModels.GetLastLoginLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
523
|
+
}
|
|
524
|
+
|
|
515
525
|
public void getStatisticsLog(CharacterPlayerModels.GetStatisticsLogRequestData requestData, Action<CharacterPlayerResponseModels.GetStatisticsLogOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
516
526
|
{
|
|
517
527
|
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.GetStatisticsLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
@@ -1034,6 +1044,16 @@
|
|
|
1034
1044
|
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.ServerGetCreateLeaderboardOperationRequest, CharacterPlayerResponseModels.GetCreateLeaderboardOperationResponse>(new CharacterPlayerRequestModels.ServerGetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
1035
1045
|
}
|
|
1036
1046
|
|
|
1047
|
+
public void getLastLoginLeaderboard(CharacterPlayerModels.ServerGetLastLoginLeaderboardRequestData requestData, Action<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1048
|
+
{
|
|
1049
|
+
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.ServerGetLastLoginLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
public Task<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> getLastLoginLeaderboardAsync(CharacterPlayerModels.ServerGetLastLoginLeaderboardRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1053
|
+
{
|
|
1054
|
+
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.ServerGetLastLoginLeaderboardOperationRequest, CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse>(new CharacterPlayerRequestModels.ServerGetLastLoginLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1037
1057
|
public void getStatisticsLog(CharacterPlayerModels.ServerGetStatisticsLogRequestData requestData, Action<CharacterPlayerResponseModels.GetStatisticsLogOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1038
1058
|
{
|
|
1039
1059
|
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.ServerGetStatisticsLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
@@ -1558,6 +1578,16 @@
|
|
|
1558
1578
|
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.AdminGetCreateLeaderboardOperationRequest, CharacterPlayerResponseModels.GetCreateLeaderboardOperationResponse>(new CharacterPlayerRequestModels.AdminGetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
1559
1579
|
}
|
|
1560
1580
|
|
|
1581
|
+
public void getLastLoginLeaderboard(CharacterPlayerModels.AdminGetLastLoginLeaderboardRequestData requestData, Action<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1582
|
+
{
|
|
1583
|
+
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.AdminGetLastLoginLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
public Task<CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse> getLastLoginLeaderboardAsync(CharacterPlayerModels.AdminGetLastLoginLeaderboardRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1587
|
+
{
|
|
1588
|
+
return GNNetwork.sendViaHttpAsync<CharacterPlayerRequestModels.AdminGetLastLoginLeaderboardOperationRequest, CharacterPlayerResponseModels.GetLastLoginLeaderboardOperationResponse>(new CharacterPlayerRequestModels.AdminGetLastLoginLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1561
1591
|
public void getStatisticsLog(CharacterPlayerModels.AdminGetStatisticsLogRequestData requestData, Action<CharacterPlayerResponseModels.GetStatisticsLogOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
1562
1592
|
{
|
|
1563
1593
|
GNNetwork.sendViaHttp(new CharacterPlayerRequestModels.AdminGetStatisticsLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
@@ -132,6 +132,25 @@ namespace XmobiTea.GN
|
|
|
132
132
|
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.GetStoreLogOperationRequest, StoreInventoryResponseModels.GetStoreLogOperationResponse>(new StoreInventoryRequestModels.GetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
public void getStoreUsed(StoreInventoryModels.GetStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.GetStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
136
|
+
{
|
|
137
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.GetStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
public Task<StoreInventoryResponseModels.GetStoreUsedOperationResponse> getStoreUsedAsync(StoreInventoryModels.GetStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
141
|
+
{
|
|
142
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.GetStoreUsedOperationRequest, StoreInventoryResponseModels.GetStoreUsedOperationResponse>(new StoreInventoryRequestModels.GetStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
public void removeStoreUsed(StoreInventoryModels.RemoveStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
146
|
+
{
|
|
147
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.RemoveStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
public Task<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> removeStoreUsedAsync(StoreInventoryModels.RemoveStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
151
|
+
{
|
|
152
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.RemoveStoreUsedOperationRequest, StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>(new StoreInventoryRequestModels.RemoveStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
153
|
+
}
|
|
135
154
|
|
|
136
155
|
public class ServerApi
|
|
137
156
|
{
|
|
@@ -255,6 +274,26 @@ namespace XmobiTea.GN
|
|
|
255
274
|
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.ServerGetStoreLogOperationRequest, StoreInventoryResponseModels.GetStoreLogOperationResponse>(new StoreInventoryRequestModels.ServerGetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
256
275
|
}
|
|
257
276
|
|
|
277
|
+
public void getStoreUsed(StoreInventoryModels.ServerGetStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.GetStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
278
|
+
{
|
|
279
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.ServerGetStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
public Task<StoreInventoryResponseModels.GetStoreUsedOperationResponse> getStoreUsedAsync(StoreInventoryModels.ServerGetStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
283
|
+
{
|
|
284
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.ServerGetStoreUsedOperationRequest, StoreInventoryResponseModels.GetStoreUsedOperationResponse>(new StoreInventoryRequestModels.ServerGetStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
public void removeStoreUsed(StoreInventoryModels.ServerRemoveStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
288
|
+
{
|
|
289
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.ServerRemoveStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
public Task<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> removeStoreUsedAsync(StoreInventoryModels.ServerRemoveStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
293
|
+
{
|
|
294
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.ServerRemoveStoreUsedOperationRequest, StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>(new StoreInventoryRequestModels.ServerRemoveStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
295
|
+
}
|
|
296
|
+
|
|
258
297
|
}
|
|
259
298
|
|
|
260
299
|
public class AdminApi
|
|
@@ -379,6 +418,26 @@ namespace XmobiTea.GN
|
|
|
379
418
|
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.AdminGetStoreLogOperationRequest, StoreInventoryResponseModels.GetStoreLogOperationResponse>(new StoreInventoryRequestModels.AdminGetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
380
419
|
}
|
|
381
420
|
|
|
421
|
+
public void getStoreUsed(StoreInventoryModels.AdminGetStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.GetStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
422
|
+
{
|
|
423
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.AdminGetStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
public Task<StoreInventoryResponseModels.GetStoreUsedOperationResponse> getStoreUsedAsync(StoreInventoryModels.AdminGetStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
427
|
+
{
|
|
428
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.AdminGetStoreUsedOperationRequest, StoreInventoryResponseModels.GetStoreUsedOperationResponse>(new StoreInventoryRequestModels.AdminGetStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
public void removeStoreUsed(StoreInventoryModels.AdminRemoveStoreUsedRequestData requestData, Action<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> onResponse = null, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
432
|
+
{
|
|
433
|
+
GNNetwork.sendViaHttp(new StoreInventoryRequestModels.AdminRemoveStoreUsedOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
public Task<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse> removeStoreUsedAsync(StoreInventoryModels.AdminRemoveStoreUsedRequestData requestData, string overrideAuthToken = null, string overrideSecretKey = null, GNHashtable customTags = null, int timeout = OperationRequest.defaultTimeOut)
|
|
437
|
+
{
|
|
438
|
+
return GNNetwork.sendViaHttpAsync<StoreInventoryRequestModels.AdminRemoveStoreUsedOperationRequest, StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>(new StoreInventoryRequestModels.AdminRemoveStoreUsedOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags);
|
|
439
|
+
}
|
|
440
|
+
|
|
382
441
|
}
|
|
383
442
|
|
|
384
443
|
}
|