diff --git a/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs b/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs index 95f8da8dc..f4dfc841b 100644 --- a/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs +++ b/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs @@ -1 +1 @@ -namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.200.240816"; } } +namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.202.240913"; } } diff --git a/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs index f7926fe8f..24946cf7e 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs @@ -144,6 +144,12 @@ public class CreateOrUpdateGoogleRequest : PlayFabRequestCommon /// public string OAuthClientSecret; /// + /// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to + /// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own + /// domain. + /// + public string OAuthCustomRedirectUri; + /// /// Needed to enable pending purchase handling and subscription processing. /// public string ServiceAccountKey; @@ -616,6 +622,12 @@ public class GetGoogleResponse : PlayFabResultCommon /// Required if using Google Authentication. /// public string OAuthClientID; + /// + /// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to + /// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own + /// domain. + /// + public string OauthCustomRedirectUri; } [Serializable] diff --git a/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs index 1ff04d1f0..75594f4a0 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs @@ -2644,7 +2644,7 @@ public enum GenericErrorCodes MultipleLinkedStatisticsNotAllowed, DuplicateLinkedStatisticColumnNameFound, AggregationTypeNotAllowedForMultiColumnStatistic, - MaxQueryableVerionsValueNotAllowedForTier, + MaxQueryableVersionsValueNotAllowedForTier, StatisticDefinitionHasNullOrEmptyVersionConfiguration, StatisticColumnLengthMismatch, MatchmakingEntityInvalid, @@ -4333,7 +4333,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] @@ -7560,7 +7561,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleMacProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs index ce35e67fc..091e27b3c 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs @@ -194,7 +194,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs index 5a8585474..a8e51aae7 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs @@ -1450,7 +1450,7 @@ public class FacebookPlayFabIdPair : PlayFabBaseModel public class FriendInfo : PlayFabBaseModel { /// - /// Available Facebook information (if the user and PlayFab friend are also connected in Facebook). + /// Available Facebook information (if the user and connected Facebook friend both have PlayFab Accounts in the same title). /// public UserFacebookInfo FacebookInfo; /// @@ -1458,7 +1458,8 @@ public class FriendInfo : PlayFabBaseModel /// public string FriendPlayFabId; /// - /// Available Game Center information (if the user and PlayFab friend are also connected in Game Center). + /// Available Game Center information (if the user and connected Game Center friend both have PlayFab Accounts in the same + /// title). /// public UserGameCenterInfo GameCenterInfo; /// @@ -1466,12 +1467,12 @@ public class FriendInfo : PlayFabBaseModel /// public PlayerProfileModel Profile; /// - /// Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: - /// Network. + /// Available PlayStation :tm: Network information, if the user connected PlayStation :tm Network friend both have PlayFab + /// Accounts in the same title. /// public UserPsnInfo PSNInfo; /// - /// Available Steam information (if the user and PlayFab friend are also connected in Steam). + /// Available Steam information (if the user and connected Steam friend both have PlayFab Accounts in the same title). /// public UserSteamInfo SteamInfo; /// @@ -1487,7 +1488,7 @@ public class FriendInfo : PlayFabBaseModel /// public string Username; /// - /// Available Xbox information, if the user and PlayFab friend are both connected to Xbox Live. + /// Available Xbox information, (if the user and connected Xbox Live friend both have PlayFab Accounts in the same title). /// public UserXboxInfo XboxInfo; } @@ -3824,7 +3825,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] @@ -7051,7 +7053,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleMacProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs b/ExampleMacProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs index 45f9c31d8..1eab23ccb 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs @@ -702,7 +702,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs index bed60c78b..6c73d3496 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs @@ -2408,26 +2408,26 @@ public class RedemptionFailure : PlayFabBaseModel /// public string FailureDetails; /// - /// The transaction id in the external marketplace. + /// The Marketplace Alternate ID being redeemed. /// - public string MarketplaceTransactionId; + public string MarketplaceAlternateId; /// - /// The ID of the offer being redeemed. + /// The transaction id in the external marketplace. /// - public string OfferId; + public string MarketplaceTransactionId; } [Serializable] public class RedemptionSuccess : PlayFabBaseModel { /// - /// The transaction id in the external marketplace. + /// The Marketplace Alternate ID being redeemed. /// - public string MarketplaceTransactionId; + public string MarketplaceAlternateId; /// - /// The ID of the offer being redeemed. + /// The transaction id in the external marketplace. /// - public string OfferId; + public string MarketplaceTransactionId; /// /// The timestamp for when the redeem was completed. /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs index a2989c131..069ee41a3 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs @@ -15,6 +15,8 @@ public partial class PlayFabEvents public event PlayFabResultEvent OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent; public event PlayFabRequestEvent OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent; public event PlayFabResultEvent OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent; + public event PlayFabRequestEvent OnProfilesSetDisplayNameRequestEvent; + public event PlayFabResultEvent OnProfilesSetDisplayNameResultEvent; public event PlayFabRequestEvent OnProfilesSetGlobalPolicyRequestEvent; public event PlayFabResultEvent OnProfilesSetGlobalPolicyResultEvent; public event PlayFabRequestEvent OnProfilesSetProfileLanguageRequestEvent; diff --git a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs index ac6a99f7e..aec3d21d2 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs @@ -98,6 +98,19 @@ public static void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDs PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Update the display name of the entity + /// + public static void SetDisplayName(SetDisplayNameRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) + { + var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; + var callSettings = PlayFabSettings.staticSettings; + if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + + + PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Sets the global title access policy /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs index 1d7cc0337..d332f6f4e 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs @@ -107,6 +107,17 @@ public void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDsRequest PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Update the display name of the entity + /// + public void SetDisplayName(SetDisplayNameRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) + { + var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; + var callSettings = apiSettings ?? PlayFabSettings.staticSettings; + if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Sets the global title access policy /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs index 74d54f137..76cebbbd5 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs @@ -376,6 +376,44 @@ public enum OperationTypes None } + /// + /// Given an entity profile, will update its display name to the one passed in if the profile's version is equal to the + /// specified value + /// + [Serializable] + public class SetDisplayNameRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The new value to be set on Entity Profile's display name + /// + public string DisplayName; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The expected version of a profile to perform this update on + /// + public int? ExpectedVersion; + } + + [Serializable] + public class SetDisplayNameResponse : PlayFabResultCommon + { + /// + /// The type of operation that occured on the profile's display name + /// + public OperationTypes? OperationResult; + /// + /// The updated version of the profile after the display name update + /// + public int? VersionNumber; + } + /// /// This will set the access policy statements on the given entity profile. This is not additive, any existing statements /// will be replaced with the statements in this request. diff --git a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs index f5a3ab576..ee302234c 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs @@ -29,8 +29,6 @@ public partial class PlayFabEvents public event PlayFabResultEvent OnProgressionGetLeaderboardForEntitiesResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticDefinitionRequestEvent; public event PlayFabResultEvent OnProgressionGetStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnProgressionGetStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnProgressionGetStatisticDefinitionsResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticsRequestEvent; public event PlayFabResultEvent OnProgressionGetStatisticsResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticsForEntitiesRequestEvent; diff --git a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs index f3660ca6e..0e57c3ec1 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs @@ -188,19 +188,6 @@ public static void GetStatisticDefinition(GetStatisticDefinitionRequest request, PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Get all current statistic definitions information - /// - public static void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) - { - var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; - var callSettings = PlayFabSettings.staticSettings; - if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - - - PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Gets statistics for the specified entity. /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs index 326fd9721..8ae36e9ad 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs @@ -183,17 +183,6 @@ public void GetStatisticDefinition(GetStatisticDefinitionRequest request, Action PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Get all current statistic definitions information - /// - public void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) - { - var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; - var callSettings = apiSettings ?? PlayFabSettings.staticSettings; - if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Gets statistics for the specified entity. /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs index 5b8b245aa..b32325fb5 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs @@ -461,24 +461,6 @@ public class GetStatisticDefinitionResponse : PlayFabResultCommon public VersionConfiguration VersionConfiguration; } - [Serializable] - public class GetStatisticDefinitionsRequest : PlayFabRequestCommon - { - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - } - - [Serializable] - public class GetStatisticDefinitionsResponse : PlayFabResultCommon - { - /// - /// List of statistic definitions for the title. - /// - public List StatisticDefinitions; - } - [Serializable] public class GetStatisticsForEntitiesRequest : PlayFabRequestCommon { diff --git a/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs index 66036444c..b121de773 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs @@ -1390,7 +1390,7 @@ public class FacebookPlayFabIdPair : PlayFabBaseModel public class FriendInfo : PlayFabBaseModel { /// - /// Available Facebook information (if the user and PlayFab friend are also connected in Facebook). + /// Available Facebook information (if the user and connected Facebook friend both have PlayFab Accounts in the same title). /// public UserFacebookInfo FacebookInfo; /// @@ -1398,7 +1398,8 @@ public class FriendInfo : PlayFabBaseModel /// public string FriendPlayFabId; /// - /// Available Game Center information (if the user and PlayFab friend are also connected in Game Center). + /// Available Game Center information (if the user and connected Game Center friend both have PlayFab Accounts in the same + /// title). /// public UserGameCenterInfo GameCenterInfo; /// @@ -1406,12 +1407,12 @@ public class FriendInfo : PlayFabBaseModel /// public PlayerProfileModel Profile; /// - /// Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: - /// Network. + /// Available PlayStation :tm: Network information, if the user connected PlayStation :tm Network friend both have PlayFab + /// Accounts in the same title. /// public UserPsnInfo PSNInfo; /// - /// Available Steam information (if the user and PlayFab friend are also connected in Steam). + /// Available Steam information (if the user and connected Steam friend both have PlayFab Accounts in the same title). /// public UserSteamInfo SteamInfo; /// @@ -1427,7 +1428,7 @@ public class FriendInfo : PlayFabBaseModel /// public string Username; /// - /// Available Xbox information, if the user and PlayFab friend are both connected to Xbox Live. + /// Available Xbox information, (if the user and connected Xbox Live friend both have PlayFab Accounts in the same title). /// public UserXboxInfo XboxInfo; } @@ -2012,7 +2013,7 @@ public enum GenericErrorCodes MultipleLinkedStatisticsNotAllowed, DuplicateLinkedStatisticColumnNameFound, AggregationTypeNotAllowedForMultiColumnStatistic, - MaxQueryableVerionsValueNotAllowedForTier, + MaxQueryableVersionsValueNotAllowedForTier, StatisticDefinitionHasNullOrEmptyVersionConfiguration, StatisticColumnLengthMismatch, MatchmakingEntityInvalid, @@ -4436,7 +4437,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } /// @@ -7056,7 +7058,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs index defe5d7c7..46ff2f630 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs @@ -590,7 +590,7 @@ public enum PlayFabErrorCode MultipleLinkedStatisticsNotAllowed = 1588, DuplicateLinkedStatisticColumnNameFound = 1589, AggregationTypeNotAllowedForMultiColumnStatistic = 1590, - MaxQueryableVerionsValueNotAllowedForTier = 1591, + MaxQueryableVersionsValueNotAllowedForTier = 1591, StatisticDefinitionHasNullOrEmptyVersionConfiguration = 1592, StatisticColumnLengthMismatch = 1593, MatchmakingEntityInvalid = 2001, diff --git a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs index 6514c230c..c51fe881b 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs @@ -1683,9 +1683,6 @@ public void UnregisterInstance(object instance) if (OnProgressionGetStatisticDefinitionRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProgressionGetStatisticDefinitionResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionResultEvent -= (PlayFabResultEvent)each; } } } - if (OnProgressionGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnProgressionGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnProgressionGetStatisticsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProgressionGetStatisticsResultEvent != null) { foreach (var each in OnProgressionGetStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1998,6 +1995,9 @@ public void UnregisterInstance(object instance) if (OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProfilesSetDisplayNameRequestEvent != null) { foreach (var each in OnProfilesSetDisplayNameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetDisplayNameRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProfilesSetDisplayNameResultEvent != null) { foreach (var each in OnProfilesSetDisplayNameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetDisplayNameResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProfilesSetGlobalPolicyRequestEvent != null) { foreach (var each in OnProfilesSetGlobalPolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetGlobalPolicyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesSetGlobalPolicyResultEvent != null) { foreach (var each in OnProfilesSetGlobalPolicyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetGlobalPolicyResultEvent -= (PlayFabResultEvent)each; } } } @@ -2683,7 +2683,6 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProgressionModels.GetLeaderboardDefinitionRequest)) { if (_instance.OnProgressionGetLeaderboardDefinitionRequestEvent != null) { _instance.OnProgressionGetLeaderboardDefinitionRequestEvent((ProgressionModels.GetLeaderboardDefinitionRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetLeaderboardForEntitiesRequest)) { if (_instance.OnProgressionGetLeaderboardForEntitiesRequestEvent != null) { _instance.OnProgressionGetLeaderboardForEntitiesRequestEvent((ProgressionModels.GetLeaderboardForEntitiesRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticDefinitionRequest)) { if (_instance.OnProgressionGetStatisticDefinitionRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionRequestEvent((ProgressionModels.GetStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(ProgressionModels.GetStatisticDefinitionsRequest)) { if (_instance.OnProgressionGetStatisticDefinitionsRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionsRequestEvent((ProgressionModels.GetStatisticDefinitionsRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticsRequest)) { if (_instance.OnProgressionGetStatisticsRequestEvent != null) { _instance.OnProgressionGetStatisticsRequestEvent((ProgressionModels.GetStatisticsRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnProgressionGetStatisticsForEntitiesRequestEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesRequestEvent((ProgressionModels.GetStatisticsForEntitiesRequest)e.Request); return; } } if (type == typeof(ProgressionModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnProgressionIncrementLeaderboardVersionRequestEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionRequestEvent((ProgressionModels.IncrementLeaderboardVersionRequest)e.Request); return; } } @@ -2792,6 +2791,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProfilesModels.GetEntityProfilesRequest)) { if (_instance.OnProfilesGetProfilesRequestEvent != null) { _instance.OnProfilesGetProfilesRequestEvent((ProfilesModels.GetEntityProfilesRequest)e.Request); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsRequest)) { if (_instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent != null) { _instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent((ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsRequest)e.Request); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest)) { if (_instance.OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent != null) { _instance.OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent((ProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest)e.Request); return; } } + if (type == typeof(ProfilesModels.SetDisplayNameRequest)) { if (_instance.OnProfilesSetDisplayNameRequestEvent != null) { _instance.OnProfilesSetDisplayNameRequestEvent((ProfilesModels.SetDisplayNameRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetGlobalPolicyRequest)) { if (_instance.OnProfilesSetGlobalPolicyRequestEvent != null) { _instance.OnProfilesSetGlobalPolicyRequestEvent((ProfilesModels.SetGlobalPolicyRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetProfileLanguageRequest)) { if (_instance.OnProfilesSetProfileLanguageRequestEvent != null) { _instance.OnProfilesSetProfileLanguageRequestEvent((ProfilesModels.SetProfileLanguageRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetEntityProfilePolicyRequest)) { if (_instance.OnProfilesSetProfilePolicyRequestEvent != null) { _instance.OnProfilesSetProfilePolicyRequestEvent((ProfilesModels.SetEntityProfilePolicyRequest)e.Request); return; } } @@ -3398,7 +3398,6 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProgressionModels.GetLeaderboardDefinitionResponse)) { if (_instance.OnProgressionGetLeaderboardDefinitionResultEvent != null) { _instance.OnProgressionGetLeaderboardDefinitionResultEvent((ProgressionModels.GetLeaderboardDefinitionResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetEntityLeaderboardResponse)) { if (_instance.OnProgressionGetLeaderboardForEntitiesResultEvent != null) { _instance.OnProgressionGetLeaderboardForEntitiesResultEvent((ProgressionModels.GetEntityLeaderboardResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticDefinitionResponse)) { if (_instance.OnProgressionGetStatisticDefinitionResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionResultEvent((ProgressionModels.GetStatisticDefinitionResponse)e.Result); return; } } - if (type == typeof(ProgressionModels.GetStatisticDefinitionsResponse)) { if (_instance.OnProgressionGetStatisticDefinitionsResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionsResultEvent((ProgressionModels.GetStatisticDefinitionsResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticsResponse)) { if (_instance.OnProgressionGetStatisticsResultEvent != null) { _instance.OnProgressionGetStatisticsResultEvent((ProgressionModels.GetStatisticsResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnProgressionGetStatisticsForEntitiesResultEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesResultEvent((ProgressionModels.GetStatisticsForEntitiesResponse)e.Result); return; } } if (type == typeof(ProgressionModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnProgressionIncrementLeaderboardVersionResultEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionResultEvent((ProgressionModels.IncrementLeaderboardVersionResponse)e.Result); return; } } @@ -3510,6 +3509,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProfilesModels.GetEntityProfilesResponse)) { if (_instance.OnProfilesGetProfilesResultEvent != null) { _instance.OnProfilesGetProfilesResultEvent((ProfilesModels.GetEntityProfilesResponse)e.Result); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsResponse)) { if (_instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent != null) { _instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent((ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsResponse)e.Result); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromProviderIDsResponse)) { if (_instance.OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent != null) { _instance.OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent((ProfilesModels.GetTitlePlayersFromProviderIDsResponse)e.Result); return; } } + if (type == typeof(ProfilesModels.SetDisplayNameResponse)) { if (_instance.OnProfilesSetDisplayNameResultEvent != null) { _instance.OnProfilesSetDisplayNameResultEvent((ProfilesModels.SetDisplayNameResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetGlobalPolicyResponse)) { if (_instance.OnProfilesSetGlobalPolicyResultEvent != null) { _instance.OnProfilesSetGlobalPolicyResultEvent((ProfilesModels.SetGlobalPolicyResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetProfileLanguageResponse)) { if (_instance.OnProfilesSetProfileLanguageResultEvent != null) { _instance.OnProfilesSetProfileLanguageResultEvent((ProfilesModels.SetProfileLanguageResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetEntityProfilePolicyResponse)) { if (_instance.OnProfilesSetProfilePolicyResultEvent != null) { _instance.OnProfilesSetProfilePolicyResultEvent((ProfilesModels.SetEntityProfilePolicyResponse)e.Result); return; } } diff --git a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs index 7481b3a41..e45dcb098 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs @@ -65,9 +65,9 @@ static PlayFabSettings() /// public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext(); - public const string SdkVersion = "2.200.240816"; + public const string SdkVersion = "2.202.240913"; public const string BuildIdentifier = "adobuild_unitysdk_167"; - public const string VersionString = "UnitySDK-2.200.240816"; + public const string VersionString = "UnitySDK-2.202.240913"; public static string EngineVersion = UnityEngine.Application.unityVersion; public static string PlatformString; diff --git a/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs b/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs index 95f8da8dc..f4dfc841b 100644 --- a/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs +++ b/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs @@ -1 +1 @@ -namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.200.240816"; } } +namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.202.240913"; } } diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs index f7926fe8f..24946cf7e 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs @@ -144,6 +144,12 @@ public class CreateOrUpdateGoogleRequest : PlayFabRequestCommon /// public string OAuthClientSecret; /// + /// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to + /// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own + /// domain. + /// + public string OAuthCustomRedirectUri; + /// /// Needed to enable pending purchase handling and subscription processing. /// public string ServiceAccountKey; @@ -616,6 +622,12 @@ public class GetGoogleResponse : PlayFabResultCommon /// Required if using Google Authentication. /// public string OAuthClientID; + /// + /// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to + /// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own + /// domain. + /// + public string OauthCustomRedirectUri; } [Serializable] diff --git a/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs index 1ff04d1f0..75594f4a0 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs @@ -2644,7 +2644,7 @@ public enum GenericErrorCodes MultipleLinkedStatisticsNotAllowed, DuplicateLinkedStatisticColumnNameFound, AggregationTypeNotAllowedForMultiColumnStatistic, - MaxQueryableVerionsValueNotAllowedForTier, + MaxQueryableVersionsValueNotAllowedForTier, StatisticDefinitionHasNullOrEmptyVersionConfiguration, StatisticColumnLengthMismatch, MatchmakingEntityInvalid, @@ -4333,7 +4333,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] @@ -7560,7 +7561,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleTestProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs index ce35e67fc..091e27b3c 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs @@ -194,7 +194,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs index 5a8585474..a8e51aae7 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs @@ -1450,7 +1450,7 @@ public class FacebookPlayFabIdPair : PlayFabBaseModel public class FriendInfo : PlayFabBaseModel { /// - /// Available Facebook information (if the user and PlayFab friend are also connected in Facebook). + /// Available Facebook information (if the user and connected Facebook friend both have PlayFab Accounts in the same title). /// public UserFacebookInfo FacebookInfo; /// @@ -1458,7 +1458,8 @@ public class FriendInfo : PlayFabBaseModel /// public string FriendPlayFabId; /// - /// Available Game Center information (if the user and PlayFab friend are also connected in Game Center). + /// Available Game Center information (if the user and connected Game Center friend both have PlayFab Accounts in the same + /// title). /// public UserGameCenterInfo GameCenterInfo; /// @@ -1466,12 +1467,12 @@ public class FriendInfo : PlayFabBaseModel /// public PlayerProfileModel Profile; /// - /// Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: - /// Network. + /// Available PlayStation :tm: Network information, if the user connected PlayStation :tm Network friend both have PlayFab + /// Accounts in the same title. /// public UserPsnInfo PSNInfo; /// - /// Available Steam information (if the user and PlayFab friend are also connected in Steam). + /// Available Steam information (if the user and connected Steam friend both have PlayFab Accounts in the same title). /// public UserSteamInfo SteamInfo; /// @@ -1487,7 +1488,7 @@ public class FriendInfo : PlayFabBaseModel /// public string Username; /// - /// Available Xbox information, if the user and PlayFab friend are both connected to Xbox Live. + /// Available Xbox information, (if the user and connected Xbox Live friend both have PlayFab Accounts in the same title). /// public UserXboxInfo XboxInfo; } @@ -3824,7 +3825,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] @@ -7051,7 +7053,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleTestProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs b/ExampleTestProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs index 45f9c31d8..1eab23ccb 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs @@ -702,7 +702,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs index bed60c78b..6c73d3496 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs @@ -2408,26 +2408,26 @@ public class RedemptionFailure : PlayFabBaseModel /// public string FailureDetails; /// - /// The transaction id in the external marketplace. + /// The Marketplace Alternate ID being redeemed. /// - public string MarketplaceTransactionId; + public string MarketplaceAlternateId; /// - /// The ID of the offer being redeemed. + /// The transaction id in the external marketplace. /// - public string OfferId; + public string MarketplaceTransactionId; } [Serializable] public class RedemptionSuccess : PlayFabBaseModel { /// - /// The transaction id in the external marketplace. + /// The Marketplace Alternate ID being redeemed. /// - public string MarketplaceTransactionId; + public string MarketplaceAlternateId; /// - /// The ID of the offer being redeemed. + /// The transaction id in the external marketplace. /// - public string OfferId; + public string MarketplaceTransactionId; /// /// The timestamp for when the redeem was completed. /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs index a2989c131..069ee41a3 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs @@ -15,6 +15,8 @@ public partial class PlayFabEvents public event PlayFabResultEvent OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent; public event PlayFabRequestEvent OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent; public event PlayFabResultEvent OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent; + public event PlayFabRequestEvent OnProfilesSetDisplayNameRequestEvent; + public event PlayFabResultEvent OnProfilesSetDisplayNameResultEvent; public event PlayFabRequestEvent OnProfilesSetGlobalPolicyRequestEvent; public event PlayFabResultEvent OnProfilesSetGlobalPolicyResultEvent; public event PlayFabRequestEvent OnProfilesSetProfileLanguageRequestEvent; diff --git a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs index ac6a99f7e..aec3d21d2 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs @@ -98,6 +98,19 @@ public static void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDs PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Update the display name of the entity + /// + public static void SetDisplayName(SetDisplayNameRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) + { + var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; + var callSettings = PlayFabSettings.staticSettings; + if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + + + PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Sets the global title access policy /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs index 1d7cc0337..d332f6f4e 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs @@ -107,6 +107,17 @@ public void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDsRequest PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Update the display name of the entity + /// + public void SetDisplayName(SetDisplayNameRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) + { + var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; + var callSettings = apiSettings ?? PlayFabSettings.staticSettings; + if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Sets the global title access policy /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs index 74d54f137..76cebbbd5 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesModels.cs @@ -376,6 +376,44 @@ public enum OperationTypes None } + /// + /// Given an entity profile, will update its display name to the one passed in if the profile's version is equal to the + /// specified value + /// + [Serializable] + public class SetDisplayNameRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The new value to be set on Entity Profile's display name + /// + public string DisplayName; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The expected version of a profile to perform this update on + /// + public int? ExpectedVersion; + } + + [Serializable] + public class SetDisplayNameResponse : PlayFabResultCommon + { + /// + /// The type of operation that occured on the profile's display name + /// + public OperationTypes? OperationResult; + /// + /// The updated version of the profile after the display name update + /// + public int? VersionNumber; + } + /// /// This will set the access policy statements on the given entity profile. This is not additive, any existing statements /// will be replaced with the statements in this request. diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs index f5a3ab576..ee302234c 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs @@ -29,8 +29,6 @@ public partial class PlayFabEvents public event PlayFabResultEvent OnProgressionGetLeaderboardForEntitiesResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticDefinitionRequestEvent; public event PlayFabResultEvent OnProgressionGetStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnProgressionGetStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnProgressionGetStatisticDefinitionsResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticsRequestEvent; public event PlayFabResultEvent OnProgressionGetStatisticsResultEvent; public event PlayFabRequestEvent OnProgressionGetStatisticsForEntitiesRequestEvent; diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs index f3660ca6e..0e57c3ec1 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs @@ -188,19 +188,6 @@ public static void GetStatisticDefinition(GetStatisticDefinitionRequest request, PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Get all current statistic definitions information - /// - public static void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) - { - var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; - var callSettings = PlayFabSettings.staticSettings; - if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - - - PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Gets statistics for the specified entity. /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs index 326fd9721..8ae36e9ad 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs @@ -183,17 +183,6 @@ public void GetStatisticDefinition(GetStatisticDefinitionRequest request, Action PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Get all current statistic definitions information - /// - public void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) - { - var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; - var callSettings = apiSettings ?? PlayFabSettings.staticSettings; - if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Gets statistics for the specified entity. /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs index 5b8b245aa..b32325fb5 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs @@ -461,24 +461,6 @@ public class GetStatisticDefinitionResponse : PlayFabResultCommon public VersionConfiguration VersionConfiguration; } - [Serializable] - public class GetStatisticDefinitionsRequest : PlayFabRequestCommon - { - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - } - - [Serializable] - public class GetStatisticDefinitionsResponse : PlayFabResultCommon - { - /// - /// List of statistic definitions for the title. - /// - public List StatisticDefinitions; - } - [Serializable] public class GetStatisticsForEntitiesRequest : PlayFabRequestCommon { diff --git a/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs index 66036444c..b121de773 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs @@ -1390,7 +1390,7 @@ public class FacebookPlayFabIdPair : PlayFabBaseModel public class FriendInfo : PlayFabBaseModel { /// - /// Available Facebook information (if the user and PlayFab friend are also connected in Facebook). + /// Available Facebook information (if the user and connected Facebook friend both have PlayFab Accounts in the same title). /// public UserFacebookInfo FacebookInfo; /// @@ -1398,7 +1398,8 @@ public class FriendInfo : PlayFabBaseModel /// public string FriendPlayFabId; /// - /// Available Game Center information (if the user and PlayFab friend are also connected in Game Center). + /// Available Game Center information (if the user and connected Game Center friend both have PlayFab Accounts in the same + /// title). /// public UserGameCenterInfo GameCenterInfo; /// @@ -1406,12 +1407,12 @@ public class FriendInfo : PlayFabBaseModel /// public PlayerProfileModel Profile; /// - /// Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: - /// Network. + /// Available PlayStation :tm: Network information, if the user connected PlayStation :tm Network friend both have PlayFab + /// Accounts in the same title. /// public UserPsnInfo PSNInfo; /// - /// Available Steam information (if the user and PlayFab friend are also connected in Steam). + /// Available Steam information (if the user and connected Steam friend both have PlayFab Accounts in the same title). /// public UserSteamInfo SteamInfo; /// @@ -1427,7 +1428,7 @@ public class FriendInfo : PlayFabBaseModel /// public string Username; /// - /// Available Xbox information, if the user and PlayFab friend are both connected to Xbox Live. + /// Available Xbox information, (if the user and connected Xbox Live friend both have PlayFab Accounts in the same title). /// public UserXboxInfo XboxInfo; } @@ -2012,7 +2013,7 @@ public enum GenericErrorCodes MultipleLinkedStatisticsNotAllowed, DuplicateLinkedStatisticColumnNameFound, AggregationTypeNotAllowedForMultiColumnStatistic, - MaxQueryableVerionsValueNotAllowedForTier, + MaxQueryableVersionsValueNotAllowedForTier, StatisticDefinitionHasNullOrEmptyVersionConfiguration, StatisticColumnLengthMismatch, MatchmakingEntityInvalid, @@ -4436,7 +4437,8 @@ public enum LoginIdentityProvider Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } /// @@ -7056,7 +7058,8 @@ public enum UserOrigination Apple, NintendoSwitchAccount, GooglePlayGames, - XboxMobileStore + XboxMobileStore, + King } [Serializable] diff --git a/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs index defe5d7c7..46ff2f630 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs @@ -590,7 +590,7 @@ public enum PlayFabErrorCode MultipleLinkedStatisticsNotAllowed = 1588, DuplicateLinkedStatisticColumnNameFound = 1589, AggregationTypeNotAllowedForMultiColumnStatistic = 1590, - MaxQueryableVerionsValueNotAllowedForTier = 1591, + MaxQueryableVersionsValueNotAllowedForTier = 1591, StatisticDefinitionHasNullOrEmptyVersionConfiguration = 1592, StatisticColumnLengthMismatch = 1593, MatchmakingEntityInvalid = 2001, diff --git a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs index 6514c230c..c51fe881b 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs @@ -1683,9 +1683,6 @@ public void UnregisterInstance(object instance) if (OnProgressionGetStatisticDefinitionRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProgressionGetStatisticDefinitionResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionResultEvent -= (PlayFabResultEvent)each; } } } - if (OnProgressionGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnProgressionGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnProgressionGetStatisticsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProgressionGetStatisticsResultEvent != null) { foreach (var each in OnProgressionGetStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1998,6 +1995,9 @@ public void UnregisterInstance(object instance) if (OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProfilesSetDisplayNameRequestEvent != null) { foreach (var each in OnProfilesSetDisplayNameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetDisplayNameRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProfilesSetDisplayNameResultEvent != null) { foreach (var each in OnProfilesSetDisplayNameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetDisplayNameResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProfilesSetGlobalPolicyRequestEvent != null) { foreach (var each in OnProfilesSetGlobalPolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetGlobalPolicyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesSetGlobalPolicyResultEvent != null) { foreach (var each in OnProfilesSetGlobalPolicyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetGlobalPolicyResultEvent -= (PlayFabResultEvent)each; } } } @@ -2683,7 +2683,6 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProgressionModels.GetLeaderboardDefinitionRequest)) { if (_instance.OnProgressionGetLeaderboardDefinitionRequestEvent != null) { _instance.OnProgressionGetLeaderboardDefinitionRequestEvent((ProgressionModels.GetLeaderboardDefinitionRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetLeaderboardForEntitiesRequest)) { if (_instance.OnProgressionGetLeaderboardForEntitiesRequestEvent != null) { _instance.OnProgressionGetLeaderboardForEntitiesRequestEvent((ProgressionModels.GetLeaderboardForEntitiesRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticDefinitionRequest)) { if (_instance.OnProgressionGetStatisticDefinitionRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionRequestEvent((ProgressionModels.GetStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(ProgressionModels.GetStatisticDefinitionsRequest)) { if (_instance.OnProgressionGetStatisticDefinitionsRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionsRequestEvent((ProgressionModels.GetStatisticDefinitionsRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticsRequest)) { if (_instance.OnProgressionGetStatisticsRequestEvent != null) { _instance.OnProgressionGetStatisticsRequestEvent((ProgressionModels.GetStatisticsRequest)e.Request); return; } } if (type == typeof(ProgressionModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnProgressionGetStatisticsForEntitiesRequestEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesRequestEvent((ProgressionModels.GetStatisticsForEntitiesRequest)e.Request); return; } } if (type == typeof(ProgressionModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnProgressionIncrementLeaderboardVersionRequestEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionRequestEvent((ProgressionModels.IncrementLeaderboardVersionRequest)e.Request); return; } } @@ -2792,6 +2791,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProfilesModels.GetEntityProfilesRequest)) { if (_instance.OnProfilesGetProfilesRequestEvent != null) { _instance.OnProfilesGetProfilesRequestEvent((ProfilesModels.GetEntityProfilesRequest)e.Request); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsRequest)) { if (_instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent != null) { _instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent((ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsRequest)e.Request); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest)) { if (_instance.OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent != null) { _instance.OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent((ProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest)e.Request); return; } } + if (type == typeof(ProfilesModels.SetDisplayNameRequest)) { if (_instance.OnProfilesSetDisplayNameRequestEvent != null) { _instance.OnProfilesSetDisplayNameRequestEvent((ProfilesModels.SetDisplayNameRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetGlobalPolicyRequest)) { if (_instance.OnProfilesSetGlobalPolicyRequestEvent != null) { _instance.OnProfilesSetGlobalPolicyRequestEvent((ProfilesModels.SetGlobalPolicyRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetProfileLanguageRequest)) { if (_instance.OnProfilesSetProfileLanguageRequestEvent != null) { _instance.OnProfilesSetProfileLanguageRequestEvent((ProfilesModels.SetProfileLanguageRequest)e.Request); return; } } if (type == typeof(ProfilesModels.SetEntityProfilePolicyRequest)) { if (_instance.OnProfilesSetProfilePolicyRequestEvent != null) { _instance.OnProfilesSetProfilePolicyRequestEvent((ProfilesModels.SetEntityProfilePolicyRequest)e.Request); return; } } @@ -3398,7 +3398,6 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProgressionModels.GetLeaderboardDefinitionResponse)) { if (_instance.OnProgressionGetLeaderboardDefinitionResultEvent != null) { _instance.OnProgressionGetLeaderboardDefinitionResultEvent((ProgressionModels.GetLeaderboardDefinitionResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetEntityLeaderboardResponse)) { if (_instance.OnProgressionGetLeaderboardForEntitiesResultEvent != null) { _instance.OnProgressionGetLeaderboardForEntitiesResultEvent((ProgressionModels.GetEntityLeaderboardResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticDefinitionResponse)) { if (_instance.OnProgressionGetStatisticDefinitionResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionResultEvent((ProgressionModels.GetStatisticDefinitionResponse)e.Result); return; } } - if (type == typeof(ProgressionModels.GetStatisticDefinitionsResponse)) { if (_instance.OnProgressionGetStatisticDefinitionsResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionsResultEvent((ProgressionModels.GetStatisticDefinitionsResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticsResponse)) { if (_instance.OnProgressionGetStatisticsResultEvent != null) { _instance.OnProgressionGetStatisticsResultEvent((ProgressionModels.GetStatisticsResponse)e.Result); return; } } if (type == typeof(ProgressionModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnProgressionGetStatisticsForEntitiesResultEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesResultEvent((ProgressionModels.GetStatisticsForEntitiesResponse)e.Result); return; } } if (type == typeof(ProgressionModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnProgressionIncrementLeaderboardVersionResultEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionResultEvent((ProgressionModels.IncrementLeaderboardVersionResponse)e.Result); return; } } @@ -3510,6 +3509,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(ProfilesModels.GetEntityProfilesResponse)) { if (_instance.OnProfilesGetProfilesResultEvent != null) { _instance.OnProfilesGetProfilesResultEvent((ProfilesModels.GetEntityProfilesResponse)e.Result); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsResponse)) { if (_instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent != null) { _instance.OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent((ProfilesModels.GetTitlePlayersFromMasterPlayerAccountIdsResponse)e.Result); return; } } if (type == typeof(ProfilesModels.GetTitlePlayersFromProviderIDsResponse)) { if (_instance.OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent != null) { _instance.OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent((ProfilesModels.GetTitlePlayersFromProviderIDsResponse)e.Result); return; } } + if (type == typeof(ProfilesModels.SetDisplayNameResponse)) { if (_instance.OnProfilesSetDisplayNameResultEvent != null) { _instance.OnProfilesSetDisplayNameResultEvent((ProfilesModels.SetDisplayNameResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetGlobalPolicyResponse)) { if (_instance.OnProfilesSetGlobalPolicyResultEvent != null) { _instance.OnProfilesSetGlobalPolicyResultEvent((ProfilesModels.SetGlobalPolicyResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetProfileLanguageResponse)) { if (_instance.OnProfilesSetProfileLanguageResultEvent != null) { _instance.OnProfilesSetProfileLanguageResultEvent((ProfilesModels.SetProfileLanguageResponse)e.Result); return; } } if (type == typeof(ProfilesModels.SetEntityProfilePolicyResponse)) { if (_instance.OnProfilesSetProfilePolicyResultEvent != null) { _instance.OnProfilesSetProfilePolicyResultEvent((ProfilesModels.SetEntityProfilePolicyResponse)e.Result); return; } } diff --git a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs index 7481b3a41..e45dcb098 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs @@ -65,9 +65,9 @@ static PlayFabSettings() /// public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext(); - public const string SdkVersion = "2.200.240816"; + public const string SdkVersion = "2.202.240913"; public const string BuildIdentifier = "adobuild_unitysdk_167"; - public const string VersionString = "UnitySDK-2.200.240816"; + public const string VersionString = "UnitySDK-2.202.240913"; public static string EngineVersion = UnityEngine.Application.unityVersion; public static string PlatformString; diff --git a/Packages/PlayFabEditorExtensions.unitypackage b/Packages/PlayFabEditorExtensions.unitypackage index d4ee10653..df089deb5 100644 Binary files a/Packages/PlayFabEditorExtensions.unitypackage and b/Packages/PlayFabEditorExtensions.unitypackage differ diff --git a/Packages/UnitySDK.unitypackage b/Packages/UnitySDK.unitypackage index ccb8a3ef2..0dda562ca 100644 Binary files a/Packages/UnitySDK.unitypackage and b/Packages/UnitySDK.unitypackage differ