diff --git a/AndroidStudioExample/app/packageMe.ps1 b/AndroidStudioExample/app/packageMe.ps1 index 6441765d..a9ceee60 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.198.230901.jar -Destination ../../builds/client-sdk-0.198.230901.jar \ No newline at end of file +Copy-Item client-sdk-0.199.230915.jar -Destination ../../builds/client-sdk-0.199.230915.jar \ No newline at end of file diff --git a/AndroidStudioExample/app/packageMe.sh b/AndroidStudioExample/app/packageMe.sh index 4151ea75..3bb90378 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.198.230901.jar ../../builds/client-sdk-0.198.230901.jar +cp client-sdk-0.199.230915.jar ../../builds/client-sdk-0.199.230915.jar diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java index 7d2651a1..48f964d0 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientAPI.java @@ -1873,76 +1873,6 @@ private static PlayFabResult privateGetContentDownl return pfResult; } - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return Async Task will return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetCurrentGamesAsync(final CurrentGamesRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetCurrentGames(final CurrentGamesRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetCurrentGamesAsync(final CurrentGamesRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetCurrentGames"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - CurrentGamesResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in * the leaderboard @@ -2144,76 +2074,6 @@ private static PlayFabResult privateGetFriendsListAsync(fi return pfResult; } - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return Async Task will return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetGameServerRegionsAsync(final GameServerRegionsRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetGameServerRegions(final GameServerRegionsRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetGameServerRegionsAsync(final GameServerRegionsRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetGameServerRegions"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GameServerRegionsResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard * @param request GetLeaderboardRequest @@ -7258,91 +7118,6 @@ private static PlayFabResult privateLoginWithXboxAsync(final LoginW return pfResult; } - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return Async Task will return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> MatchmakeAsync(final MatchmakeRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult Matchmake(final MatchmakeRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateMatchmakeAsync(final MatchmakeRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/Matchmake"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - MatchmakeResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time. * @param request OpenTradeRequest diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java index 4ec325bf..721fe746 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java @@ -414,24 +414,6 @@ public static enum CloudScriptRevisionOption { Specific } - /** - * Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection - * set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered - * matching a rule if the rule describes a subset of the collection. - * @deprecated Do not use - */ - @Deprecated - public static class CollectionFilter { - /** List of Exclude rules, with any of which if a collection matches, it is excluded by the filter. */ - public ArrayList Excludes; - /** - * List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by - * one of the Exclude rule - */ - public ArrayList Includes; - - } - /** * The final step in the purchasing process, this API finalizes the purchase with the payment provider, where applicable, * adding virtual goods to the player inventory (including random drop table resolution and recursive addition of bundled @@ -558,17 +540,6 @@ public static class ContactEmailInfoModel { } - /** - * A data container - * @deprecated Do not use - */ - @Deprecated - public static class Container_Dictionary_String_String { - /** Content of data */ - public Map Data; - - } - public static enum ContinentCode { AF, AN, @@ -1014,34 +985,6 @@ public static enum Currency { ZWD } - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesRequest { - /** Build to match against. */ - public String BuildVersion; - /** Game mode to look for. */ - public String GameMode; - /** Region to check for Game Server Instances. */ - public Region Region; - /** Statistic name to find statistic-based matches. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain tags. */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesResult { - /** number of games running */ - public Integer GameCount; - /** array of games found */ - public ArrayList Games; - /** total number of players across all servers */ - public Integer PlayerCount; - - } - /** Any arbitrary information collected by the device */ public static class DeviceInfoRequest { /** Information posted to the PlayStream Event. Currently arbitrary, and specific to the environment sending it. */ @@ -1203,72 +1146,6 @@ public static class GameCenterPlayFabIdPair { } - /** @deprecated Do not use */ - @Deprecated - public static class GameInfo { - /** build version this server is running */ - public String BuildVersion; - /** game mode this server is running */ - public String GameMode; - /** game session custom data */ - public String GameServerData; - /** game specific string denoting server configuration */ - public GameInstanceState GameServerStateEnum; - /** last heartbeat of the game server instance, used in external game server provider mode */ - public Date LastHeartbeat; - /** unique lobby identifier for this game server */ - public String LobbyID; - /** maximum players this server can support */ - public Integer MaxPlayers; - /** array of current player IDs on this server */ - public ArrayList PlayerUserIds; - /** region to which this server is associated */ - public Region Region; - /** duration in seconds this server has been running */ - public Long RunTime; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** stastic used to match this game in player statistic matchmaking */ - public String StatisticName; - /** game session tags */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum GameInstanceState { - Open, - Closed - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsRequest { - /** version of game server for which stats are being requested */ - public String BuildVersion; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - public String TitleId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsResult { - /** array of regions found matching the request parameters */ - public ArrayList Regions; - - } - public static class GenericPlayFabIdPair { /** Unique generic service identifier for a user. */ public GenericServiceId GenericId; @@ -3452,64 +3329,6 @@ public static class LogStatement { } - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeRequest { - /** Build version to match against. [Note: Required if LobbyId is not specified] */ - public String BuildVersion; - /** Character to use for stats based matching. Leave null to use account stats. */ - public String CharacterId; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Game mode to match make against. [Note: Required if LobbyId is not specified] */ - public String GameMode; - /** Lobby identifier to match make against. This is used to select a specific Game Server Instance. */ - public String LobbyId; - /** Region to match make against. [Note: Required if LobbyId is not specified] */ - public Region Region; - /** Start a game session if one with an open slot is not found. Defaults to true. */ - public Boolean StartNewIfNoneFound; - /** Player statistic to use in finding a match. May be null for no stat-based matching. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain Tags */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeResult { - /** timestamp for when the server will expire, if applicable */ - public String Expires; - /** unique lobby identifier of the server matched */ - public String LobbyID; - /** time in milliseconds the application is configured to wait on matchmaking results */ - public Integer PollWaitTimeMS; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** result of match making process */ - public MatchmakeStatus Status; - /** server authorization ticket (used by RedeemMatchmakerTicket to validate user insertion into the game) */ - public String Ticket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum MatchmakeStatus { - Complete, - Waiting, - GameNotFound, - NoAvailableSlots, - SessionClosed - } - public static class MembershipModel { /** Whether this membership is active. That is, whether the MembershipExpiration time has been reached. */ public Boolean IsActive; @@ -3894,32 +3713,6 @@ public static class RefreshPSNAuthTokenRequest { } - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegionInfo { - /** indicates whether the server specified is available in this region */ - public Boolean Available; - /** name of the region */ - public String Name; - /** url to ping to get roundtrip time */ - public String PingUrl; - /** unique identifier for the region */ - public Region Region; - - } - /** * The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: * https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java index baf797aa..03456f52 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -1864,10 +1864,18 @@ public static class ListContainerImageTagsRequest { public Map CustomTags; /** The container images we want to list tags for. */ public String ImageName; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; } public static class ListContainerImageTagsResponse { + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; /** The list of tags for a particular container image. */ public ArrayList Tags; diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabProfilesModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabProfilesModels.java index dafd4426..5ac15b90 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabProfilesModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabProfilesModels.java @@ -114,11 +114,25 @@ public static class EntityProfileFileMetadata { } + public static class EntityStatisticAttributeValue { + /** Metadata associated with the Statistic. */ + public String Metadata; + /** Attribute name. */ + public String Name; + /** Attribute Statistic scores. */ + public ArrayList Scores; + + } + public static class EntityStatisticValue { + /** Attribute Statistic values. */ + public Map AttributeStatistics; /** Metadata associated with the Statistic. */ public String Metadata; /** Statistic name */ public String Name; + /** Statistic scores */ + public ArrayList Scores; /** Statistic value */ public Integer Value; /** Statistic version */ diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java index 594a64d9..255ace96 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.198.230901"; - public static String BuildIdentifier = "adobuild_javasdk_115"; - public static String SdkVersionString = "JavaSDK-0.198.230901"; + public static String SdkVersion = "0.199.230915"; + public static String BuildIdentifier = "adobuild_javasdk_116"; + public static String SdkVersionString = "JavaSDK-0.199.230915"; public static Map RequestGetParams; static { diff --git a/PlayFabClientSDK/packageMe.ps1 b/PlayFabClientSDK/packageMe.ps1 index 6441765d..a9ceee60 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.198.230901.jar -Destination ../../builds/client-sdk-0.198.230901.jar \ No newline at end of file +Copy-Item client-sdk-0.199.230915.jar -Destination ../../builds/client-sdk-0.199.230915.jar \ No newline at end of file diff --git a/PlayFabClientSDK/packageMe.sh b/PlayFabClientSDK/packageMe.sh index 4151ea75..3bb90378 100644 --- a/PlayFabClientSDK/packageMe.sh +++ b/PlayFabClientSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp client-sdk-0.198.230901.jar ../../builds/client-sdk-0.198.230901.jar +cp client-sdk-0.199.230915.jar ../../builds/client-sdk-0.199.230915.jar diff --git a/PlayFabClientSDK/pom.xml b/PlayFabClientSDK/pom.xml index 0554170e..f9abd39a 100644 --- a/PlayFabClientSDK/pom.xml +++ b/PlayFabClientSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab client-sdk - 0.198.230901 + 0.199.230915 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 7d2651a1..48f964d0 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientAPI.java @@ -1873,76 +1873,6 @@ private static PlayFabResult privateGetContentDownl return pfResult; } - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return Async Task will return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetCurrentGamesAsync(final CurrentGamesRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetCurrentGames(final CurrentGamesRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetCurrentGamesAsync(final CurrentGamesRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetCurrentGames"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - CurrentGamesResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in * the leaderboard @@ -2144,76 +2074,6 @@ private static PlayFabResult privateGetFriendsListAsync(fi return pfResult; } - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return Async Task will return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetGameServerRegionsAsync(final GameServerRegionsRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetGameServerRegions(final GameServerRegionsRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetGameServerRegionsAsync(final GameServerRegionsRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetGameServerRegions"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GameServerRegionsResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard * @param request GetLeaderboardRequest @@ -7258,91 +7118,6 @@ private static PlayFabResult privateLoginWithXboxAsync(final LoginW return pfResult; } - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return Async Task will return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> MatchmakeAsync(final MatchmakeRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult Matchmake(final MatchmakeRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateMatchmakeAsync(final MatchmakeRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/Matchmake"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - MatchmakeResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time. * @param request OpenTradeRequest diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java index 4ec325bf..721fe746 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java @@ -414,24 +414,6 @@ public static enum CloudScriptRevisionOption { Specific } - /** - * Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection - * set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered - * matching a rule if the rule describes a subset of the collection. - * @deprecated Do not use - */ - @Deprecated - public static class CollectionFilter { - /** List of Exclude rules, with any of which if a collection matches, it is excluded by the filter. */ - public ArrayList Excludes; - /** - * List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by - * one of the Exclude rule - */ - public ArrayList Includes; - - } - /** * The final step in the purchasing process, this API finalizes the purchase with the payment provider, where applicable, * adding virtual goods to the player inventory (including random drop table resolution and recursive addition of bundled @@ -558,17 +540,6 @@ public static class ContactEmailInfoModel { } - /** - * A data container - * @deprecated Do not use - */ - @Deprecated - public static class Container_Dictionary_String_String { - /** Content of data */ - public Map Data; - - } - public static enum ContinentCode { AF, AN, @@ -1014,34 +985,6 @@ public static enum Currency { ZWD } - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesRequest { - /** Build to match against. */ - public String BuildVersion; - /** Game mode to look for. */ - public String GameMode; - /** Region to check for Game Server Instances. */ - public Region Region; - /** Statistic name to find statistic-based matches. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain tags. */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesResult { - /** number of games running */ - public Integer GameCount; - /** array of games found */ - public ArrayList Games; - /** total number of players across all servers */ - public Integer PlayerCount; - - } - /** Any arbitrary information collected by the device */ public static class DeviceInfoRequest { /** Information posted to the PlayStream Event. Currently arbitrary, and specific to the environment sending it. */ @@ -1203,72 +1146,6 @@ public static class GameCenterPlayFabIdPair { } - /** @deprecated Do not use */ - @Deprecated - public static class GameInfo { - /** build version this server is running */ - public String BuildVersion; - /** game mode this server is running */ - public String GameMode; - /** game session custom data */ - public String GameServerData; - /** game specific string denoting server configuration */ - public GameInstanceState GameServerStateEnum; - /** last heartbeat of the game server instance, used in external game server provider mode */ - public Date LastHeartbeat; - /** unique lobby identifier for this game server */ - public String LobbyID; - /** maximum players this server can support */ - public Integer MaxPlayers; - /** array of current player IDs on this server */ - public ArrayList PlayerUserIds; - /** region to which this server is associated */ - public Region Region; - /** duration in seconds this server has been running */ - public Long RunTime; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** stastic used to match this game in player statistic matchmaking */ - public String StatisticName; - /** game session tags */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum GameInstanceState { - Open, - Closed - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsRequest { - /** version of game server for which stats are being requested */ - public String BuildVersion; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - public String TitleId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsResult { - /** array of regions found matching the request parameters */ - public ArrayList Regions; - - } - public static class GenericPlayFabIdPair { /** Unique generic service identifier for a user. */ public GenericServiceId GenericId; @@ -3452,64 +3329,6 @@ public static class LogStatement { } - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeRequest { - /** Build version to match against. [Note: Required if LobbyId is not specified] */ - public String BuildVersion; - /** Character to use for stats based matching. Leave null to use account stats. */ - public String CharacterId; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Game mode to match make against. [Note: Required if LobbyId is not specified] */ - public String GameMode; - /** Lobby identifier to match make against. This is used to select a specific Game Server Instance. */ - public String LobbyId; - /** Region to match make against. [Note: Required if LobbyId is not specified] */ - public Region Region; - /** Start a game session if one with an open slot is not found. Defaults to true. */ - public Boolean StartNewIfNoneFound; - /** Player statistic to use in finding a match. May be null for no stat-based matching. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain Tags */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeResult { - /** timestamp for when the server will expire, if applicable */ - public String Expires; - /** unique lobby identifier of the server matched */ - public String LobbyID; - /** time in milliseconds the application is configured to wait on matchmaking results */ - public Integer PollWaitTimeMS; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** result of match making process */ - public MatchmakeStatus Status; - /** server authorization ticket (used by RedeemMatchmakerTicket to validate user insertion into the game) */ - public String Ticket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum MatchmakeStatus { - Complete, - Waiting, - GameNotFound, - NoAvailableSlots, - SessionClosed - } - public static class MembershipModel { /** Whether this membership is active. That is, whether the MembershipExpiration time has been reached. */ public Boolean IsActive; @@ -3894,32 +3713,6 @@ public static class RefreshPSNAuthTokenRequest { } - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegionInfo { - /** indicates whether the server specified is available in this region */ - public Boolean Available; - /** name of the region */ - public String Name; - /** url to ping to get roundtrip time */ - public String PingUrl; - /** unique identifier for the region */ - public Region Region; - - } - /** * The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: * https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index baf797aa..03456f52 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -1864,10 +1864,18 @@ public static class ListContainerImageTagsRequest { public Map CustomTags; /** The container images we want to list tags for. */ public String ImageName; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; } public static class ListContainerImageTagsResponse { + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; /** The list of tags for a particular container image. */ public ArrayList Tags; diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabProfilesModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabProfilesModels.java index dafd4426..5ac15b90 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabProfilesModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabProfilesModels.java @@ -114,11 +114,25 @@ public static class EntityProfileFileMetadata { } + public static class EntityStatisticAttributeValue { + /** Metadata associated with the Statistic. */ + public String Metadata; + /** Attribute name. */ + public String Name; + /** Attribute Statistic scores. */ + public ArrayList Scores; + + } + public static class EntityStatisticValue { + /** Attribute Statistic values. */ + public Map AttributeStatistics; /** Metadata associated with the Statistic. */ public String Metadata; /** Statistic name */ public String Name; + /** Statistic scores */ + public ArrayList Scores; /** Statistic value */ public Integer Value; /** Statistic version */ diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java index 034ab5b8..ab5f6827 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.198.230901"; - public static String BuildIdentifier = "adobuild_javasdk_115"; - public static String SdkVersionString = "JavaSDK-0.198.230901"; + public static String SdkVersion = "0.199.230915"; + public static String BuildIdentifier = "adobuild_javasdk_116"; + public static String SdkVersionString = "JavaSDK-0.199.230915"; public static Map RequestGetParams; static { diff --git a/PlayFabSDK/packageMe.ps1 b/PlayFabSDK/packageMe.ps1 index 7735e7f7..e5235925 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.198.230901.jar -Destination ../../builds/combo-sdk-0.198.230901.jar \ No newline at end of file +Copy-Item combo-sdk-0.199.230915.jar -Destination ../../builds/combo-sdk-0.199.230915.jar \ No newline at end of file diff --git a/PlayFabSDK/packageMe.sh b/PlayFabSDK/packageMe.sh index 67cf6e4a..7f4c0595 100644 --- a/PlayFabSDK/packageMe.sh +++ b/PlayFabSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp combo-sdk-0.198.230901.jar ../../builds/combo-sdk-0.198.230901.jar +cp combo-sdk-0.199.230915.jar ../../builds/combo-sdk-0.199.230915.jar diff --git a/PlayFabSDK/pom.xml b/PlayFabSDK/pom.xml index f6d264c4..265dc757 100644 --- a/PlayFabSDK/pom.xml +++ b/PlayFabSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab combo-sdk - 0.198.230901 + 0.199.230915 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/PlayFabAdminAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java index 845eb0f0..e49d260f 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java @@ -2443,146 +2443,6 @@ private static PlayFabResult privateGetDataReportAsync(fina return pfResult; } - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - * @param request GetMatchmakerGameInfoRequest - * @return Async Task will return GetMatchmakerGameInfoResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetMatchmakerGameInfoAsync(final GetMatchmakerGameInfoRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameInfoAsync(request); - } - }); - } - - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - * @param request GetMatchmakerGameInfoRequest - * @return GetMatchmakerGameInfoResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetMatchmakerGameInfo(final GetMatchmakerGameInfoRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameInfoAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetMatchmakerGameInfoAsync(final GetMatchmakerGameInfoRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/GetMatchmakerGameInfo"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GetMatchmakerGameInfoResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - * @param request GetMatchmakerGameModesRequest - * @return Async Task will return GetMatchmakerGameModesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetMatchmakerGameModesAsync(final GetMatchmakerGameModesRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameModesAsync(request); - } - }); - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - * @param request GetMatchmakerGameModesRequest - * @return GetMatchmakerGameModesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetMatchmakerGameModes(final GetMatchmakerGameModesRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameModesAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetMatchmakerGameModesAsync(final GetMatchmakerGameModesRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/GetMatchmakerGameModes"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GetMatchmakerGameModesResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Get the list of titles that the player has played * @param request GetPlayedTitleListRequest @@ -4689,76 +4549,6 @@ private static PlayFabResult privateListVirtualC return pfResult; } - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - * @param request ModifyServerBuildRequest - * @return Async Task will return ModifyServerBuildResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> ModifyServerBuildAsync(final ModifyServerBuildRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateModifyServerBuildAsync(request); - } - }); - } - - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - * @param request ModifyServerBuildRequest - * @return ModifyServerBuildResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult ModifyServerBuild(final ModifyServerBuildRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateModifyServerBuildAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateModifyServerBuildAsync(final ModifyServerBuildRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/ModifyServerBuild"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ModifyServerBuildResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Attempts to process an order refund through the original real money payment provider. diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java index 78ad9f95..dff4a7f6 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1388,30 +1388,6 @@ public static class FirstLoginTimespanSegmentFilter { } - /** @deprecated Do not use */ - @Deprecated - public static enum GameBuildStatus { - Available, - Validating, - InvalidBuildPackage, - Processing, - FailedToProcess - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameModeInfo { - /** specific game mode type */ - public String Gamemode; - /** maximum user count a specific Game Server Instance can support */ - public Long MaxPlayerCount; - /** minimum user count required for this Game Server Instance to continue (usually 1) */ - public Long MinPlayerCount; - /** whether to start as an open session, meaning that players can matchmake into it (defaults to true) */ - public Boolean StartOpen; - - } - public static enum GenericErrorCodes { Success, UnkownError, @@ -2288,66 +2264,6 @@ public static class GetDataReportResult { } - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameInfoRequest { - /** unique identifier of the lobby for which info is being requested */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameInfoResult { - /** version identifier of the game server executable binary being run */ - public String BuildVersion; - /** time when Game Server Instance is currently scheduled to end */ - public Date EndTime; - /** unique identifier of the lobby */ - public String LobbyId; - /** game mode for this Game Server Instance */ - public String Mode; - /** array of unique PlayFab identifiers for users currently connected to this Game Server Instance */ - @Unordered - public ArrayList Players; - /** region in which the Game Server Instance is running */ - public Region Region; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** communication port for this Game Server Instance */ - public Long ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** time when the Game Server Instance was created */ - public Date StartTime; - /** unique identifier of the Game Server Instance for this lobby */ - public String TitleId; - - } - - /** - * These details are used by the PlayFab matchmaking service to determine if an existing Game Server Instance has room for - * additional users, and by the PlayFab game server management service to determine when a new Game Server Host should be - * created in order to prevent excess load on existing Hosts. - * @deprecated Do not use - */ - @Deprecated - public static class GetMatchmakerGameModesRequest { - /** previously uploaded build version for which game modes are being requested */ - public String BuildVersion; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameModesResult { - /** array of game modes available for the specified build */ - public ArrayList GameModes; - - } - /** Useful for identifying titles of which the player's data will be deleted by DeleteMasterPlayer. */ public static class GetPlayedTitleListRequest { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ @@ -3210,65 +3126,6 @@ public static class MembershipModel { } - /** @deprecated Do not use */ - @Deprecated - public static class ModifyServerBuildRequest { - /** array of regions where this build can used, when it is active */ - public ArrayList ActiveRegions; - /** unique identifier of the previously uploaded build executable to be updated */ - public String BuildId; - /** appended to the end of the command line when starting game servers */ - public String CommandLineTemplate; - /** developer comment(s) for this build */ - public String Comment; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** path to the game server executable. Defaults to gameserver.exe */ - public String ExecutablePath; - /** maximum number of game server instances that can run on a single host machine */ - public Integer MaxGamesPerHost; - /** - * minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - * machines (given the number of current running host machines and game server instances) - */ - public Integer MinFreeGameSlots; - /** new timestamp */ - public Date Timestamp; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class ModifyServerBuildResult { - /** array of regions where this build can used, when it is active */ - public ArrayList ActiveRegions; - /** unique identifier for this build executable */ - public String BuildId; - /** appended to the end of the command line when starting game servers */ - public String CommandLineTemplate; - /** developer comment(s) for this build */ - public String Comment; - /** path to the game server executable. Defaults to gameserver.exe */ - public String ExecutablePath; - /** maximum number of game server instances that can run on a single host machine */ - public Integer MaxGamesPerHost; - /** - * minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - * machines (given the number of current running host machines and game server instances) - */ - public Integer MinFreeGameSlots; - /** the current status of the build validation and processing steps */ - public GameBuildStatus Status; - /** time this build was last modified (or uploaded, if this build has never been modified) */ - public Date Timestamp; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - public String TitleId; - - } - public static class ModifyUserVirtualCurrencyResult { /** Balance of the virtual currency after modification. */ public Integer Balance; @@ -3649,18 +3506,6 @@ public static class RefundPurchaseResponse { } - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - /** * This API will trigger a player_tag_removed event and remove a tag with the given TagName and PlayFabID from the * corresponding player profile. TagName can be used for segmentation and it is limited to 256 characters diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java index 7d2651a1..48f964d0 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java @@ -1873,76 +1873,6 @@ private static PlayFabResult privateGetContentDownl return pfResult; } - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return Async Task will return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetCurrentGamesAsync(final CurrentGamesRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request CurrentGamesRequest - * @return CurrentGamesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetCurrentGames(final CurrentGamesRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetCurrentGamesAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about all current running game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetCurrentGamesAsync(final CurrentGamesRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetCurrentGames"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - CurrentGamesResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in * the leaderboard @@ -2144,76 +2074,6 @@ private static PlayFabResult privateGetFriendsListAsync(fi return pfResult; } - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return Async Task will return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetGameServerRegionsAsync(final GameServerRegionsRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - * @param request GameServerRegionsRequest - * @return GameServerRegionsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetGameServerRegions(final GameServerRegionsRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetGameServerRegionsAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Get details about the regions hosting game servers matching the given parameters. - * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetGameServerRegionsAsync(final GameServerRegionsRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetGameServerRegions"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GameServerRegionsResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard * @param request GetLeaderboardRequest @@ -7258,91 +7118,6 @@ private static PlayFabResult privateLoginWithXboxAsync(final LoginW return pfResult; } - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return Async Task will return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> MatchmakeAsync(final MatchmakeRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - * @param request MatchmakeRequest - * @return MatchmakeResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult Matchmake(final MatchmakeRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateMatchmakeAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - * GameNotFound. - * @deprecated Please use Match/CreateMatchmakingTicket instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateMatchmakeAsync(final MatchmakeRequest request) throws Exception { - if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/Matchmake"), 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - MatchmakeResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time. * @param request OpenTradeRequest diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java index 4ec325bf..721fe746 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java @@ -414,24 +414,6 @@ public static enum CloudScriptRevisionOption { Specific } - /** - * Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection - * set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered - * matching a rule if the rule describes a subset of the collection. - * @deprecated Do not use - */ - @Deprecated - public static class CollectionFilter { - /** List of Exclude rules, with any of which if a collection matches, it is excluded by the filter. */ - public ArrayList Excludes; - /** - * List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by - * one of the Exclude rule - */ - public ArrayList Includes; - - } - /** * The final step in the purchasing process, this API finalizes the purchase with the payment provider, where applicable, * adding virtual goods to the player inventory (including random drop table resolution and recursive addition of bundled @@ -558,17 +540,6 @@ public static class ContactEmailInfoModel { } - /** - * A data container - * @deprecated Do not use - */ - @Deprecated - public static class Container_Dictionary_String_String { - /** Content of data */ - public Map Data; - - } - public static enum ContinentCode { AF, AN, @@ -1014,34 +985,6 @@ public static enum Currency { ZWD } - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesRequest { - /** Build to match against. */ - public String BuildVersion; - /** Game mode to look for. */ - public String GameMode; - /** Region to check for Game Server Instances. */ - public Region Region; - /** Statistic name to find statistic-based matches. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain tags. */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class CurrentGamesResult { - /** number of games running */ - public Integer GameCount; - /** array of games found */ - public ArrayList Games; - /** total number of players across all servers */ - public Integer PlayerCount; - - } - /** Any arbitrary information collected by the device */ public static class DeviceInfoRequest { /** Information posted to the PlayStream Event. Currently arbitrary, and specific to the environment sending it. */ @@ -1203,72 +1146,6 @@ public static class GameCenterPlayFabIdPair { } - /** @deprecated Do not use */ - @Deprecated - public static class GameInfo { - /** build version this server is running */ - public String BuildVersion; - /** game mode this server is running */ - public String GameMode; - /** game session custom data */ - public String GameServerData; - /** game specific string denoting server configuration */ - public GameInstanceState GameServerStateEnum; - /** last heartbeat of the game server instance, used in external game server provider mode */ - public Date LastHeartbeat; - /** unique lobby identifier for this game server */ - public String LobbyID; - /** maximum players this server can support */ - public Integer MaxPlayers; - /** array of current player IDs on this server */ - public ArrayList PlayerUserIds; - /** region to which this server is associated */ - public Region Region; - /** duration in seconds this server has been running */ - public Long RunTime; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** stastic used to match this game in player statistic matchmaking */ - public String StatisticName; - /** game session tags */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum GameInstanceState { - Open, - Closed - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsRequest { - /** version of game server for which stats are being requested */ - public String BuildVersion; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - public String TitleId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameServerRegionsResult { - /** array of regions found matching the request parameters */ - public ArrayList Regions; - - } - public static class GenericPlayFabIdPair { /** Unique generic service identifier for a user. */ public GenericServiceId GenericId; @@ -3452,64 +3329,6 @@ public static class LogStatement { } - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeRequest { - /** Build version to match against. [Note: Required if LobbyId is not specified] */ - public String BuildVersion; - /** Character to use for stats based matching. Leave null to use account stats. */ - public String CharacterId; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Game mode to match make against. [Note: Required if LobbyId is not specified] */ - public String GameMode; - /** Lobby identifier to match make against. This is used to select a specific Game Server Instance. */ - public String LobbyId; - /** Region to match make against. [Note: Required if LobbyId is not specified] */ - public Region Region; - /** Start a game session if one with an open slot is not found. Defaults to true. */ - public Boolean StartNewIfNoneFound; - /** Player statistic to use in finding a match. May be null for no stat-based matching. */ - public String StatisticName; - /** Filter to include and/or exclude Game Server Instances associated with certain Tags */ - public CollectionFilter TagFilter; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class MatchmakeResult { - /** timestamp for when the server will expire, if applicable */ - public String Expires; - /** unique lobby identifier of the server matched */ - public String LobbyID; - /** time in milliseconds the application is configured to wait on matchmaking results */ - public Integer PollWaitTimeMS; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** port number to use for non-http communications with the server */ - public Integer ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** result of match making process */ - public MatchmakeStatus Status; - /** server authorization ticket (used by RedeemMatchmakerTicket to validate user insertion into the game) */ - public String Ticket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum MatchmakeStatus { - Complete, - Waiting, - GameNotFound, - NoAvailableSlots, - SessionClosed - } - public static class MembershipModel { /** Whether this membership is active. That is, whether the MembershipExpiration time has been reached. */ public Boolean IsActive; @@ -3894,32 +3713,6 @@ public static class RefreshPSNAuthTokenRequest { } - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegionInfo { - /** indicates whether the server specified is available in this region */ - public Boolean Available; - /** name of the region */ - public String Name; - /** url to ping to get roundtrip time */ - public String PingUrl; - /** unique identifier for the region */ - public Region Region; - - } - /** * The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: * https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java index bc43c72e..a12172be 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java @@ -13,287 +13,4 @@ public class PlayFabMatchmakerAPI { private static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").create(); - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - * @param request AuthUserRequest - * @return Async Task will return AuthUserResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> AuthUserAsync(final AuthUserRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateAuthUserAsync(request); - } - }); - } - - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - * @param request AuthUserRequest - * @return AuthUserResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult AuthUser(final AuthUserRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateAuthUserAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateAuthUserAsync(final AuthUserRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/AuthUser"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - AuthUserResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerJoinedRequest - * @return Async Task will return PlayerJoinedResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> PlayerJoinedAsync(final PlayerJoinedRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerJoinedAsync(request); - } - }); - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerJoinedRequest - * @return PlayerJoinedResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult PlayerJoined(final PlayerJoinedRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerJoinedAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privatePlayerJoinedAsync(final PlayerJoinedRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/PlayerJoined"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - PlayerJoinedResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerLeftRequest - * @return Async Task will return PlayerLeftResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> PlayerLeftAsync(final PlayerLeftRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerLeftAsync(request); - } - }); - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerLeftRequest - * @return PlayerLeftResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult PlayerLeft(final PlayerLeftRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerLeftAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privatePlayerLeftAsync(final PlayerLeftRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/PlayerLeft"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - PlayerLeftResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - * @param request UserInfoRequest - * @return Async Task will return UserInfoResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> UserInfoAsync(final UserInfoRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateUserInfoAsync(request); - } - }); - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - * @param request UserInfoRequest - * @return UserInfoResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult UserInfo(final UserInfoRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateUserInfoAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateUserInfoAsync(final UserInfoRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/UserInfo"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - UserInfoResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - } diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java index 80d97dfc..45431fc1 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java @@ -5,177 +5,4 @@ public class PlayFabMatchmakerModels { - /** - * This API allows the external match-making service to confirm that the user has a valid Session Ticket for the title, in - * order to securely enable match-making. The client passes the user's Session Ticket to the external match-making service, - * which then passes the Session Ticket in as the AuthorizationTicket in this call. - * @deprecated Do not use - */ - @Deprecated - public static class AuthUserRequest { - /** Session Ticket provided by the client. */ - public String AuthorizationTicket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class AuthUserResponse { - /** Boolean indicating if the user has been authorized to use the external match-making service. */ - public Boolean Authorized; - /** PlayFab unique identifier of the account that has been authorized. */ - public String PlayFabId; - - } - - /** - * A unique instance of an item in a user's inventory. Note, to retrieve additional information for an item such as Tags, - * Description that are the same across all instances of the item, a call to GetCatalogItems is required. The ItemID of can - * be matched to a catalog entry, which contains the additional information. Also note that Custom Data is only set when - * the User's specific instance has updated the CustomData via a call to UpdateUserInventoryItemCustomData. Other fields - * such as UnitPrice and UnitCurrency are only set when the item was granted via a purchase. - * @deprecated Do not use - */ - @Deprecated - public static class ItemInstance implements Comparable { - /** Game specific comment associated with this instance when it was added to the user inventory. */ - public String Annotation; - /** Array of unique items that were awarded when this catalog item was purchased. */ - public ArrayList BundleContents; - /** - * Unique identifier for the parent inventory item, as defined in the catalog, for object which were added from a bundle or - * container. - */ - public String BundleParent; - /** Catalog version for the inventory item, when this instance was created. */ - public String CatalogVersion; - /** - * A set of custom key-value pairs on the instance of the inventory item, which is not to be confused with the catalog - * item's custom data. - */ - public Map CustomData; - /** CatalogItem.DisplayName at the time this item was purchased. */ - public String DisplayName; - /** Timestamp for when this instance will expire. */ - public Date Expiration; - /** Class name for the inventory item, as defined in the catalog. */ - public String ItemClass; - /** Unique identifier for the inventory item, as defined in the catalog. */ - public String ItemId; - /** Unique item identifier for this specific instance of the item. */ - public String ItemInstanceId; - /** Timestamp for when this instance was purchased. */ - public Date PurchaseDate; - /** Total number of remaining uses, if this is a consumable item. */ - public Integer RemainingUses; - /** Currency type for the cost of the catalog item. Not available when granting items. */ - public String UnitCurrency; - /** Cost of the catalog item in the given currency. Not available when granting items. */ - public Long UnitPrice; - /** The number of uses that were added or removed to this item in this call. */ - public Integer UsesIncrementedBy; - - public int compareTo(ItemInstance other) { - if (other == null || other.ItemInstanceId == null) return 1; - if (ItemInstanceId == null) return -1; - return ItemInstanceId.compareTo(other.ItemInstanceId); - } - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerJoinedRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Unique identifier of the Game Server Instance the user is joining. This must be a Game Server Instance started with the - * Matchmaker/StartGame API. - */ - public String LobbyId; - /** PlayFab unique identifier for the player joining. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerJoinedResponse { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerLeftRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Unique identifier of the Game Server Instance the user is leaving. This must be a Game Server Instance started with the - * Matchmaker/StartGame API. - */ - public String LobbyId; - /** PlayFab unique identifier for the player leaving. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerLeftResponse { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class UserInfoRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Minimum catalog version for which data is requested (filters the results to only contain inventory items which have a - * catalog version of this or higher). - */ - public Integer MinCatalogVersion; - /** PlayFab unique identifier of the user whose information is being requested. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class UserInfoResponse { - /** Array of inventory items in the user's current inventory. */ - @Unordered("ItemInstanceId") - public ArrayList Inventory; - /** Boolean indicating whether the user is a developer. */ - public Boolean IsDeveloper; - /** PlayFab unique identifier of the user whose information was requested. */ - public String PlayFabId; - /** Steam unique identifier, if the user has an associated Steam account. */ - public String SteamId; - /** Title specific display name, if set. */ - public String TitleDisplayName; - /** PlayFab unique user name. */ - public String Username; - /** Array of virtual currency balance(s) belonging to the user. */ - public Map VirtualCurrency; - /** Array of remaining times and timestamps for virtual currencies. */ - public Map VirtualCurrencyRechargeTimes; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class VirtualCurrencyRechargeTime { - /** - * Maximum value to which the regenerating currency will automatically increment. Note that it can exceed this value - * through use of the AddUserVirtualCurrency API call. However, it will not regenerate automatically until it has fallen - * below this value. - */ - public Integer RechargeMax; - /** Server timestamp in UTC indicating the next time the virtual currency will be incremented. */ - public Date RechargeTime; - /** Time remaining (in seconds) before the next recharge increment of the virtual currency. */ - public Integer SecondsToRecharge; - - } - } diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index baf797aa..03456f52 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -1864,10 +1864,18 @@ public static class ListContainerImageTagsRequest { public Map CustomTags; /** The container images we want to list tags for. */ public String ImageName; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; } public static class ListContainerImageTagsResponse { + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; /** The list of tags for a particular container image. */ public ArrayList Tags; diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabProfilesModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabProfilesModels.java index dafd4426..5ac15b90 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabProfilesModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabProfilesModels.java @@ -114,11 +114,25 @@ public static class EntityProfileFileMetadata { } + public static class EntityStatisticAttributeValue { + /** Metadata associated with the Statistic. */ + public String Metadata; + /** Attribute name. */ + public String Name; + /** Attribute Statistic scores. */ + public ArrayList Scores; + + } + public static class EntityStatisticValue { + /** Attribute Statistic values. */ + public Map AttributeStatistics; /** Metadata associated with the Statistic. */ public String Metadata; /** Statistic name */ public String Name; + /** Statistic scores */ + public ArrayList Scores; /** Statistic value */ public Integer Value; /** Statistic version */ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java index f5bdd757..c24a2103 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java @@ -1007,76 +1007,6 @@ private static PlayFabResult privateDeleteSharedGroupAsync(final return pfResult; } - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - * @param request DeregisterGameRequest - * @return Async Task will return DeregisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> DeregisterGameAsync(final DeregisterGameRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateDeregisterGameAsync(request); - } - }); - } - - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - * @param request DeregisterGameRequest - * @return DeregisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult DeregisterGame(final DeregisterGameRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateDeregisterGameAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateDeregisterGameAsync(final DeregisterGameRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/DeregisterGame"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - DeregisterGameResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would @@ -4763,6 +4693,68 @@ private static PlayFabResult privateLinkNintendoServiceAccountAsync return pfResult; } + /** + * Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + * @param request LinkNintendoServiceAccountSubjectRequest + * @return Async Task will return EmptyResult + */ + @SuppressWarnings("unchecked") + public static FutureTask> LinkNintendoServiceAccountSubjectAsync(final LinkNintendoServiceAccountSubjectRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { + return privateLinkNintendoServiceAccountSubjectAsync(request); + } + }); + } + + /** + * Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + * @param request LinkNintendoServiceAccountSubjectRequest + * @return EmptyResult + */ + @SuppressWarnings("unchecked") + public static PlayFabResult LinkNintendoServiceAccountSubject(final LinkNintendoServiceAccountSubjectRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { + return privateLinkNintendoServiceAccountSubjectAsync(request); + } + }); + try { + task.run(); + return task.get(); + } catch(Exception e) { + PlayFabResult exceptionResult = new PlayFabResult(); + exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); + return exceptionResult; + } + } + + /** Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account */ + @SuppressWarnings("unchecked") + private static PlayFabResult privateLinkNintendoServiceAccountSubjectAsync(final LinkNintendoServiceAccountSubjectRequest request) throws Exception { + if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); + + FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/LinkNintendoServiceAccountSubject"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); + 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(); + result.Error = error; + return result; + } + String resultRawJson = (String) httpResult; + + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + EmptyResult result = resultData.data; + + PlayFabResult pfResult = new PlayFabResult(); + pfResult.Result = result; + return pfResult; + } + /** * Links the NintendoSwitchDeviceId to the user's PlayFab account * @param request LinkNintendoSwitchDeviceIdRequest @@ -5671,76 +5663,6 @@ private static PlayFabResult privateMoveItemT return pfResult; } - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - * @param request NotifyMatchmakerPlayerLeftRequest - * @return Async Task will return NotifyMatchmakerPlayerLeftResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> NotifyMatchmakerPlayerLeftAsync(final NotifyMatchmakerPlayerLeftRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateNotifyMatchmakerPlayerLeftAsync(request); - } - }); - } - - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - * @param request NotifyMatchmakerPlayerLeftRequest - * @return NotifyMatchmakerPlayerLeftResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult NotifyMatchmakerPlayerLeft(final NotifyMatchmakerPlayerLeftRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateNotifyMatchmakerPlayerLeftAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateNotifyMatchmakerPlayerLeftAsync(final NotifyMatchmakerPlayerLeftRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/NotifyMatchmakerPlayerLeft"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - NotifyMatchmakerPlayerLeftResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the @@ -5811,216 +5733,6 @@ private static PlayFabResult privateRedeemCouponAsync(final return pfResult; } - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - * @param request RedeemMatchmakerTicketRequest - * @return Async Task will return RedeemMatchmakerTicketResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RedeemMatchmakerTicketAsync(final RedeemMatchmakerTicketRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRedeemMatchmakerTicketAsync(request); - } - }); - } - - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - * @param request RedeemMatchmakerTicketRequest - * @return RedeemMatchmakerTicketResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RedeemMatchmakerTicket(final RedeemMatchmakerTicketRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRedeemMatchmakerTicketAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRedeemMatchmakerTicketAsync(final RedeemMatchmakerTicketRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RedeemMatchmakerTicket"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RedeemMatchmakerTicketResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - * @param request RefreshGameServerInstanceHeartbeatRequest - * @return Async Task will return RefreshGameServerInstanceHeartbeatResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RefreshGameServerInstanceHeartbeatAsync(final RefreshGameServerInstanceHeartbeatRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRefreshGameServerInstanceHeartbeatAsync(request); - } - }); - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - * @param request RefreshGameServerInstanceHeartbeatRequest - * @return RefreshGameServerInstanceHeartbeatResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RefreshGameServerInstanceHeartbeat(final RefreshGameServerInstanceHeartbeatRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRefreshGameServerInstanceHeartbeatAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRefreshGameServerInstanceHeartbeatAsync(final RefreshGameServerInstanceHeartbeatRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RefreshGameServerInstanceHeartbeat"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RefreshGameServerInstanceHeartbeatResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - * @param request RegisterGameRequest - * @return Async Task will return RegisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RegisterGameAsync(final RegisterGameRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRegisterGameAsync(request); - } - }); - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - * @param request RegisterGameRequest - * @return RegisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RegisterGame(final RegisterGameRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRegisterGameAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRegisterGameAsync(final RegisterGameRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RegisterGame"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RegisterGameResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Removes the specified friend from the the user's friend list * @param request RemoveFriendRequest @@ -6992,216 +6704,6 @@ private static PlayFabResult privateSetFriendTagsAsync(final SetF return pfResult; } - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceDataRequest - * @return Async Task will return SetGameServerInstanceDataResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceDataAsync(final SetGameServerInstanceDataRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceDataAsync(request); - } - }); - } - - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceDataRequest - * @return SetGameServerInstanceDataResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceData(final SetGameServerInstanceDataRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceDataAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceDataAsync(final SetGameServerInstanceDataRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceData"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceDataResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - * @param request SetGameServerInstanceStateRequest - * @return Async Task will return SetGameServerInstanceStateResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceStateAsync(final SetGameServerInstanceStateRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceStateAsync(request); - } - }); - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - * @param request SetGameServerInstanceStateRequest - * @return SetGameServerInstanceStateResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceState(final SetGameServerInstanceStateRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceStateAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceStateAsync(final SetGameServerInstanceStateRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceState"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceStateResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceTagsRequest - * @return Async Task will return SetGameServerInstanceTagsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceTagsAsync(final SetGameServerInstanceTagsRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceTagsAsync(request); - } - }); - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceTagsRequest - * @return SetGameServerInstanceTagsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceTags(final SetGameServerInstanceTagsRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceTagsAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceTagsAsync(final SetGameServerInstanceTagsRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceTags"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceTagsResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's * secret use the Admin or Server API method SetPlayerSecret. diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java index 1f4b6421..fbd8286d 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -935,22 +935,6 @@ public static class DeleteSharedGroupRequest { } - /** @deprecated Do not use */ - @Deprecated - public static class DeregisterGameRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier for the Game Server Instance that is being deregistered. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class DeregisterGameResponse { - - } - public static enum EmailVerificationStatus { Unverified, Pending, @@ -1120,13 +1104,6 @@ public static class FriendInfo { } - /** @deprecated Do not use */ - @Deprecated - public static enum GameInstanceState { - Open, - Closed - } - public static enum GenericErrorCodes { Success, UnkownError, @@ -3109,6 +3086,18 @@ public static class LinkNintendoServiceAccountRequest { } + public static class LinkNintendoServiceAccountSubjectRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** If another user is already linked to a specific Nintendo Service Account, unlink the other user and re-link. */ + public Boolean ForceLink; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + public String PlayFabId; + /** The Nintendo Service Account subject or id to link to the PlayFab user. */ + public String Subject; + + } + public static class LinkNintendoSwitchDeviceIdRequest { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; @@ -3493,35 +3482,6 @@ public static class NintendoSwitchPlayFabIdPair { } - /** @deprecated Do not use */ - @Deprecated - public static class NotifyMatchmakerPlayerLeftRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier of the Game Instance the user is leaving. */ - public String LobbyId; - /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class NotifyMatchmakerPlayerLeftResult { - /** State of user leaving the Game Server Instance. */ - public PlayerConnectionState PlayerState; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum PlayerConnectionState { - Unassigned, - Connecting, - Participating, - Participated - } - public static class PlayerLeaderboardEntry { /** Title-specific display name of the user for this leaderboard entry. */ public String DisplayName; @@ -3810,108 +3770,6 @@ public static class RedeemCouponResult { } - /** - * This function is used by a Game Server Instance to validate with the PlayFab service that a user has been registered as - * connected to the server. The Ticket is provided to the client either as a result of a call to StartGame or Matchmake, - * each of which return a Ticket specific to the Game Server Instance. This function will fail in any case where the Ticket - * presented is not valid for the specific Game Server Instance making the call. Note that data returned may be Personally - * Identifying Information (PII), such as email address, and so care should be taken in how this data is stored and - * managed. Since this call will always return the relevant information for users who have accessed the title, the - * recommendation is to not store this data locally. - * @deprecated Do not use - */ - @Deprecated - public static class RedeemMatchmakerTicketRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier of the Game Server Instance that is asking for validation of the authorization ticket. */ - public String LobbyId; - /** Server authorization ticket passed back from a call to Matchmake or StartGame. */ - public String Ticket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RedeemMatchmakerTicketResult { - /** Error value if the ticket was not validated. */ - public String Error; - /** Boolean indicating whether the ticket was validated by the PlayFab service. */ - public Boolean TicketIsValid; - /** User account information for the user validated. */ - public UserAccountInfo UserInfo; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RefreshGameServerInstanceHeartbeatRequest { - /** Unique identifier of the Game Server Instance for which the heartbeat is updated. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RefreshGameServerInstanceHeartbeatResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegisterGameRequest { - /** Unique identifier of the build running on the Game Server Instance. */ - public String Build; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Game Mode the Game Server instance is running. Note that this must be defined in the Game Modes tab in the PlayFab Game - * Manager, along with the Build ID (the same Game Mode can be defined for multiple Build IDs). - */ - public String GameMode; - /** Previous lobby id if re-registering an existing game. */ - public String LobbyId; - /** - * Region in which the Game Server Instance is running. For matchmaking using non-AWS region names, set this to any AWS - * region and use Tags (below) to specify your custom region. - */ - public Region Region; - /** IPV4 address of the game server instance. */ - public String ServerIPV4Address; - /** IPV6 address (if any) of the game server instance. */ - public String ServerIPV6Address; - /** Port number for communication with the Game Server Instance. */ - public String ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** Tags for the Game Server Instance */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegisterGameResponse { - /** - * Unique identifier generated for the Game Server Instance that is registered. If LobbyId is specified in request and the - * game still exists in PlayFab, the LobbyId in request is returned. Otherwise a new lobby id will be returned. - */ - public String LobbyId; - - } - public static class RemoveFriendRequest { /** PlayFab identifier of the friend account which is to be removed. */ public String FriendPlayFabId; @@ -4237,57 +4095,6 @@ public static class SetFriendTagsRequest { } - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceDataRequest { - /** Custom data to set for the specified game server instance. */ - public String GameServerData; - /** Unique identifier of the Game Instance to be updated, in decimal format. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceDataResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceStateRequest { - /** Unique identifier of the Game Instance to be updated, in decimal format. */ - public String LobbyId; - /** State to set for the specified game server instance. */ - public GameInstanceState State; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceStateResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceTagsRequest { - /** Unique identifier of the Game Server Instance to be updated. */ - public String LobbyId; - /** - * Tags to set for the specified Game Server Instance. Note that this is the complete list of tags to be associated with - * the Game Server Instance. - */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceTagsResult { - - } - /** * APIs that require signatures require that the player have a configured Player Secret Key that is used to sign all * requests. Players that don't have a secret will be blocked from making API calls until it is configured. To create a diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java index 034ab5b8..ab5f6827 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.198.230901"; - public static String BuildIdentifier = "adobuild_javasdk_115"; - public static String SdkVersionString = "JavaSDK-0.198.230901"; + public static String SdkVersion = "0.199.230915"; + public static String BuildIdentifier = "adobuild_javasdk_116"; + public static String SdkVersionString = "JavaSDK-0.199.230915"; public static Map RequestGetParams; static { diff --git a/PlayFabServerSDK/packageMe.ps1 b/PlayFabServerSDK/packageMe.ps1 index 471fd536..5275e59d 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.198.230901.jar -Destination ../../builds/server-sdk-0.198.230901.jar \ No newline at end of file +Copy-Item server-sdk-0.199.230915.jar -Destination ../../builds/server-sdk-0.199.230915.jar \ No newline at end of file diff --git a/PlayFabServerSDK/packageMe.sh b/PlayFabServerSDK/packageMe.sh index 3ea826a8..ba0623bd 100644 --- a/PlayFabServerSDK/packageMe.sh +++ b/PlayFabServerSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp server-sdk-0.198.230901.jar ../../builds/server-sdk-0.198.230901.jar +cp server-sdk-0.199.230915.jar ../../builds/server-sdk-0.199.230915.jar diff --git a/PlayFabServerSDK/pom.xml b/PlayFabServerSDK/pom.xml index 8f6db313..1e24c11b 100644 --- a/PlayFabServerSDK/pom.xml +++ b/PlayFabServerSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab server-sdk - 0.198.230901 + 0.199.230915 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/PlayFabAdminAPI.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminAPI.java index 845eb0f0..e49d260f 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminAPI.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminAPI.java @@ -2443,146 +2443,6 @@ private static PlayFabResult privateGetDataReportAsync(fina return pfResult; } - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - * @param request GetMatchmakerGameInfoRequest - * @return Async Task will return GetMatchmakerGameInfoResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetMatchmakerGameInfoAsync(final GetMatchmakerGameInfoRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameInfoAsync(request); - } - }); - } - - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - * @param request GetMatchmakerGameInfoRequest - * @return GetMatchmakerGameInfoResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetMatchmakerGameInfo(final GetMatchmakerGameInfoRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameInfoAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the details for a specific completed session, including links to standard out and standard error logs - * @deprecated Please use MultiplayerServer/GetMultiplayerSessionLogsBySessionId instead. - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetMatchmakerGameInfoAsync(final GetMatchmakerGameInfoRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/GetMatchmakerGameInfo"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GetMatchmakerGameInfoResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - * @param request GetMatchmakerGameModesRequest - * @return Async Task will return GetMatchmakerGameModesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> GetMatchmakerGameModesAsync(final GetMatchmakerGameModesRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameModesAsync(request); - } - }); - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - * @param request GetMatchmakerGameModesRequest - * @return GetMatchmakerGameModesResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult GetMatchmakerGameModes(final GetMatchmakerGameModesRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateGetMatchmakerGameModesAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the details of defined game modes for the specified game server executable - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateGetMatchmakerGameModesAsync(final GetMatchmakerGameModesRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/GetMatchmakerGameModes"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - GetMatchmakerGameModesResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Get the list of titles that the player has played * @param request GetPlayedTitleListRequest @@ -4689,76 +4549,6 @@ private static PlayFabResult privateListVirtualC return pfResult; } - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - * @param request ModifyServerBuildRequest - * @return Async Task will return ModifyServerBuildResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> ModifyServerBuildAsync(final ModifyServerBuildRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateModifyServerBuildAsync(request); - } - }); - } - - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - * @param request ModifyServerBuildRequest - * @return ModifyServerBuildResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult ModifyServerBuild(final ModifyServerBuildRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateModifyServerBuildAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Updates the build details for the specified game server executable - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateModifyServerBuildAsync(final ModifyServerBuildRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Admin/ModifyServerBuild"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - ModifyServerBuildResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Attempts to process an order refund through the original real money payment provider. diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java index 78ad9f95..dff4a7f6 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1388,30 +1388,6 @@ public static class FirstLoginTimespanSegmentFilter { } - /** @deprecated Do not use */ - @Deprecated - public static enum GameBuildStatus { - Available, - Validating, - InvalidBuildPackage, - Processing, - FailedToProcess - } - - /** @deprecated Do not use */ - @Deprecated - public static class GameModeInfo { - /** specific game mode type */ - public String Gamemode; - /** maximum user count a specific Game Server Instance can support */ - public Long MaxPlayerCount; - /** minimum user count required for this Game Server Instance to continue (usually 1) */ - public Long MinPlayerCount; - /** whether to start as an open session, meaning that players can matchmake into it (defaults to true) */ - public Boolean StartOpen; - - } - public static enum GenericErrorCodes { Success, UnkownError, @@ -2288,66 +2264,6 @@ public static class GetDataReportResult { } - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameInfoRequest { - /** unique identifier of the lobby for which info is being requested */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameInfoResult { - /** version identifier of the game server executable binary being run */ - public String BuildVersion; - /** time when Game Server Instance is currently scheduled to end */ - public Date EndTime; - /** unique identifier of the lobby */ - public String LobbyId; - /** game mode for this Game Server Instance */ - public String Mode; - /** array of unique PlayFab identifiers for users currently connected to this Game Server Instance */ - @Unordered - public ArrayList Players; - /** region in which the Game Server Instance is running */ - public Region Region; - /** IPV4 address of the server */ - public String ServerIPV4Address; - /** IPV6 address of the server */ - public String ServerIPV6Address; - /** communication port for this Game Server Instance */ - public Long ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** time when the Game Server Instance was created */ - public Date StartTime; - /** unique identifier of the Game Server Instance for this lobby */ - public String TitleId; - - } - - /** - * These details are used by the PlayFab matchmaking service to determine if an existing Game Server Instance has room for - * additional users, and by the PlayFab game server management service to determine when a new Game Server Host should be - * created in order to prevent excess load on existing Hosts. - * @deprecated Do not use - */ - @Deprecated - public static class GetMatchmakerGameModesRequest { - /** previously uploaded build version for which game modes are being requested */ - public String BuildVersion; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class GetMatchmakerGameModesResult { - /** array of game modes available for the specified build */ - public ArrayList GameModes; - - } - /** Useful for identifying titles of which the player's data will be deleted by DeleteMasterPlayer. */ public static class GetPlayedTitleListRequest { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ @@ -3210,65 +3126,6 @@ public static class MembershipModel { } - /** @deprecated Do not use */ - @Deprecated - public static class ModifyServerBuildRequest { - /** array of regions where this build can used, when it is active */ - public ArrayList ActiveRegions; - /** unique identifier of the previously uploaded build executable to be updated */ - public String BuildId; - /** appended to the end of the command line when starting game servers */ - public String CommandLineTemplate; - /** developer comment(s) for this build */ - public String Comment; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** path to the game server executable. Defaults to gameserver.exe */ - public String ExecutablePath; - /** maximum number of game server instances that can run on a single host machine */ - public Integer MaxGamesPerHost; - /** - * minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - * machines (given the number of current running host machines and game server instances) - */ - public Integer MinFreeGameSlots; - /** new timestamp */ - public Date Timestamp; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class ModifyServerBuildResult { - /** array of regions where this build can used, when it is active */ - public ArrayList ActiveRegions; - /** unique identifier for this build executable */ - public String BuildId; - /** appended to the end of the command line when starting game servers */ - public String CommandLineTemplate; - /** developer comment(s) for this build */ - public String Comment; - /** path to the game server executable. Defaults to gameserver.exe */ - public String ExecutablePath; - /** maximum number of game server instances that can run on a single host machine */ - public Integer MaxGamesPerHost; - /** - * minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - * machines (given the number of current running host machines and game server instances) - */ - public Integer MinFreeGameSlots; - /** the current status of the build validation and processing steps */ - public GameBuildStatus Status; - /** time this build was last modified (or uploaded, if this build has never been modified) */ - public Date Timestamp; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - public String TitleId; - - } - public static class ModifyUserVirtualCurrencyResult { /** Balance of the virtual currency after modification. */ public Integer Balance; @@ -3649,18 +3506,6 @@ public static class RefundPurchaseResponse { } - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - /** * This API will trigger a player_tag_removed event and remove a tag with the given TagName and PlayFabID from the * corresponding player profile. TagName can be used for segmentation and it is limited to 256 characters diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java index bc43c72e..a12172be 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerAPI.java @@ -13,287 +13,4 @@ public class PlayFabMatchmakerAPI { private static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").create(); - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - * @param request AuthUserRequest - * @return Async Task will return AuthUserResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> AuthUserAsync(final AuthUserRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateAuthUserAsync(request); - } - }); - } - - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - * @param request AuthUserRequest - * @return AuthUserResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult AuthUser(final AuthUserRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateAuthUserAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Validates a user with the PlayFab service - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateAuthUserAsync(final AuthUserRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/AuthUser"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - AuthUserResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerJoinedRequest - * @return Async Task will return PlayerJoinedResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> PlayerJoinedAsync(final PlayerJoinedRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerJoinedAsync(request); - } - }); - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerJoinedRequest - * @return PlayerJoinedResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult PlayerJoined(final PlayerJoinedRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerJoinedAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privatePlayerJoinedAsync(final PlayerJoinedRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/PlayerJoined"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - PlayerJoinedResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerLeftRequest - * @return Async Task will return PlayerLeftResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> PlayerLeftAsync(final PlayerLeftRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerLeftAsync(request); - } - }); - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - * @param request PlayerLeftRequest - * @return PlayerLeftResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult PlayerLeft(final PlayerLeftRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privatePlayerLeftAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privatePlayerLeftAsync(final PlayerLeftRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/PlayerLeft"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - PlayerLeftResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - * @param request UserInfoRequest - * @return Async Task will return UserInfoResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> UserInfoAsync(final UserInfoRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateUserInfoAsync(request); - } - }); - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - * @param request UserInfoRequest - * @return UserInfoResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult UserInfo(final UserInfoRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateUserInfoAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute - * effective matches - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateUserInfoAsync(final UserInfoRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Matchmaker/UserInfo"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - UserInfoResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - } diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java index 80d97dfc..45431fc1 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMatchmakerModels.java @@ -5,177 +5,4 @@ public class PlayFabMatchmakerModels { - /** - * This API allows the external match-making service to confirm that the user has a valid Session Ticket for the title, in - * order to securely enable match-making. The client passes the user's Session Ticket to the external match-making service, - * which then passes the Session Ticket in as the AuthorizationTicket in this call. - * @deprecated Do not use - */ - @Deprecated - public static class AuthUserRequest { - /** Session Ticket provided by the client. */ - public String AuthorizationTicket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class AuthUserResponse { - /** Boolean indicating if the user has been authorized to use the external match-making service. */ - public Boolean Authorized; - /** PlayFab unique identifier of the account that has been authorized. */ - public String PlayFabId; - - } - - /** - * A unique instance of an item in a user's inventory. Note, to retrieve additional information for an item such as Tags, - * Description that are the same across all instances of the item, a call to GetCatalogItems is required. The ItemID of can - * be matched to a catalog entry, which contains the additional information. Also note that Custom Data is only set when - * the User's specific instance has updated the CustomData via a call to UpdateUserInventoryItemCustomData. Other fields - * such as UnitPrice and UnitCurrency are only set when the item was granted via a purchase. - * @deprecated Do not use - */ - @Deprecated - public static class ItemInstance implements Comparable { - /** Game specific comment associated with this instance when it was added to the user inventory. */ - public String Annotation; - /** Array of unique items that were awarded when this catalog item was purchased. */ - public ArrayList BundleContents; - /** - * Unique identifier for the parent inventory item, as defined in the catalog, for object which were added from a bundle or - * container. - */ - public String BundleParent; - /** Catalog version for the inventory item, when this instance was created. */ - public String CatalogVersion; - /** - * A set of custom key-value pairs on the instance of the inventory item, which is not to be confused with the catalog - * item's custom data. - */ - public Map CustomData; - /** CatalogItem.DisplayName at the time this item was purchased. */ - public String DisplayName; - /** Timestamp for when this instance will expire. */ - public Date Expiration; - /** Class name for the inventory item, as defined in the catalog. */ - public String ItemClass; - /** Unique identifier for the inventory item, as defined in the catalog. */ - public String ItemId; - /** Unique item identifier for this specific instance of the item. */ - public String ItemInstanceId; - /** Timestamp for when this instance was purchased. */ - public Date PurchaseDate; - /** Total number of remaining uses, if this is a consumable item. */ - public Integer RemainingUses; - /** Currency type for the cost of the catalog item. Not available when granting items. */ - public String UnitCurrency; - /** Cost of the catalog item in the given currency. Not available when granting items. */ - public Long UnitPrice; - /** The number of uses that were added or removed to this item in this call. */ - public Integer UsesIncrementedBy; - - public int compareTo(ItemInstance other) { - if (other == null || other.ItemInstanceId == null) return 1; - if (ItemInstanceId == null) return -1; - return ItemInstanceId.compareTo(other.ItemInstanceId); - } - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerJoinedRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Unique identifier of the Game Server Instance the user is joining. This must be a Game Server Instance started with the - * Matchmaker/StartGame API. - */ - public String LobbyId; - /** PlayFab unique identifier for the player joining. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerJoinedResponse { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerLeftRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Unique identifier of the Game Server Instance the user is leaving. This must be a Game Server Instance started with the - * Matchmaker/StartGame API. - */ - public String LobbyId; - /** PlayFab unique identifier for the player leaving. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class PlayerLeftResponse { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class UserInfoRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Minimum catalog version for which data is requested (filters the results to only contain inventory items which have a - * catalog version of this or higher). - */ - public Integer MinCatalogVersion; - /** PlayFab unique identifier of the user whose information is being requested. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class UserInfoResponse { - /** Array of inventory items in the user's current inventory. */ - @Unordered("ItemInstanceId") - public ArrayList Inventory; - /** Boolean indicating whether the user is a developer. */ - public Boolean IsDeveloper; - /** PlayFab unique identifier of the user whose information was requested. */ - public String PlayFabId; - /** Steam unique identifier, if the user has an associated Steam account. */ - public String SteamId; - /** Title specific display name, if set. */ - public String TitleDisplayName; - /** PlayFab unique user name. */ - public String Username; - /** Array of virtual currency balance(s) belonging to the user. */ - public Map VirtualCurrency; - /** Array of remaining times and timestamps for virtual currencies. */ - public Map VirtualCurrencyRechargeTimes; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class VirtualCurrencyRechargeTime { - /** - * Maximum value to which the regenerating currency will automatically increment. Note that it can exceed this value - * through use of the AddUserVirtualCurrency API call. However, it will not regenerate automatically until it has fallen - * below this value. - */ - public Integer RechargeMax; - /** Server timestamp in UTC indicating the next time the virtual currency will be incremented. */ - public Date RechargeTime; - /** Time remaining (in seconds) before the next recharge increment of the virtual currency. */ - public Integer SecondsToRecharge; - - } - } diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java index baf797aa..03456f52 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java @@ -1864,10 +1864,18 @@ public static class ListContainerImageTagsRequest { public Map CustomTags; /** The container images we want to list tags for. */ public String ImageName; + /** The page size for the request. */ + public Integer PageSize; + /** The skip token for the paged request. */ + public String SkipToken; } public static class ListContainerImageTagsResponse { + /** The page size on the response. */ + public Integer PageSize; + /** The skip token for the paged response. */ + public String SkipToken; /** The list of tags for a particular container image. */ public ArrayList Tags; diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabProfilesModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabProfilesModels.java index dafd4426..5ac15b90 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabProfilesModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabProfilesModels.java @@ -114,11 +114,25 @@ public static class EntityProfileFileMetadata { } + public static class EntityStatisticAttributeValue { + /** Metadata associated with the Statistic. */ + public String Metadata; + /** Attribute name. */ + public String Name; + /** Attribute Statistic scores. */ + public ArrayList Scores; + + } + public static class EntityStatisticValue { + /** Attribute Statistic values. */ + public Map AttributeStatistics; /** Metadata associated with the Statistic. */ public String Metadata; /** Statistic name */ public String Name; + /** Statistic scores */ + public ArrayList Scores; /** Statistic value */ public Integer Value; /** Statistic version */ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerAPI.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerAPI.java index f5bdd757..c24a2103 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerAPI.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerAPI.java @@ -1007,76 +1007,6 @@ private static PlayFabResult privateDeleteSharedGroupAsync(final return pfResult; } - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - * @param request DeregisterGameRequest - * @return Async Task will return DeregisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> DeregisterGameAsync(final DeregisterGameRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateDeregisterGameAsync(request); - } - }); - } - - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - * @param request DeregisterGameRequest - * @return DeregisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult DeregisterGame(final DeregisterGameRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateDeregisterGameAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Inform the matchmaker that a Game Server Instance is removed. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateDeregisterGameAsync(final DeregisterGameRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/DeregisterGame"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - DeregisterGameResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would @@ -4763,6 +4693,68 @@ private static PlayFabResult privateLinkNintendoServiceAccountAsync return pfResult; } + /** + * Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + * @param request LinkNintendoServiceAccountSubjectRequest + * @return Async Task will return EmptyResult + */ + @SuppressWarnings("unchecked") + public static FutureTask> LinkNintendoServiceAccountSubjectAsync(final LinkNintendoServiceAccountSubjectRequest request) { + return new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { + return privateLinkNintendoServiceAccountSubjectAsync(request); + } + }); + } + + /** + * Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + * @param request LinkNintendoServiceAccountSubjectRequest + * @return EmptyResult + */ + @SuppressWarnings("unchecked") + public static PlayFabResult LinkNintendoServiceAccountSubject(final LinkNintendoServiceAccountSubjectRequest request) { + FutureTask> task = new FutureTask(new Callable>() { + public PlayFabResult call() throws Exception { + return privateLinkNintendoServiceAccountSubjectAsync(request); + } + }); + try { + task.run(); + return task.get(); + } catch(Exception e) { + PlayFabResult exceptionResult = new PlayFabResult(); + exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); + return exceptionResult; + } + } + + /** Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account */ + @SuppressWarnings("unchecked") + private static PlayFabResult privateLinkNintendoServiceAccountSubjectAsync(final LinkNintendoServiceAccountSubjectRequest request) throws Exception { + if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); + + FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/LinkNintendoServiceAccountSubject"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); + 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(); + result.Error = error; + return result; + } + String resultRawJson = (String) httpResult; + + PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); + EmptyResult result = resultData.data; + + PlayFabResult pfResult = new PlayFabResult(); + pfResult.Result = result; + return pfResult; + } + /** * Links the NintendoSwitchDeviceId to the user's PlayFab account * @param request LinkNintendoSwitchDeviceIdRequest @@ -5671,76 +5663,6 @@ private static PlayFabResult privateMoveItemT return pfResult; } - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - * @param request NotifyMatchmakerPlayerLeftRequest - * @return Async Task will return NotifyMatchmakerPlayerLeftResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> NotifyMatchmakerPlayerLeftAsync(final NotifyMatchmakerPlayerLeftRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateNotifyMatchmakerPlayerLeftAsync(request); - } - }); - } - - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - * @param request NotifyMatchmakerPlayerLeftRequest - * @return NotifyMatchmakerPlayerLeftResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult NotifyMatchmakerPlayerLeft(final NotifyMatchmakerPlayerLeftRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateNotifyMatchmakerPlayerLeftAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Informs the PlayFab match-making service that the user specified has left the Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateNotifyMatchmakerPlayerLeftAsync(final NotifyMatchmakerPlayerLeftRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/NotifyMatchmakerPlayerLeft"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - NotifyMatchmakerPlayerLeftResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for * version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the @@ -5811,216 +5733,6 @@ private static PlayFabResult privateRedeemCouponAsync(final return pfResult; } - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - * @param request RedeemMatchmakerTicketRequest - * @return Async Task will return RedeemMatchmakerTicketResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RedeemMatchmakerTicketAsync(final RedeemMatchmakerTicketRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRedeemMatchmakerTicketAsync(request); - } - }); - } - - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - * @param request RedeemMatchmakerTicketRequest - * @return RedeemMatchmakerTicketResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RedeemMatchmakerTicket(final RedeemMatchmakerTicketRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRedeemMatchmakerTicketAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Validates a Game Server session ticket and returns details about the user - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRedeemMatchmakerTicketAsync(final RedeemMatchmakerTicketRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RedeemMatchmakerTicket"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RedeemMatchmakerTicketResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - * @param request RefreshGameServerInstanceHeartbeatRequest - * @return Async Task will return RefreshGameServerInstanceHeartbeatResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RefreshGameServerInstanceHeartbeatAsync(final RefreshGameServerInstanceHeartbeatRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRefreshGameServerInstanceHeartbeatAsync(request); - } - }); - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - * @param request RefreshGameServerInstanceHeartbeatRequest - * @return RefreshGameServerInstanceHeartbeatResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RefreshGameServerInstanceHeartbeat(final RefreshGameServerInstanceHeartbeatRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRefreshGameServerInstanceHeartbeatAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRefreshGameServerInstanceHeartbeatAsync(final RefreshGameServerInstanceHeartbeatRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RefreshGameServerInstanceHeartbeat"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RefreshGameServerInstanceHeartbeatResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - * @param request RegisterGameRequest - * @return Async Task will return RegisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> RegisterGameAsync(final RegisterGameRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRegisterGameAsync(request); - } - }); - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - * @param request RegisterGameRequest - * @return RegisterGameResponse - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult RegisterGame(final RegisterGameRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateRegisterGameAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Inform the matchmaker that a new Game Server Instance is added. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateRegisterGameAsync(final RegisterGameRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/RegisterGame"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - RegisterGameResponse result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Removes the specified friend from the the user's friend list * @param request RemoveFriendRequest @@ -6992,216 +6704,6 @@ private static PlayFabResult privateSetFriendTagsAsync(final SetF return pfResult; } - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceDataRequest - * @return Async Task will return SetGameServerInstanceDataResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceDataAsync(final SetGameServerInstanceDataRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceDataAsync(request); - } - }); - } - - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceDataRequest - * @return SetGameServerInstanceDataResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceData(final SetGameServerInstanceDataRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceDataAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Sets the custom data of the indicated Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceDataAsync(final SetGameServerInstanceDataRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceData"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceDataResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - * @param request SetGameServerInstanceStateRequest - * @return Async Task will return SetGameServerInstanceStateResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceStateAsync(final SetGameServerInstanceStateRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceStateAsync(request); - } - }); - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - * @param request SetGameServerInstanceStateRequest - * @return SetGameServerInstanceStateResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceState(final SetGameServerInstanceStateRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceStateAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set the state of the indicated Game Server Instance. - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceStateAsync(final SetGameServerInstanceStateRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceState"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceStateResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceTagsRequest - * @return Async Task will return SetGameServerInstanceTagsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static FutureTask> SetGameServerInstanceTagsAsync(final SetGameServerInstanceTagsRequest request) { - return new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceTagsAsync(request); - } - }); - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - * @param request SetGameServerInstanceTagsRequest - * @return SetGameServerInstanceTagsResult - */ - @Deprecated - @SuppressWarnings("unchecked") - public static PlayFabResult SetGameServerInstanceTags(final SetGameServerInstanceTagsRequest request) { - FutureTask> task = new FutureTask(new Callable>() { - public PlayFabResult call() throws Exception { - return privateSetGameServerInstanceTagsAsync(request); - } - }); - try { - task.run(); - return task.get(); - } catch(Exception e) { - PlayFabResult exceptionResult = new PlayFabResult(); - exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null); - return exceptionResult; - } - } - - /** - * Set custom tags for the specified Game Server Instance - * @deprecated Do not use - */ - @Deprecated - @SuppressWarnings("unchecked") - private static PlayFabResult privateSetGameServerInstanceTagsAsync(final SetGameServerInstanceTagsRequest request) throws Exception { - if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); - - FutureTask task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/SetGameServerInstanceTags"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey); - 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(); - result.Error = error; - return result; - } - String resultRawJson = (String) httpResult; - - PlayFabJsonSuccess resultData = gson.fromJson(resultRawJson, new TypeToken>(){}.getType()); - SetGameServerInstanceTagsResult result = resultData.data; - - PlayFabResult pfResult = new PlayFabResult(); - pfResult.Result = result; - return pfResult; - } - /** * Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's * secret use the Admin or Server API method SetPlayerSecret. diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java index 1f4b6421..fbd8286d 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -935,22 +935,6 @@ public static class DeleteSharedGroupRequest { } - /** @deprecated Do not use */ - @Deprecated - public static class DeregisterGameRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier for the Game Server Instance that is being deregistered. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class DeregisterGameResponse { - - } - public static enum EmailVerificationStatus { Unverified, Pending, @@ -1120,13 +1104,6 @@ public static class FriendInfo { } - /** @deprecated Do not use */ - @Deprecated - public static enum GameInstanceState { - Open, - Closed - } - public static enum GenericErrorCodes { Success, UnkownError, @@ -3109,6 +3086,18 @@ public static class LinkNintendoServiceAccountRequest { } + public static class LinkNintendoServiceAccountSubjectRequest { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + public Map CustomTags; + /** If another user is already linked to a specific Nintendo Service Account, unlink the other user and re-link. */ + public Boolean ForceLink; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + public String PlayFabId; + /** The Nintendo Service Account subject or id to link to the PlayFab user. */ + public String Subject; + + } + public static class LinkNintendoSwitchDeviceIdRequest { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; @@ -3493,35 +3482,6 @@ public static class NintendoSwitchPlayFabIdPair { } - /** @deprecated Do not use */ - @Deprecated - public static class NotifyMatchmakerPlayerLeftRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier of the Game Instance the user is leaving. */ - public String LobbyId; - /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ - public String PlayFabId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class NotifyMatchmakerPlayerLeftResult { - /** State of user leaving the Game Server Instance. */ - public PlayerConnectionState PlayerState; - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum PlayerConnectionState { - Unassigned, - Connecting, - Participating, - Participated - } - public static class PlayerLeaderboardEntry { /** Title-specific display name of the user for this leaderboard entry. */ public String DisplayName; @@ -3810,108 +3770,6 @@ public static class RedeemCouponResult { } - /** - * This function is used by a Game Server Instance to validate with the PlayFab service that a user has been registered as - * connected to the server. The Ticket is provided to the client either as a result of a call to StartGame or Matchmake, - * each of which return a Ticket specific to the Game Server Instance. This function will fail in any case where the Ticket - * presented is not valid for the specific Game Server Instance making the call. Note that data returned may be Personally - * Identifying Information (PII), such as email address, and so care should be taken in how this data is stored and - * managed. Since this call will always return the relevant information for users who have accessed the title, the - * recommendation is to not store this data locally. - * @deprecated Do not use - */ - @Deprecated - public static class RedeemMatchmakerTicketRequest { - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** Unique identifier of the Game Server Instance that is asking for validation of the authorization ticket. */ - public String LobbyId; - /** Server authorization ticket passed back from a call to Matchmake or StartGame. */ - public String Ticket; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RedeemMatchmakerTicketResult { - /** Error value if the ticket was not validated. */ - public String Error; - /** Boolean indicating whether the ticket was validated by the PlayFab service. */ - public Boolean TicketIsValid; - /** User account information for the user validated. */ - public UserAccountInfo UserInfo; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RefreshGameServerInstanceHeartbeatRequest { - /** Unique identifier of the Game Server Instance for which the heartbeat is updated. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RefreshGameServerInstanceHeartbeatResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static enum Region { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegisterGameRequest { - /** Unique identifier of the build running on the Game Server Instance. */ - public String Build; - /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ - public Map CustomTags; - /** - * Game Mode the Game Server instance is running. Note that this must be defined in the Game Modes tab in the PlayFab Game - * Manager, along with the Build ID (the same Game Mode can be defined for multiple Build IDs). - */ - public String GameMode; - /** Previous lobby id if re-registering an existing game. */ - public String LobbyId; - /** - * Region in which the Game Server Instance is running. For matchmaking using non-AWS region names, set this to any AWS - * region and use Tags (below) to specify your custom region. - */ - public Region Region; - /** IPV4 address of the game server instance. */ - public String ServerIPV4Address; - /** IPV6 address (if any) of the game server instance. */ - public String ServerIPV6Address; - /** Port number for communication with the Game Server Instance. */ - public String ServerPort; - /** Public DNS name (if any) of the server */ - public String ServerPublicDNSName; - /** Tags for the Game Server Instance */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class RegisterGameResponse { - /** - * Unique identifier generated for the Game Server Instance that is registered. If LobbyId is specified in request and the - * game still exists in PlayFab, the LobbyId in request is returned. Otherwise a new lobby id will be returned. - */ - public String LobbyId; - - } - public static class RemoveFriendRequest { /** PlayFab identifier of the friend account which is to be removed. */ public String FriendPlayFabId; @@ -4237,57 +4095,6 @@ public static class SetFriendTagsRequest { } - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceDataRequest { - /** Custom data to set for the specified game server instance. */ - public String GameServerData; - /** Unique identifier of the Game Instance to be updated, in decimal format. */ - public String LobbyId; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceDataResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceStateRequest { - /** Unique identifier of the Game Instance to be updated, in decimal format. */ - public String LobbyId; - /** State to set for the specified game server instance. */ - public GameInstanceState State; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceStateResult { - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceTagsRequest { - /** Unique identifier of the Game Server Instance to be updated. */ - public String LobbyId; - /** - * Tags to set for the specified Game Server Instance. Note that this is the complete list of tags to be associated with - * the Game Server Instance. - */ - public Map Tags; - - } - - /** @deprecated Do not use */ - @Deprecated - public static class SetGameServerInstanceTagsResult { - - } - /** * APIs that require signatures require that the player have a configured Player Secret Key that is used to sign all * requests. Players that don't have a secret will be blocked from making API calls until it is configured. To create a diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java index d9ea9a45..a223b098 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.198.230901"; - public static String BuildIdentifier = "adobuild_javasdk_115"; - public static String SdkVersionString = "JavaSDK-0.198.230901"; + public static String SdkVersion = "0.199.230915"; + public static String BuildIdentifier = "adobuild_javasdk_116"; + public static String SdkVersionString = "JavaSDK-0.199.230915"; public static Map RequestGetParams; static { diff --git a/builds/client-sdk-0.199.230915.jar b/builds/client-sdk-0.199.230915.jar new file mode 100644 index 00000000..6463e56c Binary files /dev/null and b/builds/client-sdk-0.199.230915.jar differ diff --git a/builds/combo-sdk-0.199.230915.jar b/builds/combo-sdk-0.199.230915.jar new file mode 100644 index 00000000..d072e9fd Binary files /dev/null and b/builds/combo-sdk-0.199.230915.jar differ