Skip to content

Commit 058e002

Browse files
https://api.playfab.com/releaseNotes/#170508
1 parent a3b82b1 commit 058e002

33 files changed

+123
-46
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,8 +2329,9 @@ public PlayFabResult<LinkWindowsHelloAccountResponse> call() throws Exception {
23292329
*/
23302330
@SuppressWarnings("unchecked")
23312331
private static PlayFabResult<LinkWindowsHelloAccountResponse> privateLinkWindowsHelloAsync(final LinkWindowsHelloAccountRequest request) throws Exception {
2332+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
23322333

2333-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, null, null);
2334+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, "X-Authorization", _authKey);
23342335
task.run();
23352336
Object httpResult = task.get();
23362337
if(httpResult instanceof PlayFabError) {
@@ -3133,8 +3134,9 @@ public PlayFabResult<UnlinkWindowsHelloAccountResponse> call() throws Exception
31333134
*/
31343135
@SuppressWarnings("unchecked")
31353136
private static PlayFabResult<UnlinkWindowsHelloAccountResponse> privateUnlinkWindowsHelloAsync(final UnlinkWindowsHelloAccountRequest request) throws Exception {
3137+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
31363138

3137-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, null, null);
3139+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, "X-Authorization", _authKey);
31383140
task.run();
31393141
Object httpResult = task.get();
31403142
if(httpResult instanceof PlayFabError) {
@@ -4706,7 +4708,7 @@ private static PlayFabResult<GetCharacterInventoryResult> privateGetCharacterInv
47064708
}
47074709

47084710
/**
4709-
* Retrieves a purchase along with its current PlayFab status.
4711+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47104712
* @param request GetPurchaseRequest
47114713
* @return Async Task will return GetPurchaseResult
47124714
*/
@@ -4720,7 +4722,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47204722
}
47214723

47224724
/**
4723-
* Retrieves a purchase along with its current PlayFab status.
4725+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47244726
* @param request GetPurchaseRequest
47254727
* @return GetPurchaseResult
47264728
*/
@@ -4740,7 +4742,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47404742
}
47414743

47424744
/**
4743-
* Retrieves a purchase along with its current PlayFab status.
4745+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47444746
*/
47454747
@SuppressWarnings("unchecked")
47464748
private static PlayFabResult<GetPurchaseResult> privateGetPurchaseAsync(final GetPurchaseRequest request) throws Exception {
@@ -7908,8 +7910,9 @@ public PlayFabResult<ValidateWindowsReceiptResult> call() throws Exception {
79087910
*/
79097911
@SuppressWarnings("unchecked")
79107912
private static PlayFabResult<ValidateWindowsReceiptResult> privateValidateWindowsStoreReceiptAsync(final ValidateWindowsReceiptRequest request) throws Exception {
7913+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
79117914

7912-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, null, null);
7915+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", _authKey);
79137916
task.run();
79147917
Object httpResult = task.get();
79157918
if(httpResult instanceof PlayFabError) {

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,18 @@ public static class ExecuteCloudScriptResult {
10371037
* The object returned from the CloudScript function, if any
10381038
*/
10391039
public Object FunctionResult;
1040+
/**
1041+
* Flag indicating if the FunctionResult was too large and was subsequently dropped from this event
1042+
*/
1043+
public Boolean FunctionResultTooLarge;
10401044
/**
10411045
* Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
10421046
*/
10431047
public ArrayList<LogStatement> Logs;
1048+
/**
1049+
* Flag indicating if the logs were too large and were subsequently dropped from this event
1050+
*/
1051+
public Boolean LogsTooLarge;
10441052
public Double ExecutionTimeSeconds;
10451053
/**
10461054
* Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
@@ -1056,7 +1064,7 @@ public static class ExecuteCloudScriptResult {
10561064
*/
10571065
public Integer HttpRequestsIssued;
10581066
/**
1059-
* Information about the error, if any, that occured during execution
1067+
* Information about the error, if any, that occurred during execution
10601068
*/
10611069
public ScriptExecutionError Error;
10621070

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ public static enum PlayFabErrorCode {
300300
PrizeTableHasNoRanks(1297),
301301
ProfileDoesNotExist(1298),
302302
ContentS3OriginBucketNotConfigured(1299),
303-
InvalidEnvironmentForReceipt(1300);
303+
InvalidEnvironmentForReceipt(1300),
304+
EncryptedRequestNotAllowed(1301),
305+
SignedRequestNotAllowed(1302),
306+
RequestViewConstraintParamsNotAllowed(1303);
304307

305308
public int id;
306309

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import com.playfab.PlayFabErrors.ErrorCallback;
55

66
public class PlayFabSettings {
7-
public static String SdkVersion = "0.48.170411";
7+
public static String SdkVersion = "0.49.170508";
88
public static String BuildIdentifier = "jbuild_javasdk_0";
9-
public static String SdkVersionString = "JavaSDK-0.48.170411";
9+
public static String SdkVersionString = "JavaSDK-0.49.170508";
1010

1111
public static String TitleId = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
1212
public static ErrorCallback GlobalErrorHandler;

PlayFabClientSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<inceptionYear>2016</inceptionYear>
55
<groupId>com.playfab</groupId>
66
<artifactId>client-sdk</artifactId>
7-
<version>0.48.170411</version>
7+
<version>0.49.170508</version>
88
<name>PlayFab Client API</name>
99
<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>
1010
<url>http://api.playfab.com/</url>

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,9 @@ public PlayFabResult<LinkWindowsHelloAccountResponse> call() throws Exception {
23282328
*/
23292329
@SuppressWarnings("unchecked")
23302330
private static PlayFabResult<LinkWindowsHelloAccountResponse> privateLinkWindowsHelloAsync(final LinkWindowsHelloAccountRequest request) throws Exception {
2331+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
23312332

2332-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, null, null);
2333+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, "X-Authorization", _authKey);
23332334
task.run();
23342335
Object httpResult = task.get();
23352336
if(httpResult instanceof PlayFabError) {
@@ -3132,8 +3133,9 @@ public PlayFabResult<UnlinkWindowsHelloAccountResponse> call() throws Exception
31323133
*/
31333134
@SuppressWarnings("unchecked")
31343135
private static PlayFabResult<UnlinkWindowsHelloAccountResponse> privateUnlinkWindowsHelloAsync(final UnlinkWindowsHelloAccountRequest request) throws Exception {
3136+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
31353137

3136-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, null, null);
3138+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, "X-Authorization", _authKey);
31373139
task.run();
31383140
Object httpResult = task.get();
31393141
if(httpResult instanceof PlayFabError) {
@@ -4705,7 +4707,7 @@ private static PlayFabResult<GetCharacterInventoryResult> privateGetCharacterInv
47054707
}
47064708

47074709
/**
4708-
* Retrieves a purchase along with its current PlayFab status.
4710+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47094711
* @param request GetPurchaseRequest
47104712
* @return Async Task will return GetPurchaseResult
47114713
*/
@@ -4719,7 +4721,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47194721
}
47204722

47214723
/**
4722-
* Retrieves a purchase along with its current PlayFab status.
4724+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47234725
* @param request GetPurchaseRequest
47244726
* @return GetPurchaseResult
47254727
*/
@@ -4739,7 +4741,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47394741
}
47404742

47414743
/**
4742-
* Retrieves a purchase along with its current PlayFab status.
4744+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47434745
*/
47444746
@SuppressWarnings("unchecked")
47454747
private static PlayFabResult<GetPurchaseResult> privateGetPurchaseAsync(final GetPurchaseRequest request) throws Exception {
@@ -7907,8 +7909,9 @@ public PlayFabResult<ValidateWindowsReceiptResult> call() throws Exception {
79077909
*/
79087910
@SuppressWarnings("unchecked")
79097911
private static PlayFabResult<ValidateWindowsReceiptResult> privateValidateWindowsStoreReceiptAsync(final ValidateWindowsReceiptRequest request) throws Exception {
7912+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
79107913

7911-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, null, null);
7914+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", _authKey);
79127915
task.run();
79137916
Object httpResult = task.get();
79147917
if(httpResult instanceof PlayFabError) {

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,18 @@ public static class ExecuteCloudScriptResult {
10371037
* The object returned from the CloudScript function, if any
10381038
*/
10391039
public Object FunctionResult;
1040+
/**
1041+
* Flag indicating if the FunctionResult was too large and was subsequently dropped from this event
1042+
*/
1043+
public Boolean FunctionResultTooLarge;
10401044
/**
10411045
* Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
10421046
*/
10431047
public ArrayList<LogStatement> Logs;
1048+
/**
1049+
* Flag indicating if the logs were too large and were subsequently dropped from this event
1050+
*/
1051+
public Boolean LogsTooLarge;
10441052
public Double ExecutionTimeSeconds;
10451053
/**
10461054
* Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
@@ -1056,7 +1064,7 @@ public static class ExecuteCloudScriptResult {
10561064
*/
10571065
public Integer HttpRequestsIssued;
10581066
/**
1059-
* Information about the error, if any, that occured during execution
1067+
* Information about the error, if any, that occurred during execution
10601068
*/
10611069
public ScriptExecutionError Error;
10621070

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ public static enum PlayFabErrorCode {
300300
PrizeTableHasNoRanks(1297),
301301
ProfileDoesNotExist(1298),
302302
ContentS3OriginBucketNotConfigured(1299),
303-
InvalidEnvironmentForReceipt(1300);
303+
InvalidEnvironmentForReceipt(1300),
304+
EncryptedRequestNotAllowed(1301),
305+
SignedRequestNotAllowed(1302),
306+
RequestViewConstraintParamsNotAllowed(1303);
304307

305308
public int id;
306309

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

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

55
public class PlayFabSettings {
6-
public static String SdkVersion = "0.48.170411";
6+
public static String SdkVersion = "0.49.170508";
77
public static String BuildIdentifier = "jbuild_javasdk_0";
8-
public static String SdkVersionString = "JavaSDK-0.48.170411";
8+
public static String SdkVersionString = "JavaSDK-0.49.170508";
99

1010
public static String TitleId = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
1111
public static ErrorCallback GlobalErrorHandler;

PlayFabSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<inceptionYear>2016</inceptionYear>
55
<groupId>com.playfab</groupId>
66
<artifactId>combo-sdk</artifactId>
7-
<version>0.48.170411</version>
7+
<version>0.49.170508</version>
88
<name>PlayFab Combo API</name>
99
<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>
1010
<url>http://api.playfab.com/</url>

PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4419,7 +4419,7 @@ private static PlayFabResult<UpdateCloudScriptResult> privateUpdateCloudScriptAs
44194419
}
44204420

44214421
/**
4422-
* Delete a content file from the title
4422+
* Delete a content file from the title. When deleting a file that does not exist, it returns success.
44234423
* @param request DeleteContentRequest
44244424
* @return Async Task will return BlankResult
44254425
*/
@@ -4433,7 +4433,7 @@ public PlayFabResult<BlankResult> call() throws Exception {
44334433
}
44344434

44354435
/**
4436-
* Delete a content file from the title
4436+
* Delete a content file from the title. When deleting a file that does not exist, it returns success.
44374437
* @param request DeleteContentRequest
44384438
* @return BlankResult
44394439
*/
@@ -4453,7 +4453,7 @@ public PlayFabResult<BlankResult> call() throws Exception {
44534453
}
44544454

44554455
/**
4456-
* Delete a content file from the title
4456+
* Delete a content file from the title. When deleting a file that does not exist, it returns success.
44574457
*/
44584458
@SuppressWarnings("unchecked")
44594459
private static PlayFabResult<BlankResult> privateDeleteContentAsync(final DeleteContentRequest request) throws Exception {

PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,10 +1150,18 @@ public static class ExecuteCloudScriptResult {
11501150
* The object returned from the CloudScript function, if any
11511151
*/
11521152
public Object FunctionResult;
1153+
/**
1154+
* Flag indicating if the FunctionResult was too large and was subsequently dropped from this event
1155+
*/
1156+
public Boolean FunctionResultTooLarge;
11531157
/**
11541158
* Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
11551159
*/
11561160
public ArrayList<LogStatement> Logs;
1161+
/**
1162+
* Flag indicating if the logs were too large and were subsequently dropped from this event
1163+
*/
1164+
public Boolean LogsTooLarge;
11571165
public Double ExecutionTimeSeconds;
11581166
/**
11591167
* Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
@@ -1169,7 +1177,7 @@ public static class ExecuteCloudScriptResult {
11691177
*/
11701178
public Integer HttpRequestsIssued;
11711179
/**
1172-
* Information about the error, if any, that occured during execution
1180+
* Information about the error, if any, that occurred during execution
11731181
*/
11741182
public ScriptExecutionError Error;
11751183

PlayFabSDK/src/main/java/com/playfab/PlayFabClientAPI.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,9 @@ public PlayFabResult<LinkWindowsHelloAccountResponse> call() throws Exception {
23282328
*/
23292329
@SuppressWarnings("unchecked")
23302330
private static PlayFabResult<LinkWindowsHelloAccountResponse> privateLinkWindowsHelloAsync(final LinkWindowsHelloAccountRequest request) throws Exception {
2331+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
23312332

2332-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, null, null);
2333+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/LinkWindowsHello", request, "X-Authorization", _authKey);
23332334
task.run();
23342335
Object httpResult = task.get();
23352336
if(httpResult instanceof PlayFabError) {
@@ -3132,8 +3133,9 @@ public PlayFabResult<UnlinkWindowsHelloAccountResponse> call() throws Exception
31323133
*/
31333134
@SuppressWarnings("unchecked")
31343135
private static PlayFabResult<UnlinkWindowsHelloAccountResponse> privateUnlinkWindowsHelloAsync(final UnlinkWindowsHelloAccountRequest request) throws Exception {
3136+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
31353137

3136-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, null, null);
3138+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/UnlinkWindowsHello", request, "X-Authorization", _authKey);
31373139
task.run();
31383140
Object httpResult = task.get();
31393141
if(httpResult instanceof PlayFabError) {
@@ -4705,7 +4707,7 @@ private static PlayFabResult<GetCharacterInventoryResult> privateGetCharacterInv
47054707
}
47064708

47074709
/**
4708-
* Retrieves a purchase along with its current PlayFab status.
4710+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47094711
* @param request GetPurchaseRequest
47104712
* @return Async Task will return GetPurchaseResult
47114713
*/
@@ -4719,7 +4721,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47194721
}
47204722

47214723
/**
4722-
* Retrieves a purchase along with its current PlayFab status.
4724+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47234725
* @param request GetPurchaseRequest
47244726
* @return GetPurchaseResult
47254727
*/
@@ -4739,7 +4741,7 @@ public PlayFabResult<GetPurchaseResult> call() throws Exception {
47394741
}
47404742

47414743
/**
4742-
* Retrieves a purchase along with its current PlayFab status.
4744+
* Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
47434745
*/
47444746
@SuppressWarnings("unchecked")
47454747
private static PlayFabResult<GetPurchaseResult> privateGetPurchaseAsync(final GetPurchaseRequest request) throws Exception {
@@ -7907,8 +7909,9 @@ public PlayFabResult<ValidateWindowsReceiptResult> call() throws Exception {
79077909
*/
79087910
@SuppressWarnings("unchecked")
79097911
private static PlayFabResult<ValidateWindowsReceiptResult> privateValidateWindowsStoreReceiptAsync(final ValidateWindowsReceiptRequest request) throws Exception {
7912+
if (_authKey == null) throw new Exception ("Must be logged in to call this method");
79107913

7911-
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, null, null);
7914+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", _authKey);
79127915
task.run();
79137916
Object httpResult = task.get();
79147917
if(httpResult instanceof PlayFabError) {

0 commit comments

Comments
 (0)