diff --git a/AndroidStudioExample/app/packageMe.ps1 b/AndroidStudioExample/app/packageMe.ps1 index cc7a7c568..3abbe294d 100644 --- a/AndroidStudioExample/app/packageMe.ps1 +++ b/AndroidStudioExample/app/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item client-sdk-0.128.210315.jar -Destination ../../builds/client-sdk-0.128.210315.jar \ No newline at end of file +Copy-Item client-sdk-0.129.210406.jar -Destination ../../builds/client-sdk-0.129.210406.jar \ No newline at end of file diff --git a/AndroidStudioExample/app/packageMe.sh b/AndroidStudioExample/app/packageMe.sh index a879a06b5..e0aafd5d6 100644 --- a/AndroidStudioExample/app/packageMe.sh +++ b/AndroidStudioExample/app/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp client-sdk-0.128.210315.jar ../../builds/client-sdk-0.128.210315.jar +cp client-sdk-0.129.210406.jar ../../builds/client-sdk-0.129.210406.jar diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java index 4afca5230..2d89ea9f6 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java @@ -5049,7 +5049,10 @@ private static PlayFabResult privateLinkFacebo } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return Async Task will return LinkGameCenterAccountResult */ @@ -5063,7 +5066,10 @@ public PlayFabResult call() throws Exception { } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return LinkGameCenterAccountResult */ @@ -5084,7 +5090,12 @@ public PlayFabResult call() throws Exception { } } - /** Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account */ + /** + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. + */ @SuppressWarnings("unchecked") private static PlayFabResult privateLinkGameCenterAccountAsync(final LinkGameCenterAccountRequest request) throws Exception { if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); @@ -6234,7 +6245,10 @@ private static PlayFabResult privateLoginWithFacebookInstantGamesId /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return Async Task will return LoginResult */ @@ -6249,7 +6263,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return LoginResult */ @@ -6272,7 +6289,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. */ @SuppressWarnings("unchecked") private static PlayFabResult privateLoginWithGameCenterAsync(final LoginWithGameCenterRequest request) throws Exception { diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java index cc524da7d..c657d70f5 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java @@ -493,7 +493,7 @@ public static enum PlayFabErrorCode { EvaluationModePlayerCountExceeded(1490), GetPlayersInSegmentRateLimitExceeded(1491), CloudScriptFunctionNameSizeExceeded(1492), - InsightsManagementTitleInEvaluationMode(1493), + PaidInsightsFeaturesNotEnabled(1493), CloudScriptAzureFunctionsQueueRequestError(1494), EvaluationModeTitleCountExceeded(1495), InsightsManagementTitleNotInFlight(1496), @@ -632,6 +632,7 @@ public static enum PlayFabErrorCode { CreateSegmentRateLimitExceeded(10008), UpdateSegmentRateLimitExceeded(10009), GetSegmentsRateLimitExceeded(10010), + AsyncExportNotInFlight(10011), SnapshotNotFound(11000), InventoryApiNotImplemented(12000); diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerAPI.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerAPI.java index 43d884648..77179bd21 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerAPI.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerAPI.java @@ -2447,13 +2447,13 @@ private static PlayFabResult privateListAssetSummari /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return Async Task will return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return Async Task will return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static FutureTask> ListBuildAliasesAsync(final MultiplayerEmptyRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static FutureTask> ListBuildAliasesAsync(final ListBuildAliasesRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2462,13 +2462,13 @@ public PlayFabResult call() throws Exception { /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static PlayFabResult ListBuildAliases(final MultiplayerEmptyRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static PlayFabResult ListBuildAliases(final ListBuildAliasesRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2476,7 +2476,7 @@ public PlayFabResult call() throws Exception { task.run(); return task.get(); } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); + PlayFabResult exceptionResult = new PlayFabResult(); exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null); return exceptionResult; } @@ -2487,7 +2487,7 @@ public PlayFabResult call() throws Exception { * game client to request list of builds with player entity token. */ @SuppressWarnings("unchecked") - private static PlayFabResult privateListBuildAliasesAsync(final MultiplayerEmptyRequest request) throws Exception { + private static PlayFabResult privateListBuildAliasesAsync(final ListBuildAliasesRequest request) throws Exception { if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API"); FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListBuildAliases"), request, "X-EntityToken", PlayFabSettings.EntityToken); @@ -2497,16 +2497,16 @@ private static PlayFabResult privateListBuildA PlayFabError error = (PlayFabError)httpResult; if (PlayFabSettings.GlobalErrorHandler != null) PlayFabSettings.GlobalErrorHandler.callback(error); - PlayFabResult result = new PlayFabResult(); + PlayFabResult result = new PlayFabResult(); result.Error = error; return result; } String resultRawJson = (String) httpResult; - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ListBuildAliasesForTitleResponse result = resultData.data; + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + ListBuildAliasesResponse result = resultData.data; - PlayFabResult pfResult = new PlayFabResult(); + PlayFabResult pfResult = new PlayFabResult(); pfResult.Result = result; return pfResult; } diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java index 01e5cc135..37880d193 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -136,10 +136,6 @@ public static class BuildAliasDetailsResponse { public String AliasName; /** Array of build selection criteria. */ public ArrayList BuildSelectionCriteria; - /** The page size on the response. */ - public Integer PageSize; - /** The skip token for the paged response. */ - public String SkipToken; } @@ -1166,6 +1162,8 @@ public static class GetMultiplayerServerDetailsRequest { } public static class GetMultiplayerServerDetailsResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1407,9 +1405,24 @@ public static class ListAssetSummariesResponse { } - public static class ListBuildAliasesForTitleResponse { + /** Returns a list of summarized details of all multiplayer server builds for a title. */ + public static class ListBuildAliasesRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; + + } + + public static class ListBuildAliasesResponse { /** The list of build aliases for the title */ public ArrayList BuildAliases; + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; } @@ -1662,13 +1675,6 @@ public static class MatchmakingPlayerWithTeamAssignment { } - /** Returns a list of summarized details of all multiplayer server builds for a title. */ - public static class MultiplayerEmptyRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - - } - public static class MultiplayerServerSummary { /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; @@ -1762,6 +1768,8 @@ public static class RequestMultiplayerServerRequest { } public static class RequestMultiplayerServerResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1833,6 +1841,8 @@ public static class ScheduledStandbySettings { } public static class ServerDetails { + /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ + public String Fqdn; /** The IPv4 address of the virtual machine that is hosting this multiplayer server. */ public String IPV4Address; /** The ports the multiplayer server uses. */ diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java index d5669c0f6..641237785 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java @@ -9,9 +9,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.128.210315"; - public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-1_1"; - public static String SdkVersionString = "JavaSDK-0.128.210315"; + public static String SdkVersion = "0.129.210406"; + public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-2_2"; + public static String SdkVersionString = "JavaSDK-0.129.210406"; public static Map RequestGetParams; static { diff --git a/PlayFabClientSDK/packageMe.ps1 b/PlayFabClientSDK/packageMe.ps1 index cc7a7c568..3abbe294d 100644 --- a/PlayFabClientSDK/packageMe.ps1 +++ b/PlayFabClientSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item client-sdk-0.128.210315.jar -Destination ../../builds/client-sdk-0.128.210315.jar \ No newline at end of file +Copy-Item client-sdk-0.129.210406.jar -Destination ../../builds/client-sdk-0.129.210406.jar \ No newline at end of file diff --git a/PlayFabClientSDK/packageMe.sh b/PlayFabClientSDK/packageMe.sh index a879a06b5..e0aafd5d6 100644 --- a/PlayFabClientSDK/packageMe.sh +++ b/PlayFabClientSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp client-sdk-0.128.210315.jar ../../builds/client-sdk-0.128.210315.jar +cp client-sdk-0.129.210406.jar ../../builds/client-sdk-0.129.210406.jar diff --git a/PlayFabClientSDK/pom.xml b/PlayFabClientSDK/pom.xml index b84ac665b..8f32a40d9 100644 --- a/PlayFabClientSDK/pom.xml +++ b/PlayFabClientSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab client-sdk - 0.128.210315 + 0.129.210406 PlayFab Client API 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. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java index 4afca5230..2d89ea9f6 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java @@ -5049,7 +5049,10 @@ private static PlayFabResult privateLinkFacebo } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return Async Task will return LinkGameCenterAccountResult */ @@ -5063,7 +5066,10 @@ public PlayFabResult call() throws Exception { } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return LinkGameCenterAccountResult */ @@ -5084,7 +5090,12 @@ public PlayFabResult call() throws Exception { } } - /** Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account */ + /** + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. + */ @SuppressWarnings("unchecked") private static PlayFabResult privateLinkGameCenterAccountAsync(final LinkGameCenterAccountRequest request) throws Exception { if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); @@ -6234,7 +6245,10 @@ private static PlayFabResult privateLoginWithFacebookInstantGamesId /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return Async Task will return LoginResult */ @@ -6249,7 +6263,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return LoginResult */ @@ -6272,7 +6289,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. */ @SuppressWarnings("unchecked") private static PlayFabResult privateLoginWithGameCenterAsync(final LoginWithGameCenterRequest request) throws Exception { diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java index cc524da7d..c657d70f5 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -493,7 +493,7 @@ public static enum PlayFabErrorCode { EvaluationModePlayerCountExceeded(1490), GetPlayersInSegmentRateLimitExceeded(1491), CloudScriptFunctionNameSizeExceeded(1492), - InsightsManagementTitleInEvaluationMode(1493), + PaidInsightsFeaturesNotEnabled(1493), CloudScriptAzureFunctionsQueueRequestError(1494), EvaluationModeTitleCountExceeded(1495), InsightsManagementTitleNotInFlight(1496), @@ -632,6 +632,7 @@ public static enum PlayFabErrorCode { CreateSegmentRateLimitExceeded(10008), UpdateSegmentRateLimitExceeded(10009), GetSegmentsRateLimitExceeded(10010), + AsyncExportNotInFlight(10011), SnapshotNotFound(11000), InventoryApiNotImplemented(12000); diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java index 43d884648..77179bd21 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java @@ -2447,13 +2447,13 @@ private static PlayFabResult privateListAssetSummari /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return Async Task will return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return Async Task will return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static FutureTask> ListBuildAliasesAsync(final MultiplayerEmptyRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static FutureTask> ListBuildAliasesAsync(final ListBuildAliasesRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2462,13 +2462,13 @@ public PlayFabResult call() throws Exception { /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static PlayFabResult ListBuildAliases(final MultiplayerEmptyRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static PlayFabResult ListBuildAliases(final ListBuildAliasesRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2476,7 +2476,7 @@ public PlayFabResult call() throws Exception { task.run(); return task.get(); } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); + PlayFabResult exceptionResult = new PlayFabResult(); exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null); return exceptionResult; } @@ -2487,7 +2487,7 @@ public PlayFabResult call() throws Exception { * game client to request list of builds with player entity token. */ @SuppressWarnings("unchecked") - private static PlayFabResult privateListBuildAliasesAsync(final MultiplayerEmptyRequest request) throws Exception { + private static PlayFabResult privateListBuildAliasesAsync(final ListBuildAliasesRequest request) throws Exception { if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API"); FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListBuildAliases"), request, "X-EntityToken", PlayFabSettings.EntityToken); @@ -2497,16 +2497,16 @@ private static PlayFabResult privateListBuildA PlayFabError error = (PlayFabError)httpResult; if (PlayFabSettings.GlobalErrorHandler != null) PlayFabSettings.GlobalErrorHandler.callback(error); - PlayFabResult result = new PlayFabResult(); + PlayFabResult result = new PlayFabResult(); result.Error = error; return result; } String resultRawJson = (String) httpResult; - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ListBuildAliasesForTitleResponse result = resultData.data; + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + ListBuildAliasesResponse result = resultData.data; - PlayFabResult pfResult = new PlayFabResult(); + PlayFabResult pfResult = new PlayFabResult(); pfResult.Result = result; return pfResult; } diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index 01e5cc135..37880d193 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -136,10 +136,6 @@ public static class BuildAliasDetailsResponse { public String AliasName; /** Array of build selection criteria. */ public ArrayList BuildSelectionCriteria; - /** The page size on the response. */ - public Integer PageSize; - /** The skip token for the paged response. */ - public String SkipToken; } @@ -1166,6 +1162,8 @@ public static class GetMultiplayerServerDetailsRequest { } public static class GetMultiplayerServerDetailsResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1407,9 +1405,24 @@ public static class ListAssetSummariesResponse { } - public static class ListBuildAliasesForTitleResponse { + /** Returns a list of summarized details of all multiplayer server builds for a title. */ + public static class ListBuildAliasesRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; + + } + + public static class ListBuildAliasesResponse { /** The list of build aliases for the title */ public ArrayList BuildAliases; + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; } @@ -1662,13 +1675,6 @@ public static class MatchmakingPlayerWithTeamAssignment { } - /** Returns a list of summarized details of all multiplayer server builds for a title. */ - public static class MultiplayerEmptyRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - - } - public static class MultiplayerServerSummary { /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; @@ -1762,6 +1768,8 @@ public static class RequestMultiplayerServerRequest { } public static class RequestMultiplayerServerResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1833,6 +1841,8 @@ public static class ScheduledStandbySettings { } public static class ServerDetails { + /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ + public String Fqdn; /** The IPv4 address of the virtual machine that is hosting this multiplayer server. */ public String IPV4Address; /** The ports the multiplayer server uses. */ diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java index bdef2680c..1323cb577 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.128.210315"; - public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-1_1"; - public static String SdkVersionString = "JavaSDK-0.128.210315"; + public static String SdkVersion = "0.129.210406"; + public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-2_2"; + public static String SdkVersionString = "JavaSDK-0.129.210406"; public static Map RequestGetParams; static { diff --git a/PlayFabSDK/packageMe.ps1 b/PlayFabSDK/packageMe.ps1 index 26d9dfc37..4281e15b1 100644 --- a/PlayFabSDK/packageMe.ps1 +++ b/PlayFabSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item combo-sdk-0.128.210315.jar -Destination ../../builds/combo-sdk-0.128.210315.jar \ No newline at end of file +Copy-Item combo-sdk-0.129.210406.jar -Destination ../../builds/combo-sdk-0.129.210406.jar \ No newline at end of file diff --git a/PlayFabSDK/packageMe.sh b/PlayFabSDK/packageMe.sh index 9bd23a69e..5e336cbae 100644 --- a/PlayFabSDK/packageMe.sh +++ b/PlayFabSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp combo-sdk-0.128.210315.jar ../../builds/combo-sdk-0.128.210315.jar +cp combo-sdk-0.129.210406.jar ../../builds/combo-sdk-0.129.210406.jar diff --git a/PlayFabSDK/pom.xml b/PlayFabSDK/pom.xml index 8e836a5af..50261c2da 100644 --- a/PlayFabSDK/pom.xml +++ b/PlayFabSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab combo-sdk - 0.128.210315 + 0.129.210406 PlayFab Combo API 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. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java index d936e1016..a955b1f80 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1885,7 +1885,7 @@ public static enum GenericErrorCodes { EvaluationModePlayerCountExceeded, GetPlayersInSegmentRateLimitExceeded, CloudScriptFunctionNameSizeExceeded, - InsightsManagementTitleInEvaluationMode, + PaidInsightsFeaturesNotEnabled, CloudScriptAzureFunctionsQueueRequestError, EvaluationModeTitleCountExceeded, InsightsManagementTitleNotInFlight, @@ -2024,6 +2024,7 @@ public static enum GenericErrorCodes { CreateSegmentRateLimitExceeded, UpdateSegmentRateLimitExceeded, GetSegmentsRateLimitExceeded, + AsyncExportNotInFlight, SnapshotNotFound, InventoryApiNotImplemented } diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java index 4afca5230..2d89ea9f6 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java @@ -5049,7 +5049,10 @@ private static PlayFabResult privateLinkFacebo } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return Async Task will return LinkGameCenterAccountResult */ @@ -5063,7 +5066,10 @@ public PlayFabResult call() throws Exception { } /** - * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. * @param request LinkGameCenterAccountRequest * @return LinkGameCenterAccountResult */ @@ -5084,7 +5090,12 @@ public PlayFabResult call() throws Exception { } } - /** Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account */ + /** + * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with + * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters + * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons + * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option. + */ @SuppressWarnings("unchecked") private static PlayFabResult privateLinkGameCenterAccountAsync(final LinkGameCenterAccountRequest request) throws Exception { if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); @@ -6234,7 +6245,10 @@ private static PlayFabResult privateLoginWithFacebookInstantGamesId /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return Async Task will return LoginResult */ @@ -6249,7 +6263,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. * @param request LoginWithGameCenterRequest * @return LoginResult */ @@ -6272,7 +6289,10 @@ public PlayFabResult call() throws Exception { /** * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be - * used for API calls which require an authenticated user + * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not + * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you + * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and + * enabling the 'Require secure authentication only for this app' option. */ @SuppressWarnings("unchecked") private static PlayFabResult privateLoginWithGameCenterAsync(final LoginWithGameCenterRequest request) throws Exception { diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java index cc524da7d..c657d70f5 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -493,7 +493,7 @@ public static enum PlayFabErrorCode { EvaluationModePlayerCountExceeded(1490), GetPlayersInSegmentRateLimitExceeded(1491), CloudScriptFunctionNameSizeExceeded(1492), - InsightsManagementTitleInEvaluationMode(1493), + PaidInsightsFeaturesNotEnabled(1493), CloudScriptAzureFunctionsQueueRequestError(1494), EvaluationModeTitleCountExceeded(1495), InsightsManagementTitleNotInFlight(1496), @@ -632,6 +632,7 @@ public static enum PlayFabErrorCode { CreateSegmentRateLimitExceeded(10008), UpdateSegmentRateLimitExceeded(10009), GetSegmentsRateLimitExceeded(10010), + AsyncExportNotInFlight(10011), SnapshotNotFound(11000), InventoryApiNotImplemented(12000); diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java index 43d884648..77179bd21 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java @@ -2447,13 +2447,13 @@ private static PlayFabResult privateListAssetSummari /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return Async Task will return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return Async Task will return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static FutureTask> ListBuildAliasesAsync(final MultiplayerEmptyRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static FutureTask> ListBuildAliasesAsync(final ListBuildAliasesRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2462,13 +2462,13 @@ public PlayFabResult call() throws Exception { /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static PlayFabResult ListBuildAliases(final MultiplayerEmptyRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static PlayFabResult ListBuildAliases(final ListBuildAliasesRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2476,7 +2476,7 @@ public PlayFabResult call() throws Exception { task.run(); return task.get(); } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); + PlayFabResult exceptionResult = new PlayFabResult(); exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null); return exceptionResult; } @@ -2487,7 +2487,7 @@ public PlayFabResult call() throws Exception { * game client to request list of builds with player entity token. */ @SuppressWarnings("unchecked") - private static PlayFabResult privateListBuildAliasesAsync(final MultiplayerEmptyRequest request) throws Exception { + private static PlayFabResult privateListBuildAliasesAsync(final ListBuildAliasesRequest request) throws Exception { if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API"); FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListBuildAliases"), request, "X-EntityToken", PlayFabSettings.EntityToken); @@ -2497,16 +2497,16 @@ private static PlayFabResult privateListBuildA PlayFabError error = (PlayFabError)httpResult; if (PlayFabSettings.GlobalErrorHandler != null) PlayFabSettings.GlobalErrorHandler.callback(error); - PlayFabResult result = new PlayFabResult(); + PlayFabResult result = new PlayFabResult(); result.Error = error; return result; } String resultRawJson = (String) httpResult; - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ListBuildAliasesForTitleResponse result = resultData.data; + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + ListBuildAliasesResponse result = resultData.data; - PlayFabResult pfResult = new PlayFabResult(); + PlayFabResult pfResult = new PlayFabResult(); pfResult.Result = result; return pfResult; } diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index 01e5cc135..37880d193 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -136,10 +136,6 @@ public static class BuildAliasDetailsResponse { public String AliasName; /** Array of build selection criteria. */ public ArrayList BuildSelectionCriteria; - /** The page size on the response. */ - public Integer PageSize; - /** The skip token for the paged response. */ - public String SkipToken; } @@ -1166,6 +1162,8 @@ public static class GetMultiplayerServerDetailsRequest { } public static class GetMultiplayerServerDetailsResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1407,9 +1405,24 @@ public static class ListAssetSummariesResponse { } - public static class ListBuildAliasesForTitleResponse { + /** Returns a list of summarized details of all multiplayer server builds for a title. */ + public static class ListBuildAliasesRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; + + } + + public static class ListBuildAliasesResponse { /** The list of build aliases for the title */ public ArrayList BuildAliases; + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; } @@ -1662,13 +1675,6 @@ public static class MatchmakingPlayerWithTeamAssignment { } - /** Returns a list of summarized details of all multiplayer server builds for a title. */ - public static class MultiplayerEmptyRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - - } - public static class MultiplayerServerSummary { /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; @@ -1762,6 +1768,8 @@ public static class RequestMultiplayerServerRequest { } public static class RequestMultiplayerServerResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1833,6 +1841,8 @@ public static class ScheduledStandbySettings { } public static class ServerDetails { + /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ + public String Fqdn; /** The IPv4 address of the virtual machine that is hosting this multiplayer server. */ public String IPV4Address; /** The ports the multiplayer server uses. */ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java index ae87a3749..f894b0bdf 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -1587,7 +1587,7 @@ public static enum GenericErrorCodes { EvaluationModePlayerCountExceeded, GetPlayersInSegmentRateLimitExceeded, CloudScriptFunctionNameSizeExceeded, - InsightsManagementTitleInEvaluationMode, + PaidInsightsFeaturesNotEnabled, CloudScriptAzureFunctionsQueueRequestError, EvaluationModeTitleCountExceeded, InsightsManagementTitleNotInFlight, @@ -1726,6 +1726,7 @@ public static enum GenericErrorCodes { CreateSegmentRateLimitExceeded, UpdateSegmentRateLimitExceeded, GetSegmentsRateLimitExceeded, + AsyncExportNotInFlight, SnapshotNotFound, InventoryApiNotImplemented } diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java index bdef2680c..1323cb577 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.128.210315"; - public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-1_1"; - public static String SdkVersionString = "JavaSDK-0.128.210315"; + public static String SdkVersion = "0.129.210406"; + public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-2_2"; + public static String SdkVersionString = "JavaSDK-0.129.210406"; public static Map RequestGetParams; static { diff --git a/PlayFabServerSDK/packageMe.ps1 b/PlayFabServerSDK/packageMe.ps1 index a30972d7f..d1c8769c2 100644 --- a/PlayFabServerSDK/packageMe.ps1 +++ b/PlayFabServerSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item server-sdk-0.128.210315.jar -Destination ../../builds/server-sdk-0.128.210315.jar \ No newline at end of file +Copy-Item server-sdk-0.129.210406.jar -Destination ../../builds/server-sdk-0.129.210406.jar \ No newline at end of file diff --git a/PlayFabServerSDK/packageMe.sh b/PlayFabServerSDK/packageMe.sh index 8007ef7c4..e1365caea 100644 --- a/PlayFabServerSDK/packageMe.sh +++ b/PlayFabServerSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp server-sdk-0.128.210315.jar ../../builds/server-sdk-0.128.210315.jar +cp server-sdk-0.129.210406.jar ../../builds/server-sdk-0.129.210406.jar diff --git a/PlayFabServerSDK/pom.xml b/PlayFabServerSDK/pom.xml index ef643856d..2dda24eda 100644 --- a/PlayFabServerSDK/pom.xml +++ b/PlayFabServerSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab server-sdk - 0.128.210315 + 0.129.210406 PlayFab Server API 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. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java index d936e1016..a955b1f80 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1885,7 +1885,7 @@ public static enum GenericErrorCodes { EvaluationModePlayerCountExceeded, GetPlayersInSegmentRateLimitExceeded, CloudScriptFunctionNameSizeExceeded, - InsightsManagementTitleInEvaluationMode, + PaidInsightsFeaturesNotEnabled, CloudScriptAzureFunctionsQueueRequestError, EvaluationModeTitleCountExceeded, InsightsManagementTitleNotInFlight, @@ -2024,6 +2024,7 @@ public static enum GenericErrorCodes { CreateSegmentRateLimitExceeded, UpdateSegmentRateLimitExceeded, GetSegmentsRateLimitExceeded, + AsyncExportNotInFlight, SnapshotNotFound, InventoryApiNotImplemented } diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java index cc524da7d..c657d70f5 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -493,7 +493,7 @@ public static enum PlayFabErrorCode { EvaluationModePlayerCountExceeded(1490), GetPlayersInSegmentRateLimitExceeded(1491), CloudScriptFunctionNameSizeExceeded(1492), - InsightsManagementTitleInEvaluationMode(1493), + PaidInsightsFeaturesNotEnabled(1493), CloudScriptAzureFunctionsQueueRequestError(1494), EvaluationModeTitleCountExceeded(1495), InsightsManagementTitleNotInFlight(1496), @@ -632,6 +632,7 @@ public static enum PlayFabErrorCode { CreateSegmentRateLimitExceeded(10008), UpdateSegmentRateLimitExceeded(10009), GetSegmentsRateLimitExceeded(10010), + AsyncExportNotInFlight(10011), SnapshotNotFound(11000), InventoryApiNotImplemented(12000); diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java index 43d884648..77179bd21 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java @@ -2447,13 +2447,13 @@ private static PlayFabResult privateListAssetSummari /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return Async Task will return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return Async Task will return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static FutureTask> ListBuildAliasesAsync(final MultiplayerEmptyRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static FutureTask> ListBuildAliasesAsync(final ListBuildAliasesRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2462,13 +2462,13 @@ public PlayFabResult call() throws Exception { /** * Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows * game client to request list of builds with player entity token. - * @param request MultiplayerEmptyRequest - * @return ListBuildAliasesForTitleResponse + * @param request ListBuildAliasesRequest + * @return ListBuildAliasesResponse */ @SuppressWarnings("unchecked") - public static PlayFabResult ListBuildAliases(final MultiplayerEmptyRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { + public static PlayFabResult ListBuildAliases(final ListBuildAliasesRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { return privateListBuildAliasesAsync(request); } }); @@ -2476,7 +2476,7 @@ public PlayFabResult call() throws Exception { task.run(); return task.get(); } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); + PlayFabResult exceptionResult = new PlayFabResult(); exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null); return exceptionResult; } @@ -2487,7 +2487,7 @@ public PlayFabResult call() throws Exception { * game client to request list of builds with player entity token. */ @SuppressWarnings("unchecked") - private static PlayFabResult privateListBuildAliasesAsync(final MultiplayerEmptyRequest request) throws Exception { + private static PlayFabResult privateListBuildAliasesAsync(final ListBuildAliasesRequest request) throws Exception { if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API"); FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListBuildAliases"), request, "X-EntityToken", PlayFabSettings.EntityToken); @@ -2497,16 +2497,16 @@ private static PlayFabResult privateListBuildA PlayFabError error = (PlayFabError)httpResult; if (PlayFabSettings.GlobalErrorHandler != null) PlayFabSettings.GlobalErrorHandler.callback(error); - PlayFabResult result = new PlayFabResult(); + PlayFabResult result = new PlayFabResult(); result.Error = error; return result; } String resultRawJson = (String) httpResult; - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ListBuildAliasesForTitleResponse result = resultData.data; + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + ListBuildAliasesResponse result = resultData.data; - PlayFabResult pfResult = new PlayFabResult(); + PlayFabResult pfResult = new PlayFabResult(); pfResult.Result = result; return pfResult; } diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index 01e5cc135..37880d193 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -136,10 +136,6 @@ public static class BuildAliasDetailsResponse { public String AliasName; /** Array of build selection criteria. */ public ArrayList BuildSelectionCriteria; - /** The page size on the response. */ - public Integer PageSize; - /** The skip token for the paged response. */ - public String SkipToken; } @@ -1166,6 +1162,8 @@ public static class GetMultiplayerServerDetailsRequest { } public static class GetMultiplayerServerDetailsResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1407,9 +1405,24 @@ public static class ListAssetSummariesResponse { } - public static class ListBuildAliasesForTitleResponse { + /** Returns a list of summarized details of all multiplayer server builds for a title. */ + public static class ListBuildAliasesRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; + + } + + public static class ListBuildAliasesResponse { /** The list of build aliases for the title */ public ArrayList BuildAliases; + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; } @@ -1662,13 +1675,6 @@ public static class MatchmakingPlayerWithTeamAssignment { } - /** Returns a list of summarized details of all multiplayer server builds for a title. */ - public static class MultiplayerEmptyRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - - } - public static class MultiplayerServerSummary { /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; @@ -1762,6 +1768,8 @@ public static class RequestMultiplayerServerRequest { } public static class RequestMultiplayerServerResponse { + /** The identity of the build in which the server was allocated. */ + public String BuildId; /** The connected players in the multiplayer server. */ public ArrayList ConnectedPlayers; /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ @@ -1833,6 +1841,8 @@ public static class ScheduledStandbySettings { } public static class ServerDetails { + /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ + public String Fqdn; /** The IPv4 address of the virtual machine that is hosting this multiplayer server. */ public String IPV4Address; /** The ports the multiplayer server uses. */ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java index ae87a3749..f894b0bdf 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -1587,7 +1587,7 @@ public static enum GenericErrorCodes { EvaluationModePlayerCountExceeded, GetPlayersInSegmentRateLimitExceeded, CloudScriptFunctionNameSizeExceeded, - InsightsManagementTitleInEvaluationMode, + PaidInsightsFeaturesNotEnabled, CloudScriptAzureFunctionsQueueRequestError, EvaluationModeTitleCountExceeded, InsightsManagementTitleNotInFlight, @@ -1726,6 +1726,7 @@ public static enum GenericErrorCodes { CreateSegmentRateLimitExceeded, UpdateSegmentRateLimitExceeded, GetSegmentsRateLimitExceeded, + AsyncExportNotInFlight, SnapshotNotFound, InventoryApiNotImplemented } diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java index 5c3914141..1589316a1 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.128.210315"; - public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-1_1"; - public static String SdkVersionString = "JavaSDK-0.128.210315"; + public static String SdkVersion = "0.129.210406"; + public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-2_2"; + public static String SdkVersionString = "JavaSDK-0.129.210406"; public static Map RequestGetParams; static { diff --git a/builds/client-sdk-0.128.210315.jar b/builds/client-sdk-0.129.210406.jar similarity index 65% rename from builds/client-sdk-0.128.210315.jar rename to builds/client-sdk-0.129.210406.jar index 75392abfa..a72c46386 100644 Binary files a/builds/client-sdk-0.128.210315.jar and b/builds/client-sdk-0.129.210406.jar differ diff --git a/builds/combo-sdk-0.128.210315.jar b/builds/combo-sdk-0.129.210406.jar similarity index 68% rename from builds/combo-sdk-0.128.210315.jar rename to builds/combo-sdk-0.129.210406.jar index b368162a2..803bdf994 100644 Binary files a/builds/combo-sdk-0.128.210315.jar and b/builds/combo-sdk-0.129.210406.jar differ