Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#190717
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jul 17, 2019
2 parents 6c93a37 + 20a1a69 commit 609c197
Show file tree
Hide file tree
Showing 29 changed files with 667 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ public static enum PlayFabErrorCode {
EconomyServiceInternalError(1451),
QueryRateLimitExceeded(1452),
EntityAPIKeyCreationDisabledForEntity(1453),
ForbiddenByEntityPolicy(1454),
StudioCreationRateLimited(1456),
StudioCreationInProgress(1457),
DuplicateStudioName(1458),
Expand All @@ -472,6 +473,14 @@ public static enum PlayFabErrorCode {
CloudScriptAzureFunctionsArgumentSizeExceeded(1471),
CloudScriptAzureFunctionsReturnSizeExceeded(1472),
CloudScriptAzureFunctionsHTTPRequestError(1473),
VirtualCurrencyBetaGetError(1474),
VirtualCurrencyBetaCreateError(1475),
VirtualCurrencyBetaInitialDepositSaveError(1476),
VirtualCurrencyBetaSaveError(1477),
VirtualCurrencyBetaDeleteError(1478),
VirtualCurrencyBetaRestoreError(1479),
VirtualCurrencyBetaSaveConflict(1480),
VirtualCurrencyBetaUpdateError(1481),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand Down Expand Up @@ -511,22 +520,30 @@ public static enum PlayFabErrorCode {
ExportInvalidStatusUpdate(5000),
ExportInvalidPrefix(5001),
ExportBlobContainerDoesNotExist(5002),
ExportEventNameNotFound(5003),
ExportExportTitleIdNotFound(5004),
ExportNotFound(5004),
ExportCouldNotUpdate(5005),
ExportInvalidStorageType(5006),
ExportAmazonBucketDoesNotExist(5007),
ExportInvalidBlobStorage(5008),
ExportKustoException(5009),
ExportKustoExceptionPartialErrorOnNewExport(5010),
ExportKustoExceptionEdit(5011),
ExportKustoConnectionFailed(5012),
ExportUnknownError(5013),
ExportCantEditPendingExport(5014),
ExportLimitExports(5015),
ExportLimitEvents(5016),
TitleNotEnabledForParty(6000),
PartyVersionNotFound(6001);
PartyVersionNotFound(6001),
MultiplayerServerBuildReferencedByMatchmakingQueue(6002),
ExperimentationExperimentStopped(7000),
ExperimentationExperimentRunning(7001),
ExperimentationExperimentNotFound(7002),
ExperimentationExperimentNeverStarted(7003),
ExperimentationExperimentDeleted(7004),
ExperimentationClientTimeout(7005),
ExperimentationExceededVariantNameLength(7006),
ExperimentationExceededMaxVariantLength(7007),
ExperimentInvalidId(7008),
SnapshotNotFound(11000);

public int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public static class CancelAllMatchmakingTicketsForPlayerResult {
public static enum CancellationReason {
Requested,
Internal,
Timeout,
ServerAllocationFailed
Timeout
}

/**
Expand Down Expand Up @@ -233,20 +232,8 @@ public static class CreateBuildWithCustomContainerRequest {
public ContainerFlavor ContainerFlavor;
/** The container reference, consisting of the image name and tag. */
public ContainerImageReference ContainerImageReference;
/**
* The name of the container repository.
* @deprecated Please use ContainerImageReference instead.
*/
@Deprecated
public String ContainerRepositoryName;
/** The container command to run when the multiplayer server has been allocated, including any arguments. */
public String ContainerRunCommand;
/**
* The tag for the container.
* @deprecated Please use ContainerImageReference instead.
*/
@Deprecated
public String ContainerTag;
/** The list of game assets related to the build. */
public ArrayList<AssetReferenceParams> GameAssetReferences;
/** The game certificates for the build. */
Expand Down Expand Up @@ -619,8 +606,14 @@ public static class GetMatchmakingTicketRequest {
}

public static class GetMatchmakingTicketResult {
/** The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state. */
/**
* The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state.
* @deprecated Please use CancellationReasonString instead.
*/
@Deprecated
public CancellationReason CancellationReason;
/** The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state. */
public String CancellationReasonString;
/** The server date and time at which ticket was created. */
public Date Created;
/** The Creator's entity key. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,66 @@ private static PlayFabResult<GetEntityProfilesResponse> privateGetProfilesAsync(
return pfResult;
}

/**
* Retrieves the title player accounts associated with the given master player account.
* @param request GetTitlePlayersFromMasterPlayerAccountIdsRequest
* @return Async Task will return GetTitlePlayersFromMasterPlayerAccountIdsResponse
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>> GetTitlePlayersFromMasterPlayerAccountIdsAsync(final GetTitlePlayersFromMasterPlayerAccountIdsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>>() {
public PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> call() throws Exception {
return privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(request);
}
});
}

/**
* Retrieves the title player accounts associated with the given master player account.
* @param request GetTitlePlayersFromMasterPlayerAccountIdsRequest
* @return GetTitlePlayersFromMasterPlayerAccountIdsResponse
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> GetTitlePlayersFromMasterPlayerAccountIds(final GetTitlePlayersFromMasterPlayerAccountIdsRequest request) {
FutureTask<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>> task = new FutureTask(new Callable<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>>() {
public PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> call() throws Exception {
return privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/** Retrieves the title player accounts associated with the given master player account. */
@SuppressWarnings("unchecked")
private static PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(final GetTitlePlayersFromMasterPlayerAccountIdsRequest 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("/Profile/GetTitlePlayersFromMasterPlayerAccountIds"), request, "X-EntityToken", PlayFabSettings.EntityToken);
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<GetTitlePlayersFromMasterPlayerAccountIdsResponse>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> pfResult = new PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>();
pfResult.Result = result;
return pfResult;
}

/**
* Sets the global title access policy
* @param request SetGlobalPolicyRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public static class EntityProfileBody {
public Map<String,EntityProfileFileMetadata> Files;
/** The language on this profile. */
public String Language;
/** Leaderboard metadata for the entity. */
public String LeaderboardMetadata;
/** The lineage of this profile. */
public EntityLineage Lineage;
/** The objects on this profile. */
Expand Down Expand Up @@ -195,6 +197,21 @@ public static class GetGlobalPolicyResponse {

}

/** Given a master player account id (PlayFab ID), returns all title player accounts associated with it. */
public static class GetTitlePlayersFromMasterPlayerAccountIdsRequest {
/** Master player account ids. */
public ArrayList<String> MasterPlayerAccountIds;
/** Id of title to get players from. */
public String TitleId;

}

public static class GetTitlePlayersFromMasterPlayerAccountIdsResponse {
/** Dictionary of master player ids mapped to title player entity keys and id pairs */
public Map<String,EntityKey> TitlePlayerAccounts;

}

public static enum OperationTypes {
Created,
Updated,
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.93.190625";
public static String BuildIdentifier = "jbuild_javasdk__sdk-genericslave-3_1";
public static String SdkVersionString = "JavaSDK-0.93.190625";
public static String SdkVersion = "0.94.190717";
public static String BuildIdentifier = "jbuild_javasdk__sdk-genericslave-1_0";
public static String SdkVersionString = "JavaSDK-0.94.190717";

public static Map<String, String> RequestGetParams;
static {
Expand Down
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.93.190625</version>
<version>0.94.190717</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>http://api.playfab.com/</url>
Expand Down
27 changes: 22 additions & 5 deletions PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ public static enum PlayFabErrorCode {
EconomyServiceInternalError(1451),
QueryRateLimitExceeded(1452),
EntityAPIKeyCreationDisabledForEntity(1453),
ForbiddenByEntityPolicy(1454),
StudioCreationRateLimited(1456),
StudioCreationInProgress(1457),
DuplicateStudioName(1458),
Expand All @@ -472,6 +473,14 @@ public static enum PlayFabErrorCode {
CloudScriptAzureFunctionsArgumentSizeExceeded(1471),
CloudScriptAzureFunctionsReturnSizeExceeded(1472),
CloudScriptAzureFunctionsHTTPRequestError(1473),
VirtualCurrencyBetaGetError(1474),
VirtualCurrencyBetaCreateError(1475),
VirtualCurrencyBetaInitialDepositSaveError(1476),
VirtualCurrencyBetaSaveError(1477),
VirtualCurrencyBetaDeleteError(1478),
VirtualCurrencyBetaRestoreError(1479),
VirtualCurrencyBetaSaveConflict(1480),
VirtualCurrencyBetaUpdateError(1481),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand Down Expand Up @@ -511,22 +520,30 @@ public static enum PlayFabErrorCode {
ExportInvalidStatusUpdate(5000),
ExportInvalidPrefix(5001),
ExportBlobContainerDoesNotExist(5002),
ExportEventNameNotFound(5003),
ExportExportTitleIdNotFound(5004),
ExportNotFound(5004),
ExportCouldNotUpdate(5005),
ExportInvalidStorageType(5006),
ExportAmazonBucketDoesNotExist(5007),
ExportInvalidBlobStorage(5008),
ExportKustoException(5009),
ExportKustoExceptionPartialErrorOnNewExport(5010),
ExportKustoExceptionEdit(5011),
ExportKustoConnectionFailed(5012),
ExportUnknownError(5013),
ExportCantEditPendingExport(5014),
ExportLimitExports(5015),
ExportLimitEvents(5016),
TitleNotEnabledForParty(6000),
PartyVersionNotFound(6001);
PartyVersionNotFound(6001),
MultiplayerServerBuildReferencedByMatchmakingQueue(6002),
ExperimentationExperimentStopped(7000),
ExperimentationExperimentRunning(7001),
ExperimentationExperimentNotFound(7002),
ExperimentationExperimentNeverStarted(7003),
ExperimentationExperimentDeleted(7004),
ExperimentationClientTimeout(7005),
ExperimentationExceededVariantNameLength(7006),
ExperimentationExceededMaxVariantLength(7007),
ExperimentInvalidId(7008),
SnapshotNotFound(11000);

public int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public static class CancelAllMatchmakingTicketsForPlayerResult {
public static enum CancellationReason {
Requested,
Internal,
Timeout,
ServerAllocationFailed
Timeout
}

/**
Expand Down Expand Up @@ -233,20 +232,8 @@ public static class CreateBuildWithCustomContainerRequest {
public ContainerFlavor ContainerFlavor;
/** The container reference, consisting of the image name and tag. */
public ContainerImageReference ContainerImageReference;
/**
* The name of the container repository.
* @deprecated Please use ContainerImageReference instead.
*/
@Deprecated
public String ContainerRepositoryName;
/** The container command to run when the multiplayer server has been allocated, including any arguments. */
public String ContainerRunCommand;
/**
* The tag for the container.
* @deprecated Please use ContainerImageReference instead.
*/
@Deprecated
public String ContainerTag;
/** The list of game assets related to the build. */
public ArrayList<AssetReferenceParams> GameAssetReferences;
/** The game certificates for the build. */
Expand Down Expand Up @@ -619,8 +606,14 @@ public static class GetMatchmakingTicketRequest {
}

public static class GetMatchmakingTicketResult {
/** The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state. */
/**
* The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state.
* @deprecated Please use CancellationReasonString instead.
*/
@Deprecated
public CancellationReason CancellationReason;
/** The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state. */
public String CancellationReasonString;
/** The server date and time at which ticket was created. */
public Date Created;
/** The Creator's entity key. */
Expand Down
60 changes: 60 additions & 0 deletions PlayFabClientSDK/src/main/java/com/playfab/PlayFabProfilesAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,66 @@ private static PlayFabResult<GetEntityProfilesResponse> privateGetProfilesAsync(
return pfResult;
}

/**
* Retrieves the title player accounts associated with the given master player account.
* @param request GetTitlePlayersFromMasterPlayerAccountIdsRequest
* @return Async Task will return GetTitlePlayersFromMasterPlayerAccountIdsResponse
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>> GetTitlePlayersFromMasterPlayerAccountIdsAsync(final GetTitlePlayersFromMasterPlayerAccountIdsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>>() {
public PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> call() throws Exception {
return privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(request);
}
});
}

/**
* Retrieves the title player accounts associated with the given master player account.
* @param request GetTitlePlayersFromMasterPlayerAccountIdsRequest
* @return GetTitlePlayersFromMasterPlayerAccountIdsResponse
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> GetTitlePlayersFromMasterPlayerAccountIds(final GetTitlePlayersFromMasterPlayerAccountIdsRequest request) {
FutureTask<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>> task = new FutureTask(new Callable<PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>>() {
public PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> call() throws Exception {
return privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/** Retrieves the title player accounts associated with the given master player account. */
@SuppressWarnings("unchecked")
private static PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> privateGetTitlePlayersFromMasterPlayerAccountIdsAsync(final GetTitlePlayersFromMasterPlayerAccountIdsRequest 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("/Profile/GetTitlePlayersFromMasterPlayerAccountIds"), request, "X-EntityToken", PlayFabSettings.EntityToken);
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<GetTitlePlayersFromMasterPlayerAccountIdsResponse>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse> pfResult = new PlayFabResult<GetTitlePlayersFromMasterPlayerAccountIdsResponse>();
pfResult.Result = result;
return pfResult;
}

/**
* Sets the global title access policy
* @param request SetGlobalPolicyRequest
Expand Down
Loading

0 comments on commit 609c197

Please sign in to comment.