@@ -1277,6 +1277,32 @@ public static void GetOtherPlayerInfo(string playerIdentifier, string platform,
1277
1277
}
1278
1278
1279
1279
1280
+ /// <summary>
1281
+ /// Get the players inventory.
1282
+ /// </summary>
1283
+ /// <param name="count">Amount of assets to retrieve</param>
1284
+ /// <param name="after">The instance ID the list should start from</param>
1285
+ /// <param name="onComplete">onComplete Action for handling the response of type LootLockerInventoryResponse</param>
1286
+ public static void GetInventory ( int count , int after , Action < LootLockerInventoryResponse > onComplete )
1287
+ {
1288
+ if ( ! CheckInitialized ( ) )
1289
+ {
1290
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerInventoryResponse > ( ) ) ;
1291
+ return ;
1292
+ }
1293
+
1294
+ var endpoint = LootLockerEndPoints . getInventory . endPoint ;
1295
+
1296
+ endpoint += "?" ;
1297
+ if ( count > 0 )
1298
+ endpoint += $ "count={ count } &";
1299
+ if ( after > 0 )
1300
+ endpoint += $ "after={ after } &";
1301
+
1302
+
1303
+ LootLockerServerRequest . CallAPI ( endpoint , LootLockerHTTPMethod . GET , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
1304
+ }
1305
+
1280
1306
/// <summary>
1281
1307
/// Get the players inventory.
1282
1308
/// </summary>
@@ -1288,7 +1314,25 @@ public static void GetInventory(Action<LootLockerInventoryResponse> onComplete)
1288
1314
onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerInventoryResponse > ( ) ) ;
1289
1315
return ;
1290
1316
}
1291
- LootLockerAPIManager . GetInventory ( onComplete ) ;
1317
+ GetInventory ( - 1 , - 1 , onComplete ) ;
1318
+ }
1319
+
1320
+ /// <summary>
1321
+ /// Get the players inventory.
1322
+ /// </summary>
1323
+ /// <param name="count">Amount of assets to retrieve</param>
1324
+ /// <param name="onComplete">onComplete Action for handling the response of type LootLockerInventoryResponse</param>
1325
+ public static void GetInventory ( int count , Action < LootLockerInventoryResponse > onComplete )
1326
+ {
1327
+ if ( ! CheckInitialized ( ) )
1328
+ {
1329
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerInventoryResponse > ( ) ) ;
1330
+ return ;
1331
+ }
1332
+
1333
+
1334
+ GetInventory ( count , - 1 , onComplete ) ;
1335
+
1292
1336
}
1293
1337
1294
1338
/// <summary>
0 commit comments