Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230915
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Sep 19, 2023
2 parents 77435a0 + 0e75878 commit 65e9f84
Show file tree
Hide file tree
Showing 43 changed files with 259 additions and 4,491 deletions.
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

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

cd target
cp client-sdk-0.198.230901.jar ../../builds/client-sdk-0.198.230901.jar
cp client-sdk-0.199.230915.jar ../../builds/client-sdk-0.199.230915.jar
Original file line number Diff line number Diff line change
Expand Up @@ -1873,76 +1873,6 @@ private static PlayFabResult<GetContentDownloadUrlResult> 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<PlayFabResult<CurrentGamesResult>> GetCurrentGamesAsync(final CurrentGamesRequest request) {
return new FutureTask(new Callable<PlayFabResult<CurrentGamesResult>>() {
public PlayFabResult<CurrentGamesResult> 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<CurrentGamesResult> GetCurrentGames(final CurrentGamesRequest request) {
FutureTask<PlayFabResult<CurrentGamesResult>> task = new FutureTask(new Callable<PlayFabResult<CurrentGamesResult>>() {
public PlayFabResult<CurrentGamesResult> call() throws Exception {
return privateGetCurrentGamesAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<CurrentGamesResult> exceptionResult = new PlayFabResult<CurrentGamesResult>();
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<CurrentGamesResult> privateGetCurrentGamesAsync(final CurrentGamesRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/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<CurrentGamesResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<CurrentGamesResult> pfResult = new PlayFabResult<CurrentGamesResult>();
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
Expand Down Expand Up @@ -2144,76 +2074,6 @@ private static PlayFabResult<GetFriendsListResult> 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<PlayFabResult<GameServerRegionsResult>> GetGameServerRegionsAsync(final GameServerRegionsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GameServerRegionsResult>>() {
public PlayFabResult<GameServerRegionsResult> 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<GameServerRegionsResult> GetGameServerRegions(final GameServerRegionsRequest request) {
FutureTask<PlayFabResult<GameServerRegionsResult>> task = new FutureTask(new Callable<PlayFabResult<GameServerRegionsResult>>() {
public PlayFabResult<GameServerRegionsResult> call() throws Exception {
return privateGetGameServerRegionsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<GameServerRegionsResult> exceptionResult = new PlayFabResult<GameServerRegionsResult>();
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<GameServerRegionsResult> privateGetGameServerRegionsAsync(final GameServerRegionsRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/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<GameServerRegionsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<GameServerRegionsResult> pfResult = new PlayFabResult<GameServerRegionsResult>();
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
Expand Down Expand Up @@ -7258,91 +7118,6 @@ private static PlayFabResult<LoginResult> 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<PlayFabResult<MatchmakeResult>> MatchmakeAsync(final MatchmakeRequest request) {
return new FutureTask(new Callable<PlayFabResult<MatchmakeResult>>() {
public PlayFabResult<MatchmakeResult> 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<MatchmakeResult> Matchmake(final MatchmakeRequest request) {
FutureTask<PlayFabResult<MatchmakeResult>> task = new FutureTask(new Callable<PlayFabResult<MatchmakeResult>>() {
public PlayFabResult<MatchmakeResult> call() throws Exception {
return privateMatchmakeAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<MatchmakeResult> exceptionResult = new PlayFabResult<MatchmakeResult>();
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<MatchmakeResult> privateMatchmakeAsync(final MatchmakeRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/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<MatchmakeResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<MatchmakeResult> pfResult = new PlayFabResult<MatchmakeResult>();
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
Expand Down
Loading

0 comments on commit 65e9f84

Please sign in to comment.