@@ -40,6 +40,40 @@ public LookupPlayerNamesRequest()
40
40
xbox_ids = new string [ ] { } ;
41
41
}
42
42
}
43
+
44
+ public class LookupPlayer1stPartyPlatformIDsRequest
45
+ {
46
+ public ulong [ ] player_ids { get ; set ; }
47
+ public string [ ] player_public_uids { get ; set ; }
48
+
49
+ public LookupPlayer1stPartyPlatformIDsRequest ( )
50
+ {
51
+ player_ids = new ulong [ ] { } ;
52
+ player_public_uids = new string [ ] { } ;
53
+ }
54
+ }
55
+
56
+ [ System . Serializable ]
57
+ public class Player1stPartyPlatformIDsLookupResponse : LootLockerResponse
58
+ {
59
+ public PlayerWith1stPartyPlatformIDs [ ] players { get ; set ; }
60
+ }
61
+
62
+ public class PlayerWith1stPartyPlatformIDs
63
+ {
64
+ public uint player_id { get ; set ; }
65
+ public string player_public_uid { get ; set ; }
66
+ public string name { get ; set ; }
67
+ public string last_active_platform { get ; set ; }
68
+ public PlatformIDs platform_ids { get ; set ; }
69
+ }
70
+
71
+ public class PlatformIDs
72
+ {
73
+ public ulong ? steam_id { get ; set ; }
74
+ public string xbox_id { get ; set ; }
75
+ public ulong ? psn_id { get ; set ; }
76
+ }
43
77
44
78
[ System . Serializable ]
45
79
public class PlayerNameLookupResponse : LootLockerResponse
@@ -340,6 +374,25 @@ public static void LookupPlayerNames(LookupPlayerNamesRequest lookupPlayerNamesR
340
374
341
375
LootLockerServerRequest . CallAPI ( getVariable , endPoint . httpMethod , null , onComplete : ( serverResponse ) => { LootLockerResponse . Serialize ( onComplete , serverResponse ) ; } ) ;
342
376
}
377
+
378
+ public static void LookupPlayer1stPartyPlatformIDs ( LookupPlayer1stPartyPlatformIDsRequest lookupPlayer1stPartyPlatformIDsRequest , Action < Player1stPartyPlatformIDsLookupResponse > onComplete )
379
+ {
380
+ var endPoint = LootLockerEndPoints . lookupPlayer1stPartyPlatformIDs ;
381
+
382
+ var getVariable = endPoint . endPoint + "?" ;
383
+
384
+ foreach ( var playerID in lookupPlayer1stPartyPlatformIDsRequest . player_ids )
385
+ {
386
+ getVariable += $ "player_id={ playerID } &";
387
+ }
388
+
389
+ foreach ( var playerPublicUID in lookupPlayer1stPartyPlatformIDsRequest . player_public_uids )
390
+ {
391
+ getVariable += $ "player_public_uid={ playerPublicUID } &";
392
+ }
393
+
394
+ LootLockerServerRequest . CallAPI ( getVariable , endPoint . httpMethod , null , onComplete : ( serverResponse ) => { LootLockerResponse . Serialize ( onComplete , serverResponse ) ; } ) ;
395
+ }
343
396
344
397
public static void SetPlayerName ( PlayerNameRequest data , Action < PlayerNameResponse > onComplete )
345
398
{
0 commit comments