Skip to content

Commit f93d9c7

Browse files
PlayFab SDK TeamPlayFab SDK Team
authored andcommitted
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#260123
2 parents 9ee2c28 + 2e471bb commit f93d9c7

34 files changed

+67
-351
lines changed

AndroidStudioExample/app/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.252.260109.jar -Destination ../../builds/client-sdk-0.252.260109.jar
8+
Copy-Item client-sdk-0.253.260123.jar -Destination ../../builds/client-sdk-0.253.260123.jar

AndroidStudioExample/app/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.252.260109.jar ../../builds/client-sdk-0.252.260109.jar
10+
cp client-sdk-0.253.260123.jar ../../builds/client-sdk-0.253.260123.jar

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyAPI.java

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,68 +1637,6 @@ private static PlayFabResult<GetItemsResponse> privateGetItemsAsync(final GetIte
16371637
return pfResult;
16381638
}
16391639

1640-
/**
1641-
* Gets the access tokens.
1642-
* @param request GetMicrosoftStoreAccessTokensRequest
1643-
* @return Async Task will return GetMicrosoftStoreAccessTokensResponse
1644-
*/
1645-
@SuppressWarnings("unchecked")
1646-
public static FutureTask<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>> GetMicrosoftStoreAccessTokensAsync(final GetMicrosoftStoreAccessTokensRequest request) {
1647-
return new FutureTask(new Callable<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>>() {
1648-
public PlayFabResult<GetMicrosoftStoreAccessTokensResponse> call() throws Exception {
1649-
return privateGetMicrosoftStoreAccessTokensAsync(request);
1650-
}
1651-
});
1652-
}
1653-
1654-
/**
1655-
* Gets the access tokens.
1656-
* @param request GetMicrosoftStoreAccessTokensRequest
1657-
* @return GetMicrosoftStoreAccessTokensResponse
1658-
*/
1659-
@SuppressWarnings("unchecked")
1660-
public static PlayFabResult<GetMicrosoftStoreAccessTokensResponse> GetMicrosoftStoreAccessTokens(final GetMicrosoftStoreAccessTokensRequest request) {
1661-
FutureTask<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>> task = new FutureTask(new Callable<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>>() {
1662-
public PlayFabResult<GetMicrosoftStoreAccessTokensResponse> call() throws Exception {
1663-
return privateGetMicrosoftStoreAccessTokensAsync(request);
1664-
}
1665-
});
1666-
try {
1667-
task.run();
1668-
return task.get();
1669-
} catch(Exception e) {
1670-
PlayFabResult<GetMicrosoftStoreAccessTokensResponse> exceptionResult = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1671-
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
1672-
return exceptionResult;
1673-
}
1674-
}
1675-
1676-
/** Gets the access tokens. */
1677-
@SuppressWarnings("unchecked")
1678-
private static PlayFabResult<GetMicrosoftStoreAccessTokensResponse> privateGetMicrosoftStoreAccessTokensAsync(final GetMicrosoftStoreAccessTokensRequest request) throws Exception {
1679-
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
1680-
1681-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Inventory/GetMicrosoftStoreAccessTokens"), request, "X-EntityToken", PlayFabSettings.EntityToken);
1682-
task.run();
1683-
Object httpResult = task.get();
1684-
if (httpResult instanceof PlayFabError) {
1685-
PlayFabError error = (PlayFabError)httpResult;
1686-
if (PlayFabSettings.GlobalErrorHandler != null)
1687-
PlayFabSettings.GlobalErrorHandler.callback(error);
1688-
PlayFabResult result = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1689-
result.Error = error;
1690-
return result;
1691-
}
1692-
String resultRawJson = (String) httpResult;
1693-
1694-
PlayFabJsonSuccess<GetMicrosoftStoreAccessTokensResponse> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetMicrosoftStoreAccessTokensResponse>>(){}.getType());
1695-
GetMicrosoftStoreAccessTokensResponse result = resultData.data;
1696-
1697-
PlayFabResult<GetMicrosoftStoreAccessTokensResponse> pfResult = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1698-
pfResult.Result = result;
1699-
return pfResult;
1700-
}
1701-
17021640
/**
17031641
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
17041642
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyModels.java

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,24 +1190,6 @@ public static class GetItemsResponse {
11901190

11911191
}
11921192

1193-
/** Gets the access tokens for Microsoft Store authentication. */
1194-
public static class GetMicrosoftStoreAccessTokensRequest {
1195-
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
1196-
public Map<String,String> CustomTags;
1197-
1198-
}
1199-
1200-
public static class GetMicrosoftStoreAccessTokensResponse {
1201-
/**
1202-
* The collections access token for calling https://onestore.microsoft.com/b2b/keys/create/collections to obtain a
1203-
* CollectionsIdKey for the user
1204-
*/
1205-
public String CollectionsAccessToken;
1206-
/** The date the collections access token expires */
1207-
public Date CollectionsAccessTokenExpirationDate;
1208-
1209-
}
1210-
12111193
/** Get transaction history for specified entity and collection. */
12121194
public static class GetTransactionHistoryRequest {
12131195
/** The id of the entity's collection to perform this action on. (Default="default") */
@@ -1518,6 +1500,13 @@ public static class Rating {
15181500

15191501
}
15201502

1503+
/**
1504+
* The multi-currency unit price, in real money, of the item that was redeemed within an individual marketplace. Each
1505+
* property is a dictionary where the key is the three-letter currency code as defined in ISO 4217, and the value is the
1506+
* currency amount in the smallest unit (e.g. cents, pence, etc.) in accordance with ISO 4217. Example: If the product
1507+
* price in USD is $1.39, the dictionary entry would be: ["USD"] = 139. Currently, only United States Dollar (USD) is
1508+
* supported.
1509+
*/
15211510
public static class RealMoneyPriceDetails {
15221511
/** The 'AppleAppStore' price amount per CurrencyCode. 'USD' supported only. */
15231512
public Map<String,Integer> AppleAppStorePrices;
@@ -1608,8 +1597,6 @@ public static class RedeemGooglePlayInventoryItemsResponse {
16081597
public static class RedeemMicrosoftStoreInventoryItemsRequest {
16091598
/** The id of the entity's collection to perform this action on. (Default="default") */
16101599
public String CollectionId;
1611-
/** The OneStore Collections Id Key used for AAD authentication. */
1612-
public String CollectionsIdKey;
16131600
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
16141601
public Map<String,String> CustomTags;
16151602
/** The entity to perform this action on. */
@@ -1716,6 +1703,8 @@ public static class RedemptionFailure {
17161703
}
17171704

17181705
public static class RedemptionSuccess {
1706+
/** The timestamp for when the redeem expired. */
1707+
public Date ExpirationTimestamp;
17191708
/** The Marketplace Alternate ID being redeemed. */
17201709
public String MarketplaceAlternateId;
17211710
/** The transaction id in the external marketplace. */

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public static enum PlayFabErrorCode {
656656
CatalogBadRequest(4013),
657657
CatalogTooManyRequests(4014),
658658
InvalidCatalogItemConfiguration(4015),
659+
LegacyEconomyDisabled(4016),
659660
ExportInvalidStatusUpdate(5000),
660661
ExportInvalidPrefix(5001),
661662
ExportBlobContainerDoesNotExist(5002),

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import com.playfab.PlayFabErrors.ErrorCallback;
1010

1111
public class PlayFabSettings {
12-
public static String SdkVersion = "0.252.260109";
13-
public static String BuildIdentifier = "adobuild_javasdk_115";
14-
public static String SdkVersionString = "JavaSDK-0.252.260109";
12+
public static String SdkVersion = "0.253.260123";
13+
public static String BuildIdentifier = "adobuild_javasdk_116";
14+
public static String SdkVersionString = "JavaSDK-0.253.260123";
1515

1616
public static Map<String, String> RequestGetParams;
1717
static {

PlayFabClientSDK/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.252.260109.jar -Destination ../../builds/client-sdk-0.252.260109.jar
8+
Copy-Item client-sdk-0.253.260123.jar -Destination ../../builds/client-sdk-0.253.260123.jar

PlayFabClientSDK/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.252.260109.jar ../../builds/client-sdk-0.252.260109.jar
10+
cp client-sdk-0.253.260123.jar ../../builds/client-sdk-0.253.260123.jar

PlayFabClientSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- GAV & Meta -->
1515
<groupId>com.playfab</groupId>
1616
<artifactId>client-sdk</artifactId>
17-
<version>0.252.260109</version>
17+
<version>0.253.260123</version>
1818
<name>PlayFab Client API</name>
1919
<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>
2020
<url>https://docs.microsoft.com/gaming/playfab/</url>

PlayFabClientSDK/src/main/java/com/playfab/PlayFabEconomyAPI.java

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,68 +1637,6 @@ private static PlayFabResult<GetItemsResponse> privateGetItemsAsync(final GetIte
16371637
return pfResult;
16381638
}
16391639

1640-
/**
1641-
* Gets the access tokens.
1642-
* @param request GetMicrosoftStoreAccessTokensRequest
1643-
* @return Async Task will return GetMicrosoftStoreAccessTokensResponse
1644-
*/
1645-
@SuppressWarnings("unchecked")
1646-
public static FutureTask<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>> GetMicrosoftStoreAccessTokensAsync(final GetMicrosoftStoreAccessTokensRequest request) {
1647-
return new FutureTask(new Callable<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>>() {
1648-
public PlayFabResult<GetMicrosoftStoreAccessTokensResponse> call() throws Exception {
1649-
return privateGetMicrosoftStoreAccessTokensAsync(request);
1650-
}
1651-
});
1652-
}
1653-
1654-
/**
1655-
* Gets the access tokens.
1656-
* @param request GetMicrosoftStoreAccessTokensRequest
1657-
* @return GetMicrosoftStoreAccessTokensResponse
1658-
*/
1659-
@SuppressWarnings("unchecked")
1660-
public static PlayFabResult<GetMicrosoftStoreAccessTokensResponse> GetMicrosoftStoreAccessTokens(final GetMicrosoftStoreAccessTokensRequest request) {
1661-
FutureTask<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>> task = new FutureTask(new Callable<PlayFabResult<GetMicrosoftStoreAccessTokensResponse>>() {
1662-
public PlayFabResult<GetMicrosoftStoreAccessTokensResponse> call() throws Exception {
1663-
return privateGetMicrosoftStoreAccessTokensAsync(request);
1664-
}
1665-
});
1666-
try {
1667-
task.run();
1668-
return task.get();
1669-
} catch(Exception e) {
1670-
PlayFabResult<GetMicrosoftStoreAccessTokensResponse> exceptionResult = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1671-
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
1672-
return exceptionResult;
1673-
}
1674-
}
1675-
1676-
/** Gets the access tokens. */
1677-
@SuppressWarnings("unchecked")
1678-
private static PlayFabResult<GetMicrosoftStoreAccessTokensResponse> privateGetMicrosoftStoreAccessTokensAsync(final GetMicrosoftStoreAccessTokensRequest request) throws Exception {
1679-
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
1680-
1681-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Inventory/GetMicrosoftStoreAccessTokens"), request, "X-EntityToken", PlayFabSettings.EntityToken);
1682-
task.run();
1683-
Object httpResult = task.get();
1684-
if (httpResult instanceof PlayFabError) {
1685-
PlayFabError error = (PlayFabError)httpResult;
1686-
if (PlayFabSettings.GlobalErrorHandler != null)
1687-
PlayFabSettings.GlobalErrorHandler.callback(error);
1688-
PlayFabResult result = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1689-
result.Error = error;
1690-
return result;
1691-
}
1692-
String resultRawJson = (String) httpResult;
1693-
1694-
PlayFabJsonSuccess<GetMicrosoftStoreAccessTokensResponse> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetMicrosoftStoreAccessTokensResponse>>(){}.getType());
1695-
GetMicrosoftStoreAccessTokensResponse result = resultData.data;
1696-
1697-
PlayFabResult<GetMicrosoftStoreAccessTokensResponse> pfResult = new PlayFabResult<GetMicrosoftStoreAccessTokensResponse>();
1698-
pfResult.Result = result;
1699-
return pfResult;
1700-
}
1701-
17021640
/**
17031641
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
17041642
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than

0 commit comments

Comments
 (0)