Skip to content

Commit 6360000

Browse files
author
PlayFabJenkinsBot
committed
https://api.playfab.com/releaseNotes/#180213
2 parents 2c266cf + 7954363 commit 6360000

File tree

106 files changed

+2070
-3636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2070
-3636
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// Basic JavaSDK ignores
2+
build/
3+
.idea/
4+
25
*.classpath
36
*.project
47
*.iml
5-
.idea/
6-
build/
8+
deploy.cmd
9+
deploy.sh
710

811
# Mobile Tools for Java (J2ME)
912
.mtj.tmp/

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

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public class PlayFabClientModels {
77

88
public static class AcceptTradeRequest {
99
/**
10-
* Items from the accepting player's or guild's inventory in exchange for the offered items in the trade. In the case of a
11-
* gift, this will be null.
10+
* Items from the accepting player's inventory in exchange for the offered items in the trade. In the case of a gift, this
11+
* will be null.
1212
*/
1313
public ArrayList<String> AcceptedInventoryInstanceIds;
1414
/** Player who opened the trade. */
@@ -881,6 +881,18 @@ public static class EmptyResult {
881881

882882
}
883883

884+
public static class EntityTokenResponse {
885+
/** The identifier of the entity the token was issued for. */
886+
public String EntityId;
887+
/** The token used to set X-EntityToken for all entity based API calls. */
888+
public String EntityToken;
889+
/** The type of entity the token was issued for. */
890+
public String EntityType;
891+
/** The time the token will expire, if it is an expiring token, in UTC. */
892+
public Date TokenExpiration;
893+
894+
}
895+
884896
public static class ExecuteCloudScriptRequest {
885897
/** The name of the CloudScript function to execute */
886898
public String FunctionName;
@@ -2142,6 +2154,11 @@ public static enum LoginIdentityProvider {
21422154
}
21432155

21442156
public static class LoginResult {
2157+
/**
2158+
* If LoginTitlePlayerAccountEntity flag is set on the login request the title_player_account will also be logged in and
2159+
* returned.
2160+
*/
2161+
public EntityTokenResponse EntityToken;
21452162
/** Results for requested info. */
21462163
public GetPlayerCombinedInfoResultPayload InfoResultPayload;
21472164
/** The time of this user's previous login. If there was no previous login, then it's DateTime.MinValue */
@@ -2168,6 +2185,8 @@ public static class LoginWithAndroidDeviceIDRequest {
21682185
public String EncryptedRequest;
21692186
/** Flags for which pieces of info to return for the user. */
21702187
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2188+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2189+
public Boolean LoginTitlePlayerAccountEntity;
21712190
/** Specific Operating System version for the user's device. */
21722191
public String OS;
21732192
/** Player secret that is used to verify API request signatures (Enterprise Only). */
@@ -2189,6 +2208,8 @@ public static class LoginWithCustomIDRequest {
21892208
public String EncryptedRequest;
21902209
/** Flags for which pieces of info to return for the user. */
21912210
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2211+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2212+
public Boolean LoginTitlePlayerAccountEntity;
21922213
/** Player secret that is used to verify API request signatures (Enterprise Only). */
21932214
public String PlayerSecret;
21942215
/**
@@ -2204,6 +2225,8 @@ public static class LoginWithEmailAddressRequest {
22042225
public String Email;
22052226
/** Flags for which pieces of info to return for the user. */
22062227
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2228+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2229+
public Boolean LoginTitlePlayerAccountEntity;
22072230
/** Password for the PlayFab account (6-100 characters) */
22082231
public String Password;
22092232
/**
@@ -2223,6 +2246,8 @@ public static class LoginWithFacebookRequest {
22232246
public String EncryptedRequest;
22242247
/** Flags for which pieces of info to return for the user. */
22252248
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2249+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2250+
public Boolean LoginTitlePlayerAccountEntity;
22262251
/** Player secret that is used to verify API request signatures (Enterprise Only). */
22272252
public String PlayerSecret;
22282253
/**
@@ -2240,6 +2265,8 @@ public static class LoginWithGameCenterRequest {
22402265
public String EncryptedRequest;
22412266
/** Flags for which pieces of info to return for the user. */
22422267
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2268+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2269+
public Boolean LoginTitlePlayerAccountEntity;
22432270
/** Unique Game Center player id. */
22442271
public String PlayerId;
22452272
/** Player secret that is used to verify API request signatures (Enterprise Only). */
@@ -2259,6 +2286,8 @@ public static class LoginWithGoogleAccountRequest {
22592286
public String EncryptedRequest;
22602287
/** Flags for which pieces of info to return for the user. */
22612288
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2289+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2290+
public Boolean LoginTitlePlayerAccountEntity;
22622291
/** Player secret that is used to verify API request signatures (Enterprise Only). */
22632292
public String PlayerSecret;
22642293
/**
@@ -2285,6 +2314,8 @@ public static class LoginWithIOSDeviceIDRequest {
22852314
public String EncryptedRequest;
22862315
/** Flags for which pieces of info to return for the user. */
22872316
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2317+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2318+
public Boolean LoginTitlePlayerAccountEntity;
22882319
/** Specific Operating System version for the user's device. */
22892320
public String OS;
22902321
/** Player secret that is used to verify API request signatures (Enterprise Only). */
@@ -2308,6 +2339,8 @@ public static class LoginWithKongregateRequest {
23082339
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
23092340
/** Numeric user ID assigned by Kongregate */
23102341
public String KongregateId;
2342+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2343+
public Boolean LoginTitlePlayerAccountEntity;
23112344
/** Player secret that is used to verify API request signatures (Enterprise Only). */
23122345
public String PlayerSecret;
23132346
/**
@@ -2321,6 +2354,8 @@ public static class LoginWithKongregateRequest {
23212354
public static class LoginWithPlayFabRequest {
23222355
/** Flags for which pieces of info to return for the user. */
23232356
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2357+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2358+
public Boolean LoginTitlePlayerAccountEntity;
23242359
/** Password for the PlayFab account (6-100 characters) */
23252360
public String Password;
23262361
/**
@@ -2340,6 +2375,8 @@ public static class LoginWithSteamRequest {
23402375
public String EncryptedRequest;
23412376
/** Flags for which pieces of info to return for the user. */
23422377
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2378+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2379+
public Boolean LoginTitlePlayerAccountEntity;
23432380
/** Player secret that is used to verify API request signatures (Enterprise Only). */
23442381
public String PlayerSecret;
23452382
/**
@@ -2364,6 +2401,8 @@ public static class LoginWithTwitchRequest {
23642401
public String EncryptedRequest;
23652402
/** Flags for which pieces of info to return for the user. */
23662403
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2404+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2405+
public Boolean LoginTitlePlayerAccountEntity;
23672406
/** Player secret that is used to verify API request signatures (Enterprise Only). */
23682407
public String PlayerSecret;
23692408
/**
@@ -2379,6 +2418,8 @@ public static class LoginWithWindowsHelloRequest {
23792418
public String ChallengeSignature;
23802419
/** Flags for which pieces of info to return for the user. */
23812420
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2421+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2422+
public Boolean LoginTitlePlayerAccountEntity;
23822423
/** SHA256 hash of the PublicKey generated by Windows Hello. */
23832424
public String PublicKeyHint;
23842425
/**
@@ -2762,6 +2803,8 @@ public static class RegisterPlayFabUserRequest {
27622803
public String EncryptedRequest;
27632804
/** Flags for which pieces of info to return for the user. */
27642805
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2806+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2807+
public Boolean LoginTitlePlayerAccountEntity;
27652808
/** Password for the PlayFab account (6-100 characters) */
27662809
public String Password;
27672810
/** Player secret that is used to verify API request signatures (Enterprise Only). */
@@ -2801,6 +2844,8 @@ public static class RegisterWithWindowsHelloRequest {
28012844
public String EncryptedRequest;
28022845
/** Flags for which pieces of info to return for the user. */
28032846
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
2847+
/** Flag to automatically login the player's title_player_account and return the associated entity token. */
2848+
public Boolean LoginTitlePlayerAccountEntity;
28042849
/** Player secret that is used to verify API request signatures (Enterprise Only). */
28052850
public String PlayerSecret;
28062851
/** PublicKey generated by Windows Hello. */
@@ -2895,6 +2940,8 @@ public static class ScriptExecutionError {
28952940
public static class SendAccountRecoveryEmailRequest {
28962941
/** User email address attached to their account */
28972942
public String Email;
2943+
/** The email template id of the account recovery email template to send. */
2944+
public String EmailTemplateId;
28982945
/**
28992946
* Unique identifier for the title, found in the Settings &gt; Game Properties section of the PlayFab developer site when a
29002947
* title has been selected.

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,21 @@ public static enum PlayFabErrorCode {
356356
TemplateVersionTooOld(1353),
357357
MembershipDefinitionInUse(1354),
358358
PaymentPageNotConfigured(1355),
359-
FailedLoginAttemptRateLimitExceeded(1356);
359+
FailedLoginAttemptRateLimitExceeded(1356),
360+
EntityBlockedByGroup(1357),
361+
EntityIsNotGroupOrRole(1358),
362+
EntityIsAlreadyMember(1359),
363+
MalformedGroupTemplate(1360),
364+
GroupInvitationNotFound(1361),
365+
GroupJoinRequestNotFound(1362),
366+
OutstandingInvitationAcceptedInstead(1363),
367+
OutstandingJoinRequestAcceptedInstead(1364),
368+
RoleIsGroupDefaultMember(1365),
369+
RoleIsGroupAdmin(1366),
370+
RoleNameNotAvailable(1367),
371+
GroupNameNotAvailable(1368),
372+
EmailReportAlreadySent(1369),
373+
EmailReportRecipientBlacklisted(1370);
360374

361375
public int id;
362376

@@ -374,7 +388,7 @@ public boolean equals(PlayFabErrorCode o) {
374388

375389
public static PlayFabErrorCode getFromCode(int code) {
376390
for(PlayFabErrorCode error : PlayFabErrorCode.values()) {
377-
if(error.equals(code)) {
391+
if (error.equals(code)) {
378392
return error;
379393
}
380394
}

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

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

66
public class PlayFabSettings {
7-
public static String SdkVersion = "0.62.180122";
7+
public static String SdkVersion = "0.64.180213";
88
public static String BuildIdentifier = "jbuild_javasdk_1";
9-
public static String SdkVersionString = "JavaSDK-0.62.180122";
9+
public static String SdkVersionString = "JavaSDK-0.64.180213";
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;
13+
public static String EntityToken = null; // Set by GetEntityToken
14+
public static String DeveloperSecretKey = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
15+
public static String ClientSessionTicket = null; // Set by any Client Login Call
1316
public static String AdvertisingIdType = null; // Set this to the appropriate AD_TYPE_X constant below
1417
public static String AdvertisingIdValue = null; // Set this to corresponding device value
1518
public static Context androidContext = null; // Context object for android devices

0 commit comments

Comments
 (0)