Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240621
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Jun 25, 2024
2 parents 0c335f3 + 21fef4f commit ef846a6
Show file tree
Hide file tree
Showing 49 changed files with 411 additions and 205 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.218.240524.jar -Destination ../../builds/client-sdk-0.218.240524.jar
Copy-Item client-sdk-0.219.240621.jar -Destination ../../builds/client-sdk-0.219.240621.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.218.240524.jar ../../builds/client-sdk-0.218.240524.jar
cp client-sdk-0.219.240621.jar ../../builds/client-sdk-0.219.240621.jar
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ public static class GetEntityTokenResponse {
public static enum IdentifiedDeviceType {
Unknown,
XboxOne,
Scarlett
Scarlett,
WindowsOneCore,
WindowsOneCoreMobile,
Win32,
android,
iOS,
PlayStation,
Nintendo
}

public static enum LoginIdentityProvider {
Expand All @@ -129,7 +136,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

/** Given an entity token, validates that it hasn't expired or been revoked and will return details of the owner. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2736,7 +2736,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class LoginResult {
Expand Down Expand Up @@ -4898,7 +4899,8 @@ public static enum UserOrigination {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class UserPrivateAccountInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class LogStatement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class PlayFabEconomyAPI {
private static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").create();

/**
* Add inventory items. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is uncapped.
* Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.
* @param request AddInventoryItemsRequest
* @return Async Task will return AddInventoryItemsResponse
*/
Expand All @@ -28,7 +28,7 @@ public PlayFabResult<AddInventoryItemsResponse> call() throws Exception {
}

/**
* Add inventory items. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is uncapped.
* Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.
* @param request AddInventoryItemsRequest
* @return AddInventoryItemsResponse
*/
Expand All @@ -49,7 +49,7 @@ public PlayFabResult<AddInventoryItemsResponse> call() throws Exception {
}
}

/** Add inventory items. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is uncapped. */
/** Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped. */
@SuppressWarnings("unchecked")
private static PlayFabResult<AddInventoryItemsResponse> privateAddInventoryItemsAsync(final AddInventoryItemsRequest request) throws Exception {
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
Expand Down Expand Up @@ -464,11 +464,10 @@ private static PlayFabResult<DeleteItemResponse> privateDeleteItemAsync(final De
}

/**
* Execute a list of Inventory Operations. A maximum list of 10 operations can be performed by a single request. There is
* also a limit to 250 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* Execute a list of Inventory Operations. A maximum list of 250 operations can be performed by a single request. There is
* also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced
* RPS compared to an individual inventory operation with Player Entities limited to 15 requests in 90 seconds and Title
* Entities limited to 500 requests in 10 seconds.
* RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.
* @param request ExecuteInventoryOperationsRequest
* @return Async Task will return ExecuteInventoryOperationsResponse
*/
Expand All @@ -482,11 +481,10 @@ public PlayFabResult<ExecuteInventoryOperationsResponse> call() throws Exception
}

/**
* Execute a list of Inventory Operations. A maximum list of 10 operations can be performed by a single request. There is
* also a limit to 250 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* Execute a list of Inventory Operations. A maximum list of 250 operations can be performed by a single request. There is
* also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced
* RPS compared to an individual inventory operation with Player Entities limited to 15 requests in 90 seconds and Title
* Entities limited to 500 requests in 10 seconds.
* RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.
* @param request ExecuteInventoryOperationsRequest
* @return ExecuteInventoryOperationsResponse
*/
Expand All @@ -508,11 +506,10 @@ public PlayFabResult<ExecuteInventoryOperationsResponse> call() throws Exception
}

/**
* Execute a list of Inventory Operations. A maximum list of 10 operations can be performed by a single request. There is
* also a limit to 250 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* Execute a list of Inventory Operations. A maximum list of 250 operations can be performed by a single request. There is
* also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items
* counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced
* RPS compared to an individual inventory operation with Player Entities limited to 15 requests in 90 seconds and Title
* Entities limited to 500 requests in 10 seconds.
* RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<ExecuteInventoryOperationsResponse> privateExecuteInventoryOperationsAsync(final ExecuteInventoryOperationsRequest request) throws Exception {
Expand Down Expand Up @@ -957,8 +954,9 @@ private static PlayFabResult<GetEntityItemReviewResponse> privateGetEntityItemRe
}

/**
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once. You can use continuation tokens to paginate through
* results that return greater than the limit. It can take a few seconds for new collection Ids to show up.
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can
* use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for
* new collection Ids to show up.
* @param request GetInventoryCollectionIdsRequest
* @return Async Task will return GetInventoryCollectionIdsResponse
*/
Expand All @@ -972,8 +970,9 @@ public PlayFabResult<GetInventoryCollectionIdsResponse> call() throws Exception
}

/**
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once. You can use continuation tokens to paginate through
* results that return greater than the limit. It can take a few seconds for new collection Ids to show up.
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can
* use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for
* new collection Ids to show up.
* @param request GetInventoryCollectionIdsRequest
* @return GetInventoryCollectionIdsResponse
*/
Expand All @@ -995,8 +994,9 @@ public PlayFabResult<GetInventoryCollectionIdsResponse> call() throws Exception
}

/**
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once. You can use continuation tokens to paginate through
* results that return greater than the limit. It can take a few seconds for new collection Ids to show up.
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can
* use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for
* new collection Ids to show up.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<GetInventoryCollectionIdsResponse> privateGetInventoryCollectionIdsAsync(final GetInventoryCollectionIdsRequest request) throws Exception {
Expand Down Expand Up @@ -1691,10 +1691,9 @@ private static PlayFabResult<GetMicrosoftStoreAccessTokensResponse> privateGetMi
}

/**
* Get transaction history for a player. Up to 50 Events can be returned at once. You can use continuation tokens to
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds and Title Entities having
* a limit of 100 requests in 10 seconds.
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.
* @param request GetTransactionHistoryRequest
* @return Async Task will return GetTransactionHistoryResponse
*/
Expand All @@ -1708,10 +1707,9 @@ public PlayFabResult<GetTransactionHistoryResponse> call() throws Exception {
}

/**
* Get transaction history for a player. Up to 50 Events can be returned at once. You can use continuation tokens to
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds and Title Entities having
* a limit of 100 requests in 10 seconds.
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.
* @param request GetTransactionHistoryRequest
* @return GetTransactionHistoryResponse
*/
Expand All @@ -1733,10 +1731,9 @@ public PlayFabResult<GetTransactionHistoryResponse> call() throws Exception {
}

/**
* Get transaction history for a player. Up to 50 Events can be returned at once. You can use continuation tokens to
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds and Title Entities having
* a limit of 100 requests in 10 seconds.
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<GetTransactionHistoryResponse> privateGetTransactionHistoryAsync(final GetTransactionHistoryRequest request) throws Exception {
Expand Down Expand Up @@ -1831,7 +1828,7 @@ private static PlayFabResult<PublishDraftItemResponse> privatePublishDraftItemAs
}

/**
* Purchase an item or bundle. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is
* Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is
* uncapped.
* @param request PurchaseInventoryItemsRequest
* @return Async Task will return PurchaseInventoryItemsResponse
Expand All @@ -1846,7 +1843,7 @@ public PlayFabResult<PurchaseInventoryItemsResponse> call() throws Exception {
}

/**
* Purchase an item or bundle. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is
* Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is
* uncapped.
* @param request PurchaseInventoryItemsRequest
* @return PurchaseInventoryItemsResponse
Expand All @@ -1869,7 +1866,7 @@ public PlayFabResult<PurchaseInventoryItemsResponse> call() throws Exception {
}

/**
* Purchase an item or bundle. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is
* Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is
* uncapped.
*/
@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ public static class ExecuteInventoryOperationsRequest {
public String IdempotencyId;
/**
* The operations to run transactionally. The operations will be executed in-order sequentially and will succeed or fail as
* a batch. Up to 10 operations can be added.
* a batch. Up to 50 operations can be added.
*/
public ArrayList<InventoryOperation> Operations;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ public static enum PlayFabErrorCode {
StatisticDefinitionModificationNotAllowedWhileLinked(1577),
LeaderboardUpdateNotAllowedWhileLinked(1578),
CloudScriptAzureFunctionsEventHubRequestError(1579),
LeaderboardRateLimitExceeded(1580),
ExternalEntityNotAllowedForTier(1581),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand Down Expand Up @@ -824,9 +826,27 @@ public static enum PlayFabErrorCode {
TrueSkillJobAlreadyExists(20044),
TrueSkillJobNotFound(20045),
TrueSkillOperationCanceled(20046),
StateShareUnauthorized(21000),
StateShareStateNotFound(21001),
StateShareLinkNotFound(21002);
TrueSkillActiveModelLimitExceeded(20047),
TrueSkillTotalModelLimitExceeded(20048),
TrueSkillUnknownInitialModelId(20049),
TrueSkillUnauthorizedForJob(20050),
TrueSkillInvalidScenarioName(20051),
TrueSkillConditionStateIsRequired(20052),
TrueSkillEventStateIsRequired(20053),
TrueSkillDuplicateEvent(20054),
TrueSkillDuplicateCondition(20055),
TrueSkillInvalidAnomalyThreshold(20056),
TrueSkillConditionKeyLimitExceeded(20057),
TrueSkillConditionValuePerKeyLimitExceeded(20058),
TrueSkillEventLimitExceeded(20059),
StateShareForbidden(21000),
StateShareTitleNotInFlight(21001),
StateShareStateNotFound(21002),
StateShareLinkNotFound(21003),
StateShareStateRedemptionLimitExceeded(21004),
StateShareStateRedemptionLimitNotUpdated(21005),
StateShareCreatedStatesLimitExceeded(21006),
StateShareIdMissingOrMalformed(21007);

public int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,8 @@ public static class ServerDetails {
public ArrayList<Port> Ports;
/** The server's region. */
public String Region;
/** The string server ID of the multiplayer server generated by PlayFab. */
public String ServerId;

}

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.218.240524";
public static String BuildIdentifier = "adobuild_javasdk_115";
public static String SdkVersionString = "JavaSDK-0.218.240524";
public static String SdkVersion = "0.219.240621";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.219.240621";

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.218.240524.jar -Destination ../../builds/client-sdk-0.218.240524.jar
Copy-Item client-sdk-0.219.240621.jar -Destination ../../builds/client-sdk-0.219.240621.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.218.240524.jar ../../builds/client-sdk-0.218.240524.jar
cp client-sdk-0.219.240621.jar ../../builds/client-sdk-0.219.240621.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.218.240524</version>
<version>0.219.240621</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
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ public static class GetEntityTokenResponse {
public static enum IdentifiedDeviceType {
Unknown,
XboxOne,
Scarlett
Scarlett,
WindowsOneCore,
WindowsOneCoreMobile,
Win32,
android,
iOS,
PlayStation,
Nintendo
}

public static enum LoginIdentityProvider {
Expand All @@ -129,7 +136,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

/** Given an entity token, validates that it hasn't expired or been revoked and will return details of the owner. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2736,7 +2736,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class LoginResult {
Expand Down Expand Up @@ -4898,7 +4899,8 @@ public static enum UserOrigination {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class UserPrivateAccountInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ public static enum LoginIdentityProvider {
OpenIdConnect,
Apple,
NintendoSwitchAccount,
GooglePlayGames
GooglePlayGames,
XboxMobileStore
}

public static class LogStatement {
Expand Down
Loading

0 comments on commit ef846a6

Please sign in to comment.