Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#210406
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Apr 6, 2021
1 parent 6584d98 commit c4a0d69
Show file tree
Hide file tree
Showing 36 changed files with 269 additions and 161 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.128.210315.jar -Destination ../../builds/client-sdk-0.128.210315.jar
Copy-Item client-sdk-0.129.210406.jar -Destination ../../builds/client-sdk-0.129.210406.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.128.210315.jar ../../builds/client-sdk-0.128.210315.jar
cp client-sdk-0.129.210406.jar ../../builds/client-sdk-0.129.210406.jar
Original file line number Diff line number Diff line change
Expand Up @@ -5049,7 +5049,10 @@ private static PlayFabResult<LinkFacebookInstantGamesIdResult> privateLinkFacebo
}

/**
* Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account
* Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with
* a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters
* in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons
* page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option.
* @param request LinkGameCenterAccountRequest
* @return Async Task will return LinkGameCenterAccountResult
*/
Expand All @@ -5063,7 +5066,10 @@ public PlayFabResult<LinkGameCenterAccountResult> call() throws Exception {
}

/**
* Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account
* Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with
* a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters
* in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons
* page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option.
* @param request LinkGameCenterAccountRequest
* @return LinkGameCenterAccountResult
*/
Expand All @@ -5084,7 +5090,12 @@ public PlayFabResult<LinkGameCenterAccountResult> call() throws Exception {
}
}

/** Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account */
/**
* Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with
* a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters
* in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons
* page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<LinkGameCenterAccountResult> privateLinkGameCenterAccountAsync(final LinkGameCenterAccountRequest request) throws Exception {
if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
Expand Down Expand Up @@ -6234,7 +6245,10 @@ private static PlayFabResult<LoginResult> privateLoginWithFacebookInstantGamesId

/**
* Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
* used for API calls which require an authenticated user
* used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not
* include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you
* require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and
* enabling the 'Require secure authentication only for this app' option.
* @param request LoginWithGameCenterRequest
* @return Async Task will return LoginResult
*/
Expand All @@ -6249,7 +6263,10 @@ public PlayFabResult<LoginResult> call() throws Exception {

/**
* Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
* used for API calls which require an authenticated user
* used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not
* include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you
* require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and
* enabling the 'Require secure authentication only for this app' option.
* @param request LoginWithGameCenterRequest
* @return LoginResult
*/
Expand All @@ -6272,7 +6289,10 @@ public PlayFabResult<LoginResult> call() throws Exception {

/**
* Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
* used for API calls which require an authenticated user
* used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not
* include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you
* require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and
* enabling the 'Require secure authentication only for this app' option.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<LoginResult> privateLoginWithGameCenterAsync(final LoginWithGameCenterRequest request) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public static enum PlayFabErrorCode {
EvaluationModePlayerCountExceeded(1490),
GetPlayersInSegmentRateLimitExceeded(1491),
CloudScriptFunctionNameSizeExceeded(1492),
InsightsManagementTitleInEvaluationMode(1493),
PaidInsightsFeaturesNotEnabled(1493),
CloudScriptAzureFunctionsQueueRequestError(1494),
EvaluationModeTitleCountExceeded(1495),
InsightsManagementTitleNotInFlight(1496),
Expand Down Expand Up @@ -632,6 +632,7 @@ public static enum PlayFabErrorCode {
CreateSegmentRateLimitExceeded(10008),
UpdateSegmentRateLimitExceeded(10009),
GetSegmentsRateLimitExceeded(10010),
AsyncExportNotInFlight(10011),
SnapshotNotFound(11000),
InventoryApiNotImplemented(12000);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2447,13 +2447,13 @@ private static PlayFabResult<ListAssetSummariesResponse> privateListAssetSummari
/**
* Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows
* game client to request list of builds with player entity token.
* @param request MultiplayerEmptyRequest
* @return Async Task will return ListBuildAliasesForTitleResponse
* @param request ListBuildAliasesRequest
* @return Async Task will return ListBuildAliasesResponse
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<ListBuildAliasesForTitleResponse>> ListBuildAliasesAsync(final MultiplayerEmptyRequest request) {
return new FutureTask(new Callable<PlayFabResult<ListBuildAliasesForTitleResponse>>() {
public PlayFabResult<ListBuildAliasesForTitleResponse> call() throws Exception {
public static FutureTask<PlayFabResult<ListBuildAliasesResponse>> ListBuildAliasesAsync(final ListBuildAliasesRequest request) {
return new FutureTask(new Callable<PlayFabResult<ListBuildAliasesResponse>>() {
public PlayFabResult<ListBuildAliasesResponse> call() throws Exception {
return privateListBuildAliasesAsync(request);
}
});
Expand All @@ -2462,21 +2462,21 @@ public PlayFabResult<ListBuildAliasesForTitleResponse> call() throws Exception {
/**
* Lists details of all build aliases for a title. Accepts tokens for title and if game client access is enabled, allows
* game client to request list of builds with player entity token.
* @param request MultiplayerEmptyRequest
* @return ListBuildAliasesForTitleResponse
* @param request ListBuildAliasesRequest
* @return ListBuildAliasesResponse
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<ListBuildAliasesForTitleResponse> ListBuildAliases(final MultiplayerEmptyRequest request) {
FutureTask<PlayFabResult<ListBuildAliasesForTitleResponse>> task = new FutureTask(new Callable<PlayFabResult<ListBuildAliasesForTitleResponse>>() {
public PlayFabResult<ListBuildAliasesForTitleResponse> call() throws Exception {
public static PlayFabResult<ListBuildAliasesResponse> ListBuildAliases(final ListBuildAliasesRequest request) {
FutureTask<PlayFabResult<ListBuildAliasesResponse>> task = new FutureTask(new Callable<PlayFabResult<ListBuildAliasesResponse>>() {
public PlayFabResult<ListBuildAliasesResponse> call() throws Exception {
return privateListBuildAliasesAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<ListBuildAliasesForTitleResponse> exceptionResult = new PlayFabResult<ListBuildAliasesForTitleResponse>();
PlayFabResult<ListBuildAliasesResponse> exceptionResult = new PlayFabResult<ListBuildAliasesResponse>();
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null);
return exceptionResult;
}
Expand All @@ -2487,7 +2487,7 @@ public PlayFabResult<ListBuildAliasesForTitleResponse> call() throws Exception {
* game client to request list of builds with player entity token.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<ListBuildAliasesForTitleResponse> privateListBuildAliasesAsync(final MultiplayerEmptyRequest request) throws Exception {
private static PlayFabResult<ListBuildAliasesResponse> privateListBuildAliasesAsync(final ListBuildAliasesRequest request) throws Exception {
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListBuildAliases"), request, "X-EntityToken", PlayFabSettings.EntityToken);
Expand All @@ -2497,16 +2497,16 @@ private static PlayFabResult<ListBuildAliasesForTitleResponse> privateListBuildA
PlayFabError error = (PlayFabError)httpResult;
if (PlayFabSettings.GlobalErrorHandler != null)
PlayFabSettings.GlobalErrorHandler.callback(error);
PlayFabResult result = new PlayFabResult<ListBuildAliasesForTitleResponse>();
PlayFabResult result = new PlayFabResult<ListBuildAliasesResponse>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<ListBuildAliasesForTitleResponse> pfResult = new PlayFabResult<ListBuildAliasesForTitleResponse>();
PlayFabResult<ListBuildAliasesResponse> pfResult = new PlayFabResult<ListBuildAliasesResponse>();
pfResult.Result = result;
return pfResult;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ public static class BuildAliasDetailsResponse {
public String AliasName;
/** Array of build selection criteria. */
public ArrayList<BuildSelectionCriterion> BuildSelectionCriteria;
/** The page size on the response. */
public Integer PageSize;
/** The skip token for the paged response. */
public String SkipToken;

}

Expand Down Expand Up @@ -1166,6 +1162,8 @@ public static class GetMultiplayerServerDetailsRequest {
}

public static class GetMultiplayerServerDetailsResponse {
/** The identity of the build in which the server was allocated. */
public String BuildId;
/** The connected players in the multiplayer server. */
public ArrayList<ConnectedPlayer> ConnectedPlayers;
/** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */
Expand Down Expand Up @@ -1407,9 +1405,24 @@ public static class ListAssetSummariesResponse {

}

public static class ListBuildAliasesForTitleResponse {
/** Returns a list of summarized details of all multiplayer server builds for a title. */
public static class ListBuildAliasesRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/** The page size for the request. */
public Integer PageSize;
/** The skip token for the paged request. */
public String SkipToken;

}

public static class ListBuildAliasesResponse {
/** The list of build aliases for the title */
public ArrayList<BuildAliasDetailsResponse> BuildAliases;
/** The page size on the response. */
public Integer PageSize;
/** The skip token for the paged response. */
public String SkipToken;

}

Expand Down Expand Up @@ -1662,13 +1675,6 @@ public static class MatchmakingPlayerWithTeamAssignment {

}

/** Returns a list of summarized details of all multiplayer server builds for a title. */
public static class MultiplayerEmptyRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;

}

public static class MultiplayerServerSummary {
/** The connected players in the multiplayer server. */
public ArrayList<ConnectedPlayer> ConnectedPlayers;
Expand Down Expand Up @@ -1762,6 +1768,8 @@ public static class RequestMultiplayerServerRequest {
}

public static class RequestMultiplayerServerResponse {
/** The identity of the build in which the server was allocated. */
public String BuildId;
/** The connected players in the multiplayer server. */
public ArrayList<ConnectedPlayer> ConnectedPlayers;
/** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */
Expand Down Expand Up @@ -1833,6 +1841,8 @@ public static class ScheduledStandbySettings {
}

public static class ServerDetails {
/** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */
public String Fqdn;
/** The IPv4 address of the virtual machine that is hosting this multiplayer server. */
public String IPV4Address;
/** The ports the multiplayer server uses. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.128.210315";
public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-1_1";
public static String SdkVersionString = "JavaSDK-0.128.210315";
public static String SdkVersion = "0.129.210406";
public static String BuildIdentifier = "jbuild_javasdk_sdk-generic-2_2";
public static String SdkVersionString = "JavaSDK-0.129.210406";

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

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

cd target
cp client-sdk-0.128.210315.jar ../../builds/client-sdk-0.128.210315.jar
cp client-sdk-0.129.210406.jar ../../builds/client-sdk-0.129.210406.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>client-sdk</artifactId>
<version>0.128.210315</version>
<version>0.129.210406</version>
<name>PlayFab Client API</name>
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
Loading

0 comments on commit c4a0d69

Please sign in to comment.