Skip to content

Commit c49cff0

Browse files
PlayFab SDK TeamPlayFab SDK Team
authored andcommitted
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#251205
2 parents ba082d0 + 1bcf093 commit c49cff0

40 files changed

Lines changed: 1041 additions & 75 deletions

AndroidStudioExample/app/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.249.251121.jar -Destination ../../builds/client-sdk-0.249.251121.jar
8+
Copy-Item client-sdk-0.250.251205.jar -Destination ../../builds/client-sdk-0.250.251205.jar

AndroidStudioExample/app/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.249.251121.jar ../../builds/client-sdk-0.249.251121.jar
10+
cp client-sdk-0.250.251205.jar ../../builds/client-sdk-0.250.251205.jar

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3684,6 +3684,76 @@ private static PlayFabResult<GetPlayFabIDsFromNintendoSwitchDeviceIdsResult> pri
36843684
return pfResult;
36853685
}
36863686

3687+
/**
3688+
* Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3689+
* service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3690+
* to the player account.
3691+
* @param request GetPlayFabIDsFromOpenIdsRequest
3692+
* @return Async Task will return GetPlayFabIDsFromOpenIdsResult
3693+
*/
3694+
@SuppressWarnings("unchecked")
3695+
public static FutureTask<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>> GetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(final GetPlayFabIDsFromOpenIdsRequest request) {
3696+
return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>>() {
3697+
public PlayFabResult<GetPlayFabIDsFromOpenIdsResult> call() throws Exception {
3698+
return privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(request);
3699+
}
3700+
});
3701+
}
3702+
3703+
/**
3704+
* Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3705+
* service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3706+
* to the player account.
3707+
* @param request GetPlayFabIDsFromOpenIdsRequest
3708+
* @return GetPlayFabIDsFromOpenIdsResult
3709+
*/
3710+
@SuppressWarnings("unchecked")
3711+
public static PlayFabResult<GetPlayFabIDsFromOpenIdsResult> GetPlayFabIDsFromOpenIdSubjectIdentifiers(final GetPlayFabIDsFromOpenIdsRequest request) {
3712+
FutureTask<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>>() {
3713+
public PlayFabResult<GetPlayFabIDsFromOpenIdsResult> call() throws Exception {
3714+
return privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(request);
3715+
}
3716+
});
3717+
try {
3718+
task.run();
3719+
return task.get();
3720+
} catch(Exception e) {
3721+
PlayFabResult<GetPlayFabIDsFromOpenIdsResult> exceptionResult = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3722+
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
3723+
return exceptionResult;
3724+
}
3725+
}
3726+
3727+
/**
3728+
* Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3729+
* service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3730+
* to the player account.
3731+
*/
3732+
@SuppressWarnings("unchecked")
3733+
private static PlayFabResult<GetPlayFabIDsFromOpenIdsResult> privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(final GetPlayFabIDsFromOpenIdsRequest request) throws Exception {
3734+
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
3735+
3736+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetPlayFabIDsFromOpenIdSubjectIdentifiers"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
3737+
task.run();
3738+
Object httpResult = task.get();
3739+
if (httpResult instanceof PlayFabError) {
3740+
PlayFabError error = (PlayFabError)httpResult;
3741+
if (PlayFabSettings.GlobalErrorHandler != null)
3742+
PlayFabSettings.GlobalErrorHandler.callback(error);
3743+
PlayFabResult result = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3744+
result.Error = error;
3745+
return result;
3746+
}
3747+
String resultRawJson = (String) httpResult;
3748+
3749+
PlayFabJsonSuccess<GetPlayFabIDsFromOpenIdsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetPlayFabIDsFromOpenIdsResult>>(){}.getType());
3750+
GetPlayFabIDsFromOpenIdsResult result = resultData.data;
3751+
3752+
PlayFabResult<GetPlayFabIDsFromOpenIdsResult> pfResult = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3753+
pfResult.Result = result;
3754+
return pfResult;
3755+
}
3756+
36873757
/**
36883758
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
36893759
* @param request GetPlayFabIDsFromPSNAccountIDsRequest

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,22 @@ public static class GetPlayFabIDsFromNintendoSwitchDeviceIdsResult {
19981998

19991999
}
20002000

2001+
public static class GetPlayFabIDsFromOpenIdsRequest {
2002+
/**
2003+
* Array of unique OpenId Connect identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed
2004+
* 10 in length.
2005+
*/
2006+
public ArrayList<OpenIdSubjectIdentifier> OpenIdSubjectIdentifiers;
2007+
2008+
}
2009+
2010+
/** For OpenId identifiers which have not been linked to PlayFab accounts, null will be returned. */
2011+
public static class GetPlayFabIDsFromOpenIdsResult {
2012+
/** Mapping of OpenId Connect identifiers to PlayFab identifiers. */
2013+
public ArrayList<OpenIdSubjectIdentifierPlayFabIdPair> Data;
2014+
2015+
}
2016+
20012017
public static class GetPlayFabIDsFromPSNAccountIDsRequest {
20022018
/** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */
20032019
public Integer IssuerId;
@@ -3582,6 +3598,22 @@ public static class NintendoSwitchPlayFabIdPair {
35823598

35833599
}
35843600

3601+
public static class OpenIdSubjectIdentifier {
3602+
/** The issuer URL for the OpenId Connect provider, or the override URL if an override exists. */
3603+
public String Issuer;
3604+
/** The unique subject identifier within the context of the issuer. */
3605+
public String Subject;
3606+
3607+
}
3608+
3609+
public static class OpenIdSubjectIdentifierPlayFabIdPair {
3610+
/** Unique OpenId Connect identifier for a user. */
3611+
public OpenIdSubjectIdentifier OpenIdSubjectIdentifier;
3612+
/** Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the OpenId Connect identifier. */
3613+
public String PlayFabId;
3614+
3615+
}
3616+
35853617
public static class OpenTradeRequest {
35863618
/**
35873619
* Players who are allowed to accept the trade. If null, the trade may be accepted by any player. If empty, the trade may

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ public static enum PlayFabErrorCode {
948948
UnsupportedEntityType(23011),
949949
EntityTypeSpecifiedRequiresAggregationSource(23012),
950950
PlayFabErrorEventNotSupportedForEntityType(23013),
951+
MetadataLengthExceeded(23014),
951952
StoreMetricsRequestInvalidInput(23501),
952953
StoreMetricsErrorRetrievingMetrics(23502);
953954

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabProgressionModels.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,7 @@ public static class LeaderboardEntityRankOnVersionEndConfig {
427427
public static class LeaderboardEntryUpdate {
428428
/** The unique Id for the entry. If using PlayFab Entities, this would be the entityId of the entity. */
429429
public String EntityId;
430-
/**
431-
* Arbitrary metadata to store along side the leaderboard entry, will be returned by all Leaderboard APIs. Must be less
432-
* than 50 UTF8 encoded characters.
433-
*/
430+
/** Arbitrary metadata to store along side the leaderboard entry, will be returned by all Leaderboard APIs. */
434431
public String Metadata;
435432
/**
436433
* The scores for the leaderboard. The number of values provided here must match the number of columns in the Leaderboard
@@ -585,10 +582,7 @@ public static class StatisticsUpdateEventConfig {
585582
}
586583

587584
public static class StatisticUpdate {
588-
/**
589-
* Arbitrary metadata to store along side the statistic, will be returned by all Leaderboard APIs. Must be less than 50
590-
* UTF8 encoded characters.
591-
*/
585+
/** Arbitrary metadata to store along side the statistic, will be returned by all Leaderboard APIs. */
592586
public String Metadata;
593587
/** Name of the statistic, as originally configured. */
594588
public String Name;

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import com.playfab.PlayFabErrors.ErrorCallback;
1010

1111
public class PlayFabSettings {
12-
public static String SdkVersion = "0.249.251121";
13-
public static String BuildIdentifier = "adobuild_javasdk_8";
14-
public static String SdkVersionString = "JavaSDK-0.249.251121";
12+
public static String SdkVersion = "0.250.251205";
13+
public static String BuildIdentifier = "adobuild_javasdk_116";
14+
public static String SdkVersionString = "JavaSDK-0.250.251205";
1515

1616
public static Map<String, String> RequestGetParams;
1717
static {

PlayFabClientSDK/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.249.251121.jar -Destination ../../builds/client-sdk-0.249.251121.jar
8+
Copy-Item client-sdk-0.250.251205.jar -Destination ../../builds/client-sdk-0.250.251205.jar

PlayFabClientSDK/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.249.251121.jar ../../builds/client-sdk-0.249.251121.jar
10+
cp client-sdk-0.250.251205.jar ../../builds/client-sdk-0.250.251205.jar

PlayFabClientSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- GAV & Meta -->
1515
<groupId>com.playfab</groupId>
1616
<artifactId>client-sdk</artifactId>
17-
<version>0.249.251121</version>
17+
<version>0.250.251205</version>
1818
<name>PlayFab Client API</name>
1919
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
2020
<url>https://docs.microsoft.com/gaming/playfab/</url>

0 commit comments

Comments
 (0)