From afebb43f7e997e706747b4a5358960377bdc7531 Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Mon, 30 Nov 2015 02:09:48 +0000 Subject: [PATCH 1/5] Automated build from Jenkins --- PlayFabClientSDK/source/PlayFabClientModels.cs | 15 +++++++++++++++ PlayFabSDK/source/PlayFabClientModels.cs | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/PlayFabClientSDK/source/PlayFabClientModels.cs b/PlayFabClientSDK/source/PlayFabClientModels.cs index d577a2ed..810cb5af 100644 --- a/PlayFabClientSDK/source/PlayFabClientModels.cs +++ b/PlayFabClientSDK/source/PlayFabClientModels.cs @@ -2753,6 +2753,8 @@ public class LoginResult /// public bool NewlyCreated { get; set;} + public UserSettings UserSettings { get; set;} + } @@ -3608,6 +3610,8 @@ public class RegisterPlayFabUserResult /// public string Username { get; set;} + public UserSettings UserSettings { get; set;} + } @@ -4747,6 +4751,17 @@ public class UserPrivateAccountInfo + public class UserSettings + { + + + public bool NeedsAttribution { get; set;} + + + } + + + public class UserSteamInfo { diff --git a/PlayFabSDK/source/PlayFabClientModels.cs b/PlayFabSDK/source/PlayFabClientModels.cs index d577a2ed..810cb5af 100644 --- a/PlayFabSDK/source/PlayFabClientModels.cs +++ b/PlayFabSDK/source/PlayFabClientModels.cs @@ -2753,6 +2753,8 @@ public class LoginResult /// public bool NewlyCreated { get; set;} + public UserSettings UserSettings { get; set;} + } @@ -3608,6 +3610,8 @@ public class RegisterPlayFabUserResult /// public string Username { get; set;} + public UserSettings UserSettings { get; set;} + } @@ -4747,6 +4751,17 @@ public class UserPrivateAccountInfo + public class UserSettings + { + + + public bool NeedsAttribution { get; set;} + + + } + + + public class UserSteamInfo { From 8893cfc824d61ec5b1fa36d2dcca3e35fdc6d92b Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Mon, 30 Nov 2015 20:12:15 +0000 Subject: [PATCH 2/5] Automated build from Jenkins --- PlayFabClientSDK/source/PlayFabClientModels.cs | 10 ++++++++-- PlayFabSDK/source/PlayFabClientModels.cs | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/PlayFabClientSDK/source/PlayFabClientModels.cs b/PlayFabClientSDK/source/PlayFabClientModels.cs index 810cb5af..b3103822 100644 --- a/PlayFabClientSDK/source/PlayFabClientModels.cs +++ b/PlayFabClientSDK/source/PlayFabClientModels.cs @@ -2753,7 +2753,10 @@ public class LoginResult /// public bool NewlyCreated { get; set;} - public UserSettings UserSettings { get; set;} + /// + /// Settings specific to this user. + /// + public UserSettings SettingsForUser { get; set;} } @@ -3610,7 +3613,10 @@ public class RegisterPlayFabUserResult /// public string Username { get; set;} - public UserSettings UserSettings { get; set;} + /// + /// Settings specific to this user. + /// + public UserSettings SettingsForUser { get; set;} } diff --git a/PlayFabSDK/source/PlayFabClientModels.cs b/PlayFabSDK/source/PlayFabClientModels.cs index 810cb5af..b3103822 100644 --- a/PlayFabSDK/source/PlayFabClientModels.cs +++ b/PlayFabSDK/source/PlayFabClientModels.cs @@ -2753,7 +2753,10 @@ public class LoginResult /// public bool NewlyCreated { get; set;} - public UserSettings UserSettings { get; set;} + /// + /// Settings specific to this user. + /// + public UserSettings SettingsForUser { get; set;} } @@ -3610,7 +3613,10 @@ public class RegisterPlayFabUserResult /// public string Username { get; set;} - public UserSettings UserSettings { get; set;} + /// + /// Settings specific to this user. + /// + public UserSettings SettingsForUser { get; set;} } From 5d833021db985446607244f8bae35090917e1274 Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Mon, 30 Nov 2015 20:31:47 +0000 Subject: [PATCH 3/5] Automated build from Jenkins --- PlayFabClientSDK/source/PlayFabErrors.cs | 4 +++- PlayFabSDK/source/PlayFabErrors.cs | 4 +++- PlayFabServerSDK/source/PlayFabErrors.cs | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/PlayFabClientSDK/source/PlayFabErrors.cs b/PlayFabClientSDK/source/PlayFabErrors.cs index 3f78e3bd..27d137ba 100644 --- a/PlayFabClientSDK/source/PlayFabErrors.cs +++ b/PlayFabClientSDK/source/PlayFabErrors.cs @@ -191,7 +191,9 @@ public enum PlayFabErrorCode DeleteKeyConflict = 1187, InvalidXboxLiveToken = 1188, ExpiredXboxLiveToken = 1189, - ResettableStatisticVersionRequired = 1190 + ResettableStatisticVersionRequired = 1190, + NotAuthorizedByTitle = 1191, + NoPartnerEnabled = 1192 } public class PlayFabError diff --git a/PlayFabSDK/source/PlayFabErrors.cs b/PlayFabSDK/source/PlayFabErrors.cs index 3f78e3bd..27d137ba 100644 --- a/PlayFabSDK/source/PlayFabErrors.cs +++ b/PlayFabSDK/source/PlayFabErrors.cs @@ -191,7 +191,9 @@ public enum PlayFabErrorCode DeleteKeyConflict = 1187, InvalidXboxLiveToken = 1188, ExpiredXboxLiveToken = 1189, - ResettableStatisticVersionRequired = 1190 + ResettableStatisticVersionRequired = 1190, + NotAuthorizedByTitle = 1191, + NoPartnerEnabled = 1192 } public class PlayFabError diff --git a/PlayFabServerSDK/source/PlayFabErrors.cs b/PlayFabServerSDK/source/PlayFabErrors.cs index 3f78e3bd..27d137ba 100644 --- a/PlayFabServerSDK/source/PlayFabErrors.cs +++ b/PlayFabServerSDK/source/PlayFabErrors.cs @@ -191,7 +191,9 @@ public enum PlayFabErrorCode DeleteKeyConflict = 1187, InvalidXboxLiveToken = 1188, ExpiredXboxLiveToken = 1189, - ResettableStatisticVersionRequired = 1190 + ResettableStatisticVersionRequired = 1190, + NotAuthorizedByTitle = 1191, + NoPartnerEnabled = 1192 } public class PlayFabError From 6c6e86a15b13e67d6cc65c5f2ae6920fcfa859ef Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Mon, 30 Nov 2015 20:54:37 +0000 Subject: [PATCH 4/5] Automated build from Jenkins --- PlayFabClientSDK/source/PlayFabVersion.cs | 2 +- PlayFabSDK/source/PlayFabVersion.cs | 2 +- PlayFabServerSDK/source/PlayFabVersion.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlayFabClientSDK/source/PlayFabVersion.cs b/PlayFabClientSDK/source/PlayFabVersion.cs index f30df1d6..c711ee59 100644 --- a/PlayFabClientSDK/source/PlayFabVersion.cs +++ b/PlayFabClientSDK/source/PlayFabVersion.cs @@ -3,7 +3,7 @@ namespace PlayFab.Internal { public class PlayFabVersion { - public static string SdkRevision = "0.11.151123"; + public static string SdkRevision = "0.12.151130"; public static string getVersionString() { diff --git a/PlayFabSDK/source/PlayFabVersion.cs b/PlayFabSDK/source/PlayFabVersion.cs index f30df1d6..c711ee59 100644 --- a/PlayFabSDK/source/PlayFabVersion.cs +++ b/PlayFabSDK/source/PlayFabVersion.cs @@ -3,7 +3,7 @@ namespace PlayFab.Internal { public class PlayFabVersion { - public static string SdkRevision = "0.11.151123"; + public static string SdkRevision = "0.12.151130"; public static string getVersionString() { diff --git a/PlayFabServerSDK/source/PlayFabVersion.cs b/PlayFabServerSDK/source/PlayFabVersion.cs index f30df1d6..c711ee59 100644 --- a/PlayFabServerSDK/source/PlayFabVersion.cs +++ b/PlayFabServerSDK/source/PlayFabVersion.cs @@ -3,7 +3,7 @@ namespace PlayFab.Internal { public class PlayFabVersion { - public static string SdkRevision = "0.11.151123"; + public static string SdkRevision = "0.12.151130"; public static string getVersionString() { From df1aeeea2163af421ebabf5c5a6c60089a7c567b Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Tue, 1 Dec 2015 00:30:02 +0000 Subject: [PATCH 5/5] Automated build from Jenkins --- PlayFabClientSDK/source/PlayFabClientAPI.cs | 66 ++++++++++++++++++ .../source/PlayFabClientModels.cs | 67 +++++++++++++++++++ PlayFabSDK/source/PlayFabClientAPI.cs | 66 ++++++++++++++++++ PlayFabSDK/source/PlayFabClientModels.cs | 67 +++++++++++++++++++ 4 files changed, 266 insertions(+) diff --git a/PlayFabClientSDK/source/PlayFabClientAPI.cs b/PlayFabClientSDK/source/PlayFabClientAPI.cs index cbdc6242..ff564ea6 100644 --- a/PlayFabClientSDK/source/PlayFabClientAPI.cs +++ b/PlayFabClientSDK/source/PlayFabClientAPI.cs @@ -181,6 +181,40 @@ public static async Task> LoginWithFacebookAsync(Logi AuthKey = result.SessionTicket ?? AuthKey; + return new PlayFabResult + { + Result = result + }; + } + + /// + /// Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user + /// + public static async Task> LoginWithGameCenterAsync(LoginWithGameCenterRequest request) + { + request.TitleId = PlayFabSettings.TitleId ?? request.TitleId; + if(request.TitleId == null) throw new Exception ("Must be have PlayFabSettings.TitleId set to call this method"); + + object httpResult = await PlayFabHTTP.DoPost(PlayFabSettings.GetURL() + "/Client/LoginWithGameCenter", request, null, null); + if(httpResult is PlayFabError) + { + PlayFabError error = (PlayFabError)httpResult; + if (PlayFabSettings.GlobalErrorHandler != null) + PlayFabSettings.GlobalErrorHandler(error); + return new PlayFabResult + { + Error = error, + }; + } + string resultRawJson = (string)httpResult; + + var serializer = JsonSerializer.Create(PlayFabSettings.JsonSettings); + var resultData = serializer.Deserialize>(new JsonTextReader(new StringReader(resultRawJson))); + + LoginResult result = resultData.data; + AuthKey = result.SessionTicket ?? AuthKey; + + return new PlayFabResult { Result = result @@ -1222,6 +1256,38 @@ public static async Task> GetFriendLeaderboa }; } + /// + /// Retrieves a list of ranked friends of the current player for the given statistic, centered on the currently signed-in user + /// + public static async Task> GetFriendLeaderboardAroundCurrentUserAsync(GetFriendLeaderboardAroundCurrentUserRequest request) + { + if (AuthKey == null) throw new Exception ("Must be logged in to call this method"); + + object httpResult = await PlayFabHTTP.DoPost(PlayFabSettings.GetURL() + "/Client/GetFriendLeaderboardAroundCurrentUser", request, "X-Authorization", AuthKey); + if(httpResult is PlayFabError) + { + PlayFabError error = (PlayFabError)httpResult; + if (PlayFabSettings.GlobalErrorHandler != null) + PlayFabSettings.GlobalErrorHandler(error); + return new PlayFabResult + { + Error = error, + }; + } + string resultRawJson = (string)httpResult; + + var serializer = JsonSerializer.Create(PlayFabSettings.JsonSettings); + var resultData = serializer.Deserialize>(new JsonTextReader(new StringReader(resultRawJson))); + + GetFriendLeaderboardAroundCurrentUserResult result = resultData.data; + + + return new PlayFabResult + { + Result = result + }; + } + /// /// Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard /// diff --git a/PlayFabClientSDK/source/PlayFabClientModels.cs b/PlayFabClientSDK/source/PlayFabClientModels.cs index b3103822..8c5526e6 100644 --- a/PlayFabClientSDK/source/PlayFabClientModels.cs +++ b/PlayFabClientSDK/source/PlayFabClientModels.cs @@ -1368,6 +1368,49 @@ public class GetContentDownloadUrlResult + public class GetFriendLeaderboardAroundCurrentUserRequest + { + + + /// + /// Statistic used to rank players for this leaderboard. + /// + public string StatisticName { get; set;} + + /// + /// Maximum number of entries to retrieve. + /// + public int MaxResultsCount { get; set;} + + /// + /// Indicates whether Steam service friends should be included in the response. Default is true. + /// + public bool? IncludeSteamFriends { get; set;} + + /// + /// Indicates whether Facebook friends should be included in the response. Default is true. + /// + public bool? IncludeFacebookFriends { get; set;} + + + } + + + + public class GetFriendLeaderboardAroundCurrentUserResult + { + + + /// + /// Ordered listing of users and their positions in the requested leaderboard. + /// + public List Leaderboard { get; set;} + + + } + + + public class GetFriendLeaderboardRequest { @@ -2869,6 +2912,30 @@ public class LoginWithFacebookRequest + public class LoginWithGameCenterRequest + { + + + /// + /// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a title has been selected + /// + public string TitleId { get; set;} + + /// + /// Unique Game Center player id. + /// + public string PlayerId { get; set;} + + /// + /// Automatically create a PlayFab account if one is not currently linked to this Game Center id. + /// + public bool? CreateAccount { get; set;} + + + } + + + public class LoginWithGoogleAccountRequest { diff --git a/PlayFabSDK/source/PlayFabClientAPI.cs b/PlayFabSDK/source/PlayFabClientAPI.cs index cbdc6242..ff564ea6 100644 --- a/PlayFabSDK/source/PlayFabClientAPI.cs +++ b/PlayFabSDK/source/PlayFabClientAPI.cs @@ -181,6 +181,40 @@ public static async Task> LoginWithFacebookAsync(Logi AuthKey = result.SessionTicket ?? AuthKey; + return new PlayFabResult + { + Result = result + }; + } + + /// + /// Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user + /// + public static async Task> LoginWithGameCenterAsync(LoginWithGameCenterRequest request) + { + request.TitleId = PlayFabSettings.TitleId ?? request.TitleId; + if(request.TitleId == null) throw new Exception ("Must be have PlayFabSettings.TitleId set to call this method"); + + object httpResult = await PlayFabHTTP.DoPost(PlayFabSettings.GetURL() + "/Client/LoginWithGameCenter", request, null, null); + if(httpResult is PlayFabError) + { + PlayFabError error = (PlayFabError)httpResult; + if (PlayFabSettings.GlobalErrorHandler != null) + PlayFabSettings.GlobalErrorHandler(error); + return new PlayFabResult + { + Error = error, + }; + } + string resultRawJson = (string)httpResult; + + var serializer = JsonSerializer.Create(PlayFabSettings.JsonSettings); + var resultData = serializer.Deserialize>(new JsonTextReader(new StringReader(resultRawJson))); + + LoginResult result = resultData.data; + AuthKey = result.SessionTicket ?? AuthKey; + + return new PlayFabResult { Result = result @@ -1222,6 +1256,38 @@ public static async Task> GetFriendLeaderboa }; } + /// + /// Retrieves a list of ranked friends of the current player for the given statistic, centered on the currently signed-in user + /// + public static async Task> GetFriendLeaderboardAroundCurrentUserAsync(GetFriendLeaderboardAroundCurrentUserRequest request) + { + if (AuthKey == null) throw new Exception ("Must be logged in to call this method"); + + object httpResult = await PlayFabHTTP.DoPost(PlayFabSettings.GetURL() + "/Client/GetFriendLeaderboardAroundCurrentUser", request, "X-Authorization", AuthKey); + if(httpResult is PlayFabError) + { + PlayFabError error = (PlayFabError)httpResult; + if (PlayFabSettings.GlobalErrorHandler != null) + PlayFabSettings.GlobalErrorHandler(error); + return new PlayFabResult + { + Error = error, + }; + } + string resultRawJson = (string)httpResult; + + var serializer = JsonSerializer.Create(PlayFabSettings.JsonSettings); + var resultData = serializer.Deserialize>(new JsonTextReader(new StringReader(resultRawJson))); + + GetFriendLeaderboardAroundCurrentUserResult result = resultData.data; + + + return new PlayFabResult + { + Result = result + }; + } + /// /// Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard /// diff --git a/PlayFabSDK/source/PlayFabClientModels.cs b/PlayFabSDK/source/PlayFabClientModels.cs index b3103822..8c5526e6 100644 --- a/PlayFabSDK/source/PlayFabClientModels.cs +++ b/PlayFabSDK/source/PlayFabClientModels.cs @@ -1368,6 +1368,49 @@ public class GetContentDownloadUrlResult + public class GetFriendLeaderboardAroundCurrentUserRequest + { + + + /// + /// Statistic used to rank players for this leaderboard. + /// + public string StatisticName { get; set;} + + /// + /// Maximum number of entries to retrieve. + /// + public int MaxResultsCount { get; set;} + + /// + /// Indicates whether Steam service friends should be included in the response. Default is true. + /// + public bool? IncludeSteamFriends { get; set;} + + /// + /// Indicates whether Facebook friends should be included in the response. Default is true. + /// + public bool? IncludeFacebookFriends { get; set;} + + + } + + + + public class GetFriendLeaderboardAroundCurrentUserResult + { + + + /// + /// Ordered listing of users and their positions in the requested leaderboard. + /// + public List Leaderboard { get; set;} + + + } + + + public class GetFriendLeaderboardRequest { @@ -2869,6 +2912,30 @@ public class LoginWithFacebookRequest + public class LoginWithGameCenterRequest + { + + + /// + /// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a title has been selected + /// + public string TitleId { get; set;} + + /// + /// Unique Game Center player id. + /// + public string PlayerId { get; set;} + + /// + /// Automatically create a PlayFab account if one is not currently linked to this Game Center id. + /// + public bool? CreateAccount { get; set;} + + + } + + + public class LoginWithGoogleAccountRequest {