Skip to content

Commit 71dc5a1

Browse files
author
Playfab Jenkins Bot
committed
https://api.playfab.com/releaseNotes/#170223
1 parent 13d6304 commit 71dc5a1

File tree

14 files changed

+1998
-38
lines changed

14 files changed

+1998
-38
lines changed

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.0.170130";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.1.170223";
104104

105105
PlayFab.AdminApi = {
106106

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.0.170130";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.1.170223";
104104

105105
PlayFab.ClientApi = {
106106

@@ -114,6 +114,16 @@ PlayFab.ClientApi = {
114114
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetPhotonAuthenticationToken", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
115115
},
116116

117+
GetWindowsHelloChallenge: function (request, callback) {
118+
119+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetWindowsHelloChallenge", request, null, null, callback);
120+
},
121+
122+
LinkWindowsHello: function (request, callback) {
123+
124+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LinkWindowsHello", request, null, null, callback);
125+
},
126+
117127
LoginWithAndroidDeviceID: function (request, callback) {
118128
request.TitleId = PlayFab.settings.titleId != null ? PlayFab.settings.titleId : request.TitleId; if (request.TitleId == null) throw "Must be have PlayFab.settings.titleId set to call this method";
119129

@@ -268,6 +278,20 @@ PlayFab.ClientApi = {
268278
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LoginWithTwitch", request, null, null, overloadCallback);
269279
},
270280

281+
LoginWithWindowsHello: function (request, callback) {
282+
request.TitleId = PlayFab.settings.titleId != null ? PlayFab.settings.titleId : request.TitleId; if (request.TitleId == null) throw "Must be have PlayFab.settings.titleId set to call this method";
283+
284+
var overloadCallback = function (result, error) {
285+
if (result != null && result.data.SessionTicket != null) {
286+
PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
287+
PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
288+
}
289+
if (callback != null && typeof (callback) == "function")
290+
callback(result, error);
291+
};
292+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LoginWithWindowsHello", request, null, null, overloadCallback);
293+
},
294+
271295
RegisterPlayFabUser: function (request, callback) {
272296
request.TitleId = PlayFab.settings.titleId != null ? PlayFab.settings.titleId : request.TitleId; if (request.TitleId == null) throw "Must be have PlayFab.settings.titleId set to call this method";
273297

@@ -282,6 +306,25 @@ PlayFab.ClientApi = {
282306
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/RegisterPlayFabUser", request, null, null, overloadCallback);
283307
},
284308

309+
RegisterWithWindowsHello: function (request, callback) {
310+
request.TitleId = PlayFab.settings.titleId != null ? PlayFab.settings.titleId : request.TitleId; if (request.TitleId == null) throw "Must be have PlayFab.settings.titleId set to call this method";
311+
312+
var overloadCallback = function (result, error) {
313+
if (result != null && result.data.SessionTicket != null) {
314+
PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
315+
PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
316+
}
317+
if (callback != null && typeof (callback) == "function")
318+
callback(result, error);
319+
};
320+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/RegisterWithWindowsHello", request, null, null, overloadCallback);
321+
},
322+
323+
UnlinkWindowsHello: function (request, callback) {
324+
325+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UnlinkWindowsHello", request, null, null, callback);
326+
},
327+
285328
AddGenericID: function (request, callback) {
286329
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
287330

@@ -473,6 +516,12 @@ PlayFab.ClientApi = {
473516
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UnlinkTwitch", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
474517
},
475518

519+
UpdateAvatarUrl: function (request, callback) {
520+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
521+
522+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UpdateAvatarUrl", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
523+
},
524+
476525
UpdateUserTitleDisplayName: function (request, callback) {
477526
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
478527

@@ -930,6 +979,11 @@ PlayFab.ClientApi = {
930979
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetPlayerTags", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
931980
},
932981

982+
ValidateWindowsStoreReceipt: function (request, callback) {
983+
984+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/ValidateWindowsStoreReceipt", request, null, null, callback);
985+
},
986+
933987
_MultiStepClientLogin: function (needsAttribution) {
934988
if (needsAttribution && !PlayFab.settings.disableAdvertising && PlayFab.settings.advertisingIdType !== null && PlayFab.settings.advertisingIdValue !== null) {
935989
var request = {};

PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.0.170130";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.1.170223";
104104

105105
PlayFab.MatchmakerApi = {
106106

PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.0.170130";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.1.170223";
104104

105105
PlayFab.ServerApi = {
106106

@@ -158,6 +158,12 @@ PlayFab.ServerApi = {
158158
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SendPushNotification", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
159159
},
160160

161+
UpdateAvatarUrl: function (request, callback) {
162+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
163+
164+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/UpdateAvatarUrl", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
165+
},
166+
161167
UpdateBans: function (request, callback) {
162168
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
163169

@@ -488,6 +494,12 @@ PlayFab.ServerApi = {
488494
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/RemoveFriend", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
489495
},
490496

497+
SetFriendTags: function (request, callback) {
498+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
499+
500+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SetFriendTags", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
501+
},
502+
491503
DeregisterGame: function (request, callback) {
492504
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
493505

PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,7 +2866,8 @@ declare module PlayFabAdminModels {
28662866
| "Facebook"
28672867
| "IOSDevice"
28682868
| "AndroidDevice"
2869-
| "Twitch";
2869+
| "Twitch"
2870+
| "WindowsHello";
28702871

28712872
/**
28722873
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.LogStatement
@@ -3171,6 +3172,10 @@ declare module PlayFabAdminModels {
31713172
/ Banned until UTC Date. If permanent ban this is set for 20 years after the original ban date.
31723173
*/
31733174
BannedUntil?: string;
3175+
/**
3176+
/ Image URL of the player's avatar.
3177+
*/
3178+
AvatarUrl?: string;
31743179
/**
31753180
/ Dictionary of player's statistics using only the latest version's value
31763181
*/
@@ -4538,7 +4543,8 @@ declare module PlayFabAdminModels {
45384543
| "CustomId"
45394544
| "XboxLive"
45404545
| "Parse"
4541-
| "Twitch";
4546+
| "Twitch"
4547+
| "WindowsHello";
45424548

45434549
/**
45444550
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.UserPrivateAccountInfo
@@ -4617,6 +4623,10 @@ declare module PlayFabAdminModels {
46174623
/ boolean indicating whether or not the user is currently banned for a title
46184624
*/
46194625
isBanned?: boolean;
4626+
/**
4627+
/ URL to the player's avatar.
4628+
*/
4629+
AvatarUrl?: string;
46204630

46214631
}
46224632

0 commit comments

Comments
 (0)