@@ -1873,76 +1873,6 @@ private static PlayFabResult<GetContentDownloadUrlResult> privateGetContentDownl
18731873 return pfResult;
18741874 }
18751875
1876- /**
1877- * Get details about all current running game servers matching the given parameters.
1878- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
1879- * @param request CurrentGamesRequest
1880- * @return Async Task will return CurrentGamesResult
1881- */
1882- @Deprecated
1883- @SuppressWarnings("unchecked")
1884- public static FutureTask<PlayFabResult<CurrentGamesResult>> GetCurrentGamesAsync(final CurrentGamesRequest request) {
1885- return new FutureTask(new Callable<PlayFabResult<CurrentGamesResult>>() {
1886- public PlayFabResult<CurrentGamesResult> call() throws Exception {
1887- return privateGetCurrentGamesAsync(request);
1888- }
1889- });
1890- }
1891-
1892- /**
1893- * Get details about all current running game servers matching the given parameters.
1894- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
1895- * @param request CurrentGamesRequest
1896- * @return CurrentGamesResult
1897- */
1898- @Deprecated
1899- @SuppressWarnings("unchecked")
1900- public static PlayFabResult<CurrentGamesResult> GetCurrentGames(final CurrentGamesRequest request) {
1901- FutureTask<PlayFabResult<CurrentGamesResult>> task = new FutureTask(new Callable<PlayFabResult<CurrentGamesResult>>() {
1902- public PlayFabResult<CurrentGamesResult> call() throws Exception {
1903- return privateGetCurrentGamesAsync(request);
1904- }
1905- });
1906- try {
1907- task.run();
1908- return task.get();
1909- } catch(Exception e) {
1910- PlayFabResult<CurrentGamesResult> exceptionResult = new PlayFabResult<CurrentGamesResult>();
1911- exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
1912- return exceptionResult;
1913- }
1914- }
1915-
1916- /**
1917- * Get details about all current running game servers matching the given parameters.
1918- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
1919- */
1920- @Deprecated
1921- @SuppressWarnings("unchecked")
1922- private static PlayFabResult<CurrentGamesResult> privateGetCurrentGamesAsync(final CurrentGamesRequest request) throws Exception {
1923- if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
1924-
1925- FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetCurrentGames"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
1926- task.run();
1927- Object httpResult = task.get();
1928- if (httpResult instanceof PlayFabError) {
1929- PlayFabError error = (PlayFabError)httpResult;
1930- if (PlayFabSettings.GlobalErrorHandler != null)
1931- PlayFabSettings.GlobalErrorHandler.callback(error);
1932- PlayFabResult result = new PlayFabResult<CurrentGamesResult>();
1933- result.Error = error;
1934- return result;
1935- }
1936- String resultRawJson = (String) httpResult;
1937-
1938- PlayFabJsonSuccess<CurrentGamesResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<CurrentGamesResult>>(){}.getType());
1939- CurrentGamesResult result = resultData.data;
1940-
1941- PlayFabResult<CurrentGamesResult> pfResult = new PlayFabResult<CurrentGamesResult>();
1942- pfResult.Result = result;
1943- return pfResult;
1944- }
1945-
19461876 /**
19471877 * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in
19481878 * the leaderboard
@@ -2144,76 +2074,6 @@ private static PlayFabResult<GetFriendsListResult> privateGetFriendsListAsync(fi
21442074 return pfResult;
21452075 }
21462076
2147- /**
2148- * Get details about the regions hosting game servers matching the given parameters.
2149- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
2150- * @param request GameServerRegionsRequest
2151- * @return Async Task will return GameServerRegionsResult
2152- */
2153- @Deprecated
2154- @SuppressWarnings("unchecked")
2155- public static FutureTask<PlayFabResult<GameServerRegionsResult>> GetGameServerRegionsAsync(final GameServerRegionsRequest request) {
2156- return new FutureTask(new Callable<PlayFabResult<GameServerRegionsResult>>() {
2157- public PlayFabResult<GameServerRegionsResult> call() throws Exception {
2158- return privateGetGameServerRegionsAsync(request);
2159- }
2160- });
2161- }
2162-
2163- /**
2164- * Get details about the regions hosting game servers matching the given parameters.
2165- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
2166- * @param request GameServerRegionsRequest
2167- * @return GameServerRegionsResult
2168- */
2169- @Deprecated
2170- @SuppressWarnings("unchecked")
2171- public static PlayFabResult<GameServerRegionsResult> GetGameServerRegions(final GameServerRegionsRequest request) {
2172- FutureTask<PlayFabResult<GameServerRegionsResult>> task = new FutureTask(new Callable<PlayFabResult<GameServerRegionsResult>>() {
2173- public PlayFabResult<GameServerRegionsResult> call() throws Exception {
2174- return privateGetGameServerRegionsAsync(request);
2175- }
2176- });
2177- try {
2178- task.run();
2179- return task.get();
2180- } catch(Exception e) {
2181- PlayFabResult<GameServerRegionsResult> exceptionResult = new PlayFabResult<GameServerRegionsResult>();
2182- exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
2183- return exceptionResult;
2184- }
2185- }
2186-
2187- /**
2188- * Get details about the regions hosting game servers matching the given parameters.
2189- * @deprecated Please use MultiplayerServer/ListMultiplayerServers instead.
2190- */
2191- @Deprecated
2192- @SuppressWarnings("unchecked")
2193- private static PlayFabResult<GameServerRegionsResult> privateGetGameServerRegionsAsync(final GameServerRegionsRequest request) throws Exception {
2194- if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
2195-
2196- FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetGameServerRegions"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
2197- task.run();
2198- Object httpResult = task.get();
2199- if (httpResult instanceof PlayFabError) {
2200- PlayFabError error = (PlayFabError)httpResult;
2201- if (PlayFabSettings.GlobalErrorHandler != null)
2202- PlayFabSettings.GlobalErrorHandler.callback(error);
2203- PlayFabResult result = new PlayFabResult<GameServerRegionsResult>();
2204- result.Error = error;
2205- return result;
2206- }
2207- String resultRawJson = (String) httpResult;
2208-
2209- PlayFabJsonSuccess<GameServerRegionsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GameServerRegionsResult>>(){}.getType());
2210- GameServerRegionsResult result = resultData.data;
2211-
2212- PlayFabResult<GameServerRegionsResult> pfResult = new PlayFabResult<GameServerRegionsResult>();
2213- pfResult.Result = result;
2214- return pfResult;
2215- }
2216-
22172077 /**
22182078 * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard
22192079 * @param request GetLeaderboardRequest
@@ -7258,91 +7118,6 @@ private static PlayFabResult<LoginResult> privateLoginWithXboxAsync(final LoginW
72587118 return pfResult;
72597119 }
72607120
7261- /**
7262- * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific
7263- * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required
7264- * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is
7265- * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the
7266- * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be
7267- * GameNotFound.
7268- * @deprecated Please use Match/CreateMatchmakingTicket instead.
7269- * @param request MatchmakeRequest
7270- * @return Async Task will return MatchmakeResult
7271- */
7272- @Deprecated
7273- @SuppressWarnings("unchecked")
7274- public static FutureTask<PlayFabResult<MatchmakeResult>> MatchmakeAsync(final MatchmakeRequest request) {
7275- return new FutureTask(new Callable<PlayFabResult<MatchmakeResult>>() {
7276- public PlayFabResult<MatchmakeResult> call() throws Exception {
7277- return privateMatchmakeAsync(request);
7278- }
7279- });
7280- }
7281-
7282- /**
7283- * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific
7284- * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required
7285- * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is
7286- * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the
7287- * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be
7288- * GameNotFound.
7289- * @deprecated Please use Match/CreateMatchmakingTicket instead.
7290- * @param request MatchmakeRequest
7291- * @return MatchmakeResult
7292- */
7293- @Deprecated
7294- @SuppressWarnings("unchecked")
7295- public static PlayFabResult<MatchmakeResult> Matchmake(final MatchmakeRequest request) {
7296- FutureTask<PlayFabResult<MatchmakeResult>> task = new FutureTask(new Callable<PlayFabResult<MatchmakeResult>>() {
7297- public PlayFabResult<MatchmakeResult> call() throws Exception {
7298- return privateMatchmakeAsync(request);
7299- }
7300- });
7301- try {
7302- task.run();
7303- return task.get();
7304- } catch(Exception e) {
7305- PlayFabResult<MatchmakeResult> exceptionResult = new PlayFabResult<MatchmakeResult>();
7306- exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
7307- return exceptionResult;
7308- }
7309- }
7310-
7311- /**
7312- * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific
7313- * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required
7314- * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is
7315- * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the
7316- * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be
7317- * GameNotFound.
7318- * @deprecated Please use Match/CreateMatchmakingTicket instead.
7319- */
7320- @Deprecated
7321- @SuppressWarnings("unchecked")
7322- private static PlayFabResult<MatchmakeResult> privateMatchmakeAsync(final MatchmakeRequest request) throws Exception {
7323- if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
7324-
7325- FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/Matchmake"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
7326- task.run();
7327- Object httpResult = task.get();
7328- if (httpResult instanceof PlayFabError) {
7329- PlayFabError error = (PlayFabError)httpResult;
7330- if (PlayFabSettings.GlobalErrorHandler != null)
7331- PlayFabSettings.GlobalErrorHandler.callback(error);
7332- PlayFabResult result = new PlayFabResult<MatchmakeResult>();
7333- result.Error = error;
7334- return result;
7335- }
7336- String resultRawJson = (String) httpResult;
7337-
7338- PlayFabJsonSuccess<MatchmakeResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<MatchmakeResult>>(){}.getType());
7339- MatchmakeResult result = resultData.data;
7340-
7341- PlayFabResult<MatchmakeResult> pfResult = new PlayFabResult<MatchmakeResult>();
7342- pfResult.Result = result;
7343- return pfResult;
7344- }
7345-
73467121 /**
73477122 * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time.
73487123 * @param request OpenTradeRequest
0 commit comments