Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240202
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Feb 5, 2024
2 parents f6fb85c + 33617e8 commit dcf3878
Show file tree
Hide file tree
Showing 28 changed files with 478 additions and 23 deletions.
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.210.240119.jar -Destination ../../builds/client-sdk-0.210.240119.jar
Copy-Item client-sdk-0.211.240202.jar -Destination ../../builds/client-sdk-0.211.240202.jar
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.210.240119.jar ../../builds/client-sdk-0.210.240119.jar
cp client-sdk-0.211.240202.jar ../../builds/client-sdk-0.211.240202.jar
Original file line number Diff line number Diff line change
Expand Up @@ -3560,6 +3560,68 @@ private static PlayFabResult<GetPlayFabIDsFromPSNAccountIDsResult> privateGetPla
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return Async Task will return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> GetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> GetPlayFabIDsFromPSNOnlineIDs(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> exceptionResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
return exceptionResult;
}
}

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
@SuppressWarnings("unchecked")
private static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> privateGetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetPlayFabIDsFromPSNOnlineIDs"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
task.run();
Object httpResult = task.get();
if (httpResult instanceof PlayFabError) {
PlayFabError error = (PlayFabError)httpResult;
if (PlayFabSettings.GlobalErrorHandler != null)
PlayFabSettings.GlobalErrorHandler.callback(error);
PlayFabResult result = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult>>(){}.getType());
GetPlayFabIDsFromPSNOnlineIDsResult result = resultData.data;

PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> pfResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
pfResult.Result = result;
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
* IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,24 @@ public static class GetPlayFabIDsFromPSNAccountIDsResult {

}

public static class GetPlayFabIDsFromPSNOnlineIDsRequest {
/** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */
public Integer IssuerId;
/**
* Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array
* cannot exceed 2,000 in length.
*/
public ArrayList<String> PSNOnlineIDs;

}

/** For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. */
public static class GetPlayFabIDsFromPSNOnlineIDsResult {
/** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */
public ArrayList<PSNOnlinePlayFabIdPair> Data;

}

public static class GetPlayFabIDsFromSteamIDsRequest {
/**
* Array of unique Steam identifiers (Steam profile IDs) for which the title needs to get PlayFab identifiers. The array
Expand Down Expand Up @@ -3622,6 +3640,17 @@ public static class PSNAccountPlayFabIdPair {

}

public static class PSNOnlinePlayFabIdPair {
/**
* Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network
* identifier.
*/
public String PlayFabId;
/** Unique PlayStation :tm: Network identifier for a user. */
public String PSNOnlineId;

}

/**
* Please note that the processing time for inventory grants and purchases increases fractionally the more items are in the
* inventory, and the more items are in the grant/purchase operation (with each item in a bundle being a distinct add).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.210.240119";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.210.240119";
public static String SdkVersion = "0.211.240202";
public static String BuildIdentifier = "adobuild_javasdk_118";
public static String SdkVersionString = "JavaSDK-0.211.240202";

public static Map<String, String> RequestGetParams;
static {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.210.240119.jar -Destination ../../builds/client-sdk-0.210.240119.jar
Copy-Item client-sdk-0.211.240202.jar -Destination ../../builds/client-sdk-0.211.240202.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.210.240119.jar ../../builds/client-sdk-0.210.240119.jar
cp client-sdk-0.211.240202.jar ../../builds/client-sdk-0.211.240202.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>client-sdk</artifactId>
<version>0.210.240119</version>
<version>0.211.240202</version>
<name>PlayFab Client API</name>
<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>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
62 changes: 62 additions & 0 deletions PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -3560,6 +3560,68 @@ private static PlayFabResult<GetPlayFabIDsFromPSNAccountIDsResult> privateGetPla
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return Async Task will return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> GetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> GetPlayFabIDsFromPSNOnlineIDs(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> exceptionResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
return exceptionResult;
}
}

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
@SuppressWarnings("unchecked")
private static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> privateGetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetPlayFabIDsFromPSNOnlineIDs"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
task.run();
Object httpResult = task.get();
if (httpResult instanceof PlayFabError) {
PlayFabError error = (PlayFabError)httpResult;
if (PlayFabSettings.GlobalErrorHandler != null)
PlayFabSettings.GlobalErrorHandler.callback(error);
PlayFabResult result = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult>>(){}.getType());
GetPlayFabIDsFromPSNOnlineIDsResult result = resultData.data;

PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> pfResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
pfResult.Result = result;
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
* IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,24 @@ public static class GetPlayFabIDsFromPSNAccountIDsResult {

}

public static class GetPlayFabIDsFromPSNOnlineIDsRequest {
/** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */
public Integer IssuerId;
/**
* Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array
* cannot exceed 2,000 in length.
*/
public ArrayList<String> PSNOnlineIDs;

}

/** For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. */
public static class GetPlayFabIDsFromPSNOnlineIDsResult {
/** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */
public ArrayList<PSNOnlinePlayFabIdPair> Data;

}

public static class GetPlayFabIDsFromSteamIDsRequest {
/**
* Array of unique Steam identifiers (Steam profile IDs) for which the title needs to get PlayFab identifiers. The array
Expand Down Expand Up @@ -3622,6 +3640,17 @@ public static class PSNAccountPlayFabIdPair {

}

public static class PSNOnlinePlayFabIdPair {
/**
* Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network
* identifier.
*/
public String PlayFabId;
/** Unique PlayStation :tm: Network identifier for a user. */
public String PSNOnlineId;

}

/**
* Please note that the processing time for inventory grants and purchases increases fractionally the more items are in the
* inventory, and the more items are in the grant/purchase operation (with each item in a bundle being a distinct add).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.210.240119";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.210.240119";
public static String SdkVersion = "0.211.240202";
public static String BuildIdentifier = "adobuild_javasdk_118";
public static String SdkVersionString = "JavaSDK-0.211.240202";

public static Map<String, String> RequestGetParams;
static {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item combo-sdk-0.210.240119.jar -Destination ../../builds/combo-sdk-0.210.240119.jar
Copy-Item combo-sdk-0.211.240202.jar -Destination ../../builds/combo-sdk-0.211.240202.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp combo-sdk-0.210.240119.jar ../../builds/combo-sdk-0.210.240119.jar
cp combo-sdk-0.211.240202.jar ../../builds/combo-sdk-0.211.240202.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>combo-sdk</artifactId>
<version>0.210.240119</version>
<version>0.211.240202</version>
<name>PlayFab Combo API</name>
<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>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
62 changes: 62 additions & 0 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -3560,6 +3560,68 @@ private static PlayFabResult<GetPlayFabIDsFromPSNAccountIDsResult> privateGetPla
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return Async Task will return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> GetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
}

/**
* Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
* @param request GetPlayFabIDsFromPSNOnlineIDsRequest
* @return GetPlayFabIDsFromPSNOnlineIDsResult
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> GetPlayFabIDsFromPSNOnlineIDs(final GetPlayFabIDsFromPSNOnlineIDsRequest request) {
FutureTask<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromPSNOnlineIDsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> exceptionResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
return exceptionResult;
}
}

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
@SuppressWarnings("unchecked")
private static PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> privateGetPlayFabIDsFromPSNOnlineIDsAsync(final GetPlayFabIDsFromPSNOnlineIDsRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetPlayFabIDsFromPSNOnlineIDs"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
task.run();
Object httpResult = task.get();
if (httpResult instanceof PlayFabError) {
PlayFabError error = (PlayFabError)httpResult;
if (PlayFabSettings.GlobalErrorHandler != null)
PlayFabSettings.GlobalErrorHandler.callback(error);
PlayFabResult result = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetPlayFabIDsFromPSNOnlineIDsResult>>(){}.getType());
GetPlayFabIDsFromPSNOnlineIDsResult result = resultData.data;

PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult> pfResult = new PlayFabResult<GetPlayFabIDsFromPSNOnlineIDsResult>();
pfResult.Result = result;
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
* IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
Expand Down
Loading

0 comments on commit dcf3878

Please sign in to comment.