diff --git a/Assets/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage b/Assets/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage index 1cd80a7e4..2d0e2d30d 100644 Binary files a/Assets/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage and b/Assets/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage differ diff --git a/Assets/PlayFabEditorExtensions/Editor/Resources/PlayFabEditorPrefsSO.asset b/Assets/PlayFabEditorExtensions/Editor/Resources/PlayFabEditorPrefsSO.asset index b312ae609..b93cfe30a 100644 --- a/Assets/PlayFabEditorExtensions/Editor/Resources/PlayFabEditorPrefsSO.asset +++ b/Assets/PlayFabEditorExtensions/Editor/Resources/PlayFabEditorPrefsSO.asset @@ -12,12 +12,12 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5d0199c11aa6f514784c5c69cd8378d8, type: 3} m_Name: PlayFabEditorPrefsSO m_EditorClassIdentifier: - DevAccountEmail: - DevAccountToken: - SelectedStudio: - SdkPath: + DevAccountEmail: kimsy198402@gmail.com + DevAccountToken: 4469kxx5qoc1x7seij1o41mj8omsnt3wp384uuwzxng4yhfitsop89pwoh8bgr3mzykmezqakrj6zec6s6op4nracsij8h8f153c5uc3f1caw5h6rdcmjzbtwodm5ufeuzf9qpgr4jyn9shux7bgjtisme4hraosfmy4cyh9w6og7fmfxceq7f81edmg9yqu1rmohoq9 + SelectedStudio: "\uD544\uAD7F\uBC34\uB514\uCE20(3rd)" + SdkPath: Assets/ThirdParty/PlayFabSDK EdExPath: - LocalCloudScriptPath: + LocalCloudScriptPath: C:/Git/nn_himminji/Assets/PlayFabEditorExtensions/Editor/Resources/.CloudScript.js PanelIsShown: 0 - curMainMenuIdx: 0 + curMainMenuIdx: 1 curSubMenuIdx: 0 diff --git a/Assets/Resources/PlayFabSharedSettings.asset b/Assets/Resources/PlayFabSharedSettings.asset index ed985f71d..d6c1df3b1 100644 --- a/Assets/Resources/PlayFabSharedSettings.asset +++ b/Assets/Resources/PlayFabSharedSettings.asset @@ -20,6 +20,8 @@ MonoBehaviour: DisableFocusTimeCollection: 0 RequestTimeout: 2000 RequestKeepAlive: 1 + CompressResponses: 0 + DecompressWithDownloadHandler: 1 LogLevel: 12 LoggerHost: LoggerPort: 0 diff --git a/Assets/ThirdParty/PlayFabSDK/Addon.meta b/Assets/ThirdParty/PlayFabSDK/Addon.meta new file mode 100644 index 000000000..11d3b967f --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4592bb1110a6b1e4dacb06b424cd2759 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs new file mode 100644 index 000000000..a1cf333d2 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs @@ -0,0 +1,390 @@ +#if !DISABLE_PLAYFABENTITY_API && !DISABLE_PLAYFAB_STATIC_API + +using System; +using System.Collections.Generic; +using PlayFab.AddonModels; +using PlayFab.Internal; + +namespace PlayFab +{ + /// + /// APIs for managing addons. + /// + public static class PlayFabAddonAPI + { + static PlayFabAddonAPI() {} + + + /// + /// Verify entity login. + /// + public static bool IsEntityLoggedIn() + { + return PlayFabSettings.staticPlayer.IsEntityLoggedIn(); + } + + /// + /// Clear the Client SessionToken which allows this Client to call API calls requiring login. + /// A new/fresh login will be required after calling this. + /// + public static void ForgetAllCredentials() + { + PlayFabSettings.staticPlayer.ForgetAllCredentials(); + } + + /// + /// Creates the Apple addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateApple(CreateOrUpdateAppleRequest 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("/Addon/CreateOrUpdateApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Facebook addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateFacebook(CreateOrUpdateFacebookRequest 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("/Addon/CreateOrUpdateFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Facebook Instant Games addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateFacebookInstantGames(CreateOrUpdateFacebookInstantGamesRequest 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("/Addon/CreateOrUpdateFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Google addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateGoogle(CreateOrUpdateGoogleRequest 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("/Addon/CreateOrUpdateGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Kongregate addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateKongregate(CreateOrUpdateKongregateRequest 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("/Addon/CreateOrUpdateKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Nintendo addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateNintendo(CreateOrUpdateNintendoRequest 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("/Addon/CreateOrUpdateNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the PSN addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdatePSN(CreateOrUpdatePSNRequest 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("/Addon/CreateOrUpdatePSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Steam addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateSteam(CreateOrUpdateSteamRequest 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("/Addon/CreateOrUpdateSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Creates the Twitch addon on a title, or updates it if it already exists. + /// + public static void CreateOrUpdateTwitch(CreateOrUpdateTwitchRequest 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("/Addon/CreateOrUpdateTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Apple addon on a title. + /// + public static void DeleteApple(DeleteAppleRequest 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("/Addon/DeleteApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Facebook addon on a title. + /// + public static void DeleteFacebook(DeleteFacebookRequest 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("/Addon/DeleteFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Facebook addon on a title. + /// + public static void DeleteFacebookInstantGames(DeleteFacebookInstantGamesRequest 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("/Addon/DeleteFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Google addon on a title. + /// + public static void DeleteGoogle(DeleteGoogleRequest 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("/Addon/DeleteGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Kongregate addon on a title. + /// + public static void DeleteKongregate(DeleteKongregateRequest 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("/Addon/DeleteKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Nintendo addon on a title. + /// + public static void DeleteNintendo(DeleteNintendoRequest 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("/Addon/DeleteNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the PSN addon on a title. + /// + public static void DeletePSN(DeletePSNRequest 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("/Addon/DeletePSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Steam addon on a title. + /// + public static void DeleteSteam(DeleteSteamRequest 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("/Addon/DeleteSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the Twitch addon on a title. + /// + public static void DeleteTwitch(DeleteTwitchRequest 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("/Addon/DeleteTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Apple addon on a title, omits secrets. + /// + public static void GetApple(GetAppleRequest 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("/Addon/GetApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Facebook addon on a title, omits secrets. + /// + public static void GetFacebook(GetFacebookRequest 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("/Addon/GetFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Facebook Instant Games addon on a title, omits secrets. + /// + public static void GetFacebookInstantGames(GetFacebookInstantGamesRequest 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("/Addon/GetFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Google addon on a title, omits secrets. + /// + public static void GetGoogle(GetGoogleRequest 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("/Addon/GetGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Kongregate addon on a title, omits secrets. + /// + public static void GetKongregate(GetKongregateRequest 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("/Addon/GetKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Nintendo addon on a title, omits secrets. + /// + public static void GetNintendo(GetNintendoRequest 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("/Addon/GetNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the PSN addon on a title, omits secrets. + /// + public static void GetPSN(GetPSNRequest 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("/Addon/GetPSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Steam addon on a title, omits secrets. + /// + public static void GetSteam(GetSteamRequest 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("/Addon/GetSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information of the Twitch addon on a title, omits secrets. + /// + public static void GetTwitch(GetTwitchRequest 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("/Addon/GetTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + + } +} + +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta new file mode 100644 index 000000000..39ef2ec76 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 16e6981cbc311934bab9111885dbfc1a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs new file mode 100644 index 000000000..acba30cf0 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs @@ -0,0 +1,354 @@ +#if !DISABLE_PLAYFABENTITY_API + +using System; +using System.Collections.Generic; +using PlayFab.AddonModels; +using PlayFab.Internal; +using PlayFab.SharedModels; + +namespace PlayFab +{ + /// + /// APIs for managing addons. + /// + public class PlayFabAddonInstanceAPI : IPlayFabInstanceApi + { + public readonly PlayFabApiSettings apiSettings = null; + public readonly PlayFabAuthenticationContext authenticationContext = null; + + public PlayFabAddonInstanceAPI(PlayFabAuthenticationContext context) + { + if (context == null) + throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call .GetAuthenticationContext()"); + authenticationContext = context; + } + + public PlayFabAddonInstanceAPI(PlayFabApiSettings settings, PlayFabAuthenticationContext context) + { + if (context == null) + throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call .GetAuthenticationContext()"); + apiSettings = settings; + authenticationContext = context; + } + + /// + /// Verify entity login. + /// + public bool IsEntityLoggedIn() + { + return authenticationContext == null ? false : authenticationContext.IsEntityLoggedIn(); + } + + /// + /// Clear the Client SessionToken which allows this Client to call API calls requiring login. + /// A new/fresh login will be required after calling this. + /// + public void ForgetAllCredentials() + { + if (authenticationContext != null) + { + authenticationContext.ForgetAllCredentials(); + } + } + + /// + /// Creates the Apple addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateApple(CreateOrUpdateAppleRequest 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("/Addon/CreateOrUpdateApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Facebook addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateFacebook(CreateOrUpdateFacebookRequest 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("/Addon/CreateOrUpdateFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Facebook Instant Games addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateFacebookInstantGames(CreateOrUpdateFacebookInstantGamesRequest 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("/Addon/CreateOrUpdateFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Google addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateGoogle(CreateOrUpdateGoogleRequest 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("/Addon/CreateOrUpdateGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Kongregate addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateKongregate(CreateOrUpdateKongregateRequest 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("/Addon/CreateOrUpdateKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Nintendo addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateNintendo(CreateOrUpdateNintendoRequest 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("/Addon/CreateOrUpdateNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the PSN addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdatePSN(CreateOrUpdatePSNRequest 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("/Addon/CreateOrUpdatePSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Steam addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateSteam(CreateOrUpdateSteamRequest 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("/Addon/CreateOrUpdateSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Creates the Twitch addon on a title, or updates it if it already exists. + /// + public void CreateOrUpdateTwitch(CreateOrUpdateTwitchRequest 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("/Addon/CreateOrUpdateTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Apple addon on a title. + /// + public void DeleteApple(DeleteAppleRequest 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("/Addon/DeleteApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Facebook addon on a title. + /// + public void DeleteFacebook(DeleteFacebookRequest 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("/Addon/DeleteFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Facebook addon on a title. + /// + public void DeleteFacebookInstantGames(DeleteFacebookInstantGamesRequest 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("/Addon/DeleteFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Google addon on a title. + /// + public void DeleteGoogle(DeleteGoogleRequest 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("/Addon/DeleteGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Kongregate addon on a title. + /// + public void DeleteKongregate(DeleteKongregateRequest 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("/Addon/DeleteKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Nintendo addon on a title. + /// + public void DeleteNintendo(DeleteNintendoRequest 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("/Addon/DeleteNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the PSN addon on a title. + /// + public void DeletePSN(DeletePSNRequest 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("/Addon/DeletePSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Steam addon on a title. + /// + public void DeleteSteam(DeleteSteamRequest 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("/Addon/DeleteSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the Twitch addon on a title. + /// + public void DeleteTwitch(DeleteTwitchRequest 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("/Addon/DeleteTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Apple addon on a title, omits secrets. + /// + public void GetApple(GetAppleRequest 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("/Addon/GetApple", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Facebook addon on a title, omits secrets. + /// + public void GetFacebook(GetFacebookRequest 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("/Addon/GetFacebook", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Facebook Instant Games addon on a title, omits secrets. + /// + public void GetFacebookInstantGames(GetFacebookInstantGamesRequest 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("/Addon/GetFacebookInstantGames", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Google addon on a title, omits secrets. + /// + public void GetGoogle(GetGoogleRequest 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("/Addon/GetGoogle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Kongregate addon on a title, omits secrets. + /// + public void GetKongregate(GetKongregateRequest 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("/Addon/GetKongregate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Nintendo addon on a title, omits secrets. + /// + public void GetNintendo(GetNintendoRequest 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("/Addon/GetNintendo", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the PSN addon on a title, omits secrets. + /// + public void GetPSN(GetPSNRequest 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("/Addon/GetPSN", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Steam addon on a title, omits secrets. + /// + public void GetSteam(GetSteamRequest 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("/Addon/GetSteam", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information of the Twitch addon on a title, omits secrets. + /// + public void GetTwitch(GetTwitchRequest 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("/Addon/GetTwitch", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + } +} + +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta new file mode 100644 index 000000000..4d4074e88 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb16ee30d77a0bd4095b94a53a375676 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs new file mode 100644 index 000000000..24946cf7e --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs @@ -0,0 +1,793 @@ +#if !DISABLE_PLAYFABENTITY_API +using System; +using System.Collections.Generic; +using PlayFab.SharedModels; + +namespace PlayFab.AddonModels +{ + [Serializable] + public class CreateOrUpdateAppleRequest : PlayFabRequestCommon + { + /// + /// iOS App Bundle ID obtained after setting up your app in the App Store. + /// + public string AppBundleId; + /// + /// iOS App Shared Secret obtained after setting up your app in the App Store. + /// + public string AppSharedSecret; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Ignore expiration date for identity tokens. Be aware that when set to true this can invalidate expired tokens in the + /// case where Apple rotates their signing keys. + /// + public bool? IgnoreExpirationDate; + /// + /// Require secure authentication only for this app. + /// + public bool? RequireSecureAuthentication; + } + + [Serializable] + public class CreateOrUpdateAppleResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateFacebookInstantGamesRequest : PlayFabRequestCommon + { + /// + /// Facebook App ID obtained after setting up your app in Facebook Instant Games. + /// + public string AppID; + /// + /// Facebook App Secret obtained after setting up your app in Facebook Instant Games. + /// + public string AppSecret; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + } + + [Serializable] + public class CreateOrUpdateFacebookInstantGamesResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateFacebookRequest : PlayFabRequestCommon + { + /// + /// Facebook App ID obtained after setting up your app in Facebook. + /// + public string AppID; + /// + /// Facebook App Secret obtained after setting up your app in Facebook. + /// + public string AppSecret; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Email address for purchase dispute notifications. + /// + public string NotificationEmail; + } + + [Serializable] + public class CreateOrUpdateFacebookResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateGoogleRequest : PlayFabRequestCommon + { + /// + /// Google App License Key obtained after setting up your app in the Google Play developer portal. Required if using Google + /// receipt validation. + /// + public string AppLicenseKey; + /// + /// Google App Package ID obtained after setting up your app in the Google Play developer portal. Required if using Google + /// receipt validation. + /// + public string AppPackageID; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Google OAuth Client ID obtained through the Google Developer Console by creating a new set of "OAuth Client ID". + /// Required if using Google Authentication. + /// + public string OAuthClientID; + /// + /// Google OAuth Client Secret obtained through the Google Developer Console by creating a new set of "OAuth Client ID". + /// Required if using Google Authentication. + /// + 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; + } + + [Serializable] + public class CreateOrUpdateGoogleResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateKongregateRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Kongregate Secret API Key obtained after setting up your game in your Kongregate developer account. + /// + public string SecretAPIKey; + } + + [Serializable] + public class CreateOrUpdateKongregateResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateNintendoRequest : PlayFabRequestCommon + { + /// + /// Nintendo Switch Application ID, without the "0x" prefix. + /// + public string ApplicationID; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// List of Nintendo Environments, currently supporting up to 4. Needs Catalog enabled. + /// + public List Environments; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + } + + [Serializable] + public class CreateOrUpdateNintendoResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdatePSNRequest : PlayFabRequestCommon + { + /// + /// Client ID obtained after setting up your game with Sony. This one is associated with the existing PS4 marketplace. + /// + public string ClientID; + /// + /// Client secret obtained after setting up your game with Sony. This one is associated with the existing PS4 marketplace. + /// + public string ClientSecret; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Client ID obtained after setting up your game with Sony. This one is associated with the modern marketplace, which + /// includes PS5, cross-generation for PS4, and unified entitlements. + /// + public string NextGenClientID; + /// + /// Client secret obtained after setting up your game with Sony. This one is associated with the modern marketplace, which + /// includes PS5, cross-generation for PS4, and unified entitlements. + /// + public string NextGenClientSecret; + } + + [Serializable] + public class CreateOrUpdatePSNResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateSteamRequest : PlayFabRequestCommon + { + /// + /// Application ID obtained after setting up your app in Valve's developer portal. + /// + public string ApplicationId; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Enforce usage of AzurePlayFab identity in user authentication tickets. + /// + public bool? EnforceServiceSpecificTickets; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + /// + /// Sercet Key obtained after setting up your app in Valve's developer portal. + /// + public string SecretKey; + /// + /// Use Steam Payments sandbox endpoint for test transactions. + /// + public bool? UseSandbox; + } + + [Serializable] + public class CreateOrUpdateSteamResponse : PlayFabResultCommon + { + } + + [Serializable] + public class CreateOrUpdateTwitchRequest : PlayFabRequestCommon + { + /// + /// Client ID obtained after creating your Twitch developer account. + /// + public string ClientID; + /// + /// Client Secret obtained after creating your Twitch developer account. + /// + public string ClientSecret; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// If an error should be returned if the addon already exists. + /// + public bool? ErrorIfExists; + } + + [Serializable] + public class CreateOrUpdateTwitchResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteAppleRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteAppleResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteFacebookInstantGamesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteFacebookInstantGamesResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteFacebookRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteFacebookResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteGoogleRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteGoogleResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteKongregateRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteKongregateResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteNintendoRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteNintendoResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeletePSNRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeletePSNResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteSteamRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteSteamResponse : PlayFabResultCommon + { + } + + [Serializable] + public class DeleteTwitchRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class DeleteTwitchResponse : PlayFabResultCommon + { + } + + /// + /// Combined entity type and ID structure which uniquely identifies a single entity. + /// + [Serializable] + public class EntityKey : PlayFabBaseModel + { + /// + /// Unique ID of the entity. + /// + public string Id; + /// + /// Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types + /// + public string Type; + } + + [Serializable] + public class GetAppleRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetAppleResponse : PlayFabResultCommon + { + /// + /// iOS App Bundle ID obtained after setting up your app in the App Store. + /// + public string AppBundleId; + /// + /// Addon status. + /// + public bool Created; + /// + /// Ignore expiration date for identity tokens. + /// + public bool? IgnoreExpirationDate; + /// + /// Require secure authentication only for this app. + /// + public bool? RequireSecureAuthentication; + } + + [Serializable] + public class GetFacebookInstantGamesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetFacebookInstantGamesResponse : PlayFabResultCommon + { + /// + /// Facebook App ID obtained after setting up your app in Facebook Instant Games. + /// + public string AppID; + /// + /// Addon status. + /// + public bool Created; + } + + [Serializable] + public class GetFacebookRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetFacebookResponse : PlayFabResultCommon + { + /// + /// Facebook App ID obtained after setting up your app in Facebook. + /// + public string AppID; + /// + /// Addon status. + /// + public bool Created; + /// + /// Email address for purchase dispute notifications. + /// + public string NotificationEmail; + } + + [Serializable] + public class GetGoogleRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetGoogleResponse : PlayFabResultCommon + { + /// + /// Google App Package ID obtained after setting up your app in the Google Play developer portal. Required if using Google + /// receipt validation. + /// + public string AppPackageID; + /// + /// Addon status. + /// + public bool Created; + /// + /// Google OAuth Client ID obtained through the Google Developer Console by creating a new set of "OAuth Client ID". + /// 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] + public class GetKongregateRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetKongregateResponse : PlayFabResultCommon + { + /// + /// Addon status. + /// + public bool Created; + } + + [Serializable] + public class GetNintendoRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetNintendoResponse : PlayFabResultCommon + { + /// + /// Nintendo Switch Application ID, without the "0x" prefix. + /// + public string ApplicationID; + /// + /// Addon status. + /// + public bool Created; + /// + /// List of Nintendo Environments, currently supporting up to 4. + /// + public List Environments; + } + + [Serializable] + public class GetPSNRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetPSNResponse : PlayFabResultCommon + { + /// + /// Client ID obtained after setting up your game with Sony. This one is associated with the existing PS4 marketplace. + /// + public string ClientID; + /// + /// Addon status. + /// + public bool Created; + /// + /// Client ID obtained after setting up your game with Sony. This one is associated with the modern marketplace, which + /// includes PS5, cross-generation for PS4, and unified entitlements. + /// + public string NextGenClientID; + } + + [Serializable] + public class GetSteamRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetSteamResponse : PlayFabResultCommon + { + /// + /// Application ID obtained after setting up your game in Valve's developer portal. + /// + public string ApplicationId; + /// + /// Addon status. + /// + public bool Created; + /// + /// Enforce usage of AzurePlayFab identity in user authentication tickets. + /// + public bool? EnforceServiceSpecificTickets; + /// + /// Use Steam Payments sandbox endpoint for test transactions. + /// + public bool? UseSandbox; + } + + [Serializable] + public class GetTwitchRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetTwitchResponse : PlayFabResultCommon + { + /// + /// Client ID obtained after creating your Twitch developer account. + /// + public string ClientID; + /// + /// Addon status. + /// + public bool Created; + } + + [Serializable] + public class NintendoEnvironment : PlayFabBaseModel + { + /// + /// Client ID for the Nintendo Environment. + /// + public string ClientID; + /// + /// Client Secret for the Nintendo Environment. + /// + public string ClientSecret; + /// + /// ID for the Nintendo Environment. + /// + public string ID; + } +} +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta new file mode 100644 index 000000000..573052f25 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 87ffcc7751ee8d54a9effc1467d73c87 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs new file mode 100644 index 000000000..544f4f350 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs @@ -0,0 +1,64 @@ +#if !DISABLE_PLAYFABENTITY_API +using PlayFab.AddonModels; + +namespace PlayFab.Events +{ + public partial class PlayFabEvents + { + public event PlayFabRequestEvent OnAddonCreateOrUpdateAppleRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateAppleResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateFacebookRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateFacebookResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateFacebookInstantGamesResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateGoogleRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateGoogleResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateKongregateRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateKongregateResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateNintendoRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateNintendoResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdatePSNRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdatePSNResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateSteamRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateSteamResultEvent; + public event PlayFabRequestEvent OnAddonCreateOrUpdateTwitchRequestEvent; + public event PlayFabResultEvent OnAddonCreateOrUpdateTwitchResultEvent; + public event PlayFabRequestEvent OnAddonDeleteAppleRequestEvent; + public event PlayFabResultEvent OnAddonDeleteAppleResultEvent; + public event PlayFabRequestEvent OnAddonDeleteFacebookRequestEvent; + public event PlayFabResultEvent OnAddonDeleteFacebookResultEvent; + public event PlayFabRequestEvent OnAddonDeleteFacebookInstantGamesRequestEvent; + public event PlayFabResultEvent OnAddonDeleteFacebookInstantGamesResultEvent; + public event PlayFabRequestEvent OnAddonDeleteGoogleRequestEvent; + public event PlayFabResultEvent OnAddonDeleteGoogleResultEvent; + public event PlayFabRequestEvent OnAddonDeleteKongregateRequestEvent; + public event PlayFabResultEvent OnAddonDeleteKongregateResultEvent; + public event PlayFabRequestEvent OnAddonDeleteNintendoRequestEvent; + public event PlayFabResultEvent OnAddonDeleteNintendoResultEvent; + public event PlayFabRequestEvent OnAddonDeletePSNRequestEvent; + public event PlayFabResultEvent OnAddonDeletePSNResultEvent; + public event PlayFabRequestEvent OnAddonDeleteSteamRequestEvent; + public event PlayFabResultEvent OnAddonDeleteSteamResultEvent; + public event PlayFabRequestEvent OnAddonDeleteTwitchRequestEvent; + public event PlayFabResultEvent OnAddonDeleteTwitchResultEvent; + public event PlayFabRequestEvent OnAddonGetAppleRequestEvent; + public event PlayFabResultEvent OnAddonGetAppleResultEvent; + public event PlayFabRequestEvent OnAddonGetFacebookRequestEvent; + public event PlayFabResultEvent OnAddonGetFacebookResultEvent; + public event PlayFabRequestEvent OnAddonGetFacebookInstantGamesRequestEvent; + public event PlayFabResultEvent OnAddonGetFacebookInstantGamesResultEvent; + public event PlayFabRequestEvent OnAddonGetGoogleRequestEvent; + public event PlayFabResultEvent OnAddonGetGoogleResultEvent; + public event PlayFabRequestEvent OnAddonGetKongregateRequestEvent; + public event PlayFabResultEvent OnAddonGetKongregateResultEvent; + public event PlayFabRequestEvent OnAddonGetNintendoRequestEvent; + public event PlayFabResultEvent OnAddonGetNintendoResultEvent; + public event PlayFabRequestEvent OnAddonGetPSNRequestEvent; + public event PlayFabResultEvent OnAddonGetPSNResultEvent; + public event PlayFabRequestEvent OnAddonGetSteamRequestEvent; + public event PlayFabResultEvent OnAddonGetSteamResultEvent; + public event PlayFabRequestEvent OnAddonGetTwitchRequestEvent; + public event PlayFabResultEvent OnAddonGetTwitchResultEvent; + } +} +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs.meta b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs.meta new file mode 100644 index 000000000..9673c4a7e --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Addon/PlayFabEvents.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d196246361876214999b16fe616a0f32 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminAPI.cs b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminAPI.cs index 1ce12edaf..3d2d5a3da 100644 --- a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminAPI.cs @@ -77,7 +77,8 @@ namespace PlayFab } /// - /// Increments the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the specified virtual currency by the stated amount /// public static void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -90,8 +91,9 @@ namespace PlayFab } /// - /// Adds one or more virtual currencies to the set defined for the title. Virtual Currencies have a maximum value of - /// 2,147,483,647 when granted to a player. Any value over that will be discarded. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds one or more virtual currencies to the set defined for the title. Virtual Currencies have a maximum + /// value of 2,147,483,647 when granted to a player. Any value over that will be discarded. /// public static void AddVirtualCurrencyTypes(AddVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -117,7 +119,8 @@ namespace PlayFab } /// - /// Checks the global count for the limited edition item. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Checks the global count for the limited edition item. /// public static void CheckLimitedEditionItemAvailability(CheckLimitedEditionItemAvailabilityRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -249,6 +252,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Admin/DeleteMasterPlayerAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Deletes PlayStream and telemetry event data associated with the master player account from PlayFab storage + /// + public static void DeleteMasterPlayerEventData(DeleteMasterPlayerEventDataRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Admin/DeleteMasterPlayerEventData", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Deletes a player's subscription /// @@ -316,7 +332,8 @@ namespace PlayFab } /// - /// Deletes an existing virtual item store + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Deletes an existing virtual item store /// public static void DeleteStore(DeleteStoreRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -423,7 +440,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public static void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -516,34 +534,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Admin/GetDataReport", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Retrieves the details for a specific completed session, including links to standard out and standard error logs - /// - [Obsolete("Use 'MultiplayerServer/GetMultiplayerSessionLogsBySessionId' instead", false)] - public static void GetMatchmakerGameInfo(GetMatchmakerGameInfoRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Admin/GetMatchmakerGameInfo", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Retrieves the details of defined game modes for the specified game server executable - /// - [Obsolete("No longer available", false)] - public static void GetMatchmakerGameModes(GetMatchmakerGameModesRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Admin/GetMatchmakerGameModes", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Get the list of titles that the player has played /// @@ -693,7 +683,8 @@ namespace PlayFab } /// - /// Retrieves the random drop table configuration for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the random drop table configuration for the title /// public static void GetRandomResultTables(GetRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -735,7 +726,8 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined /// public static void GetStoreItems(GetStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -852,7 +844,8 @@ namespace PlayFab } /// - /// Retrieves the specified user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified user's current inventory of virtual goods /// public static void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -917,7 +910,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user inventories + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user inventories /// public static void GrantItemsToUsers(GrantItemsToUsersRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -930,7 +924,8 @@ namespace PlayFab } /// - /// Increases the global count for the given scarce resource. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increases the global count for the given scarce resource. /// public static void IncrementLimitedEditionItemAvailability(IncrementLimitedEditionItemAvailabilityRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -969,7 +964,8 @@ namespace PlayFab } /// - /// Retuns the list of all defined virtual currencies for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retuns the list of all defined virtual currencies for the title /// public static void ListVirtualCurrencyTypes(ListVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -982,21 +978,8 @@ namespace PlayFab } /// - /// Updates the build details for the specified game server executable - /// - [Obsolete("No longer available", false)] - public static void ModifyServerBuild(ModifyServerBuildRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Admin/ModifyServerBuild", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Attempts to process an order refund through the original real money payment provider. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Attempts to process an order refund through the original real money payment provider. /// public static void RefundPurchase(RefundPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1022,7 +1005,8 @@ namespace PlayFab } /// - /// Removes one or more virtual currencies from the set defined for the title. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Removes one or more virtual currencies from the set defined for the title. /// public static void RemoveVirtualCurrencyTypes(RemoveVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1074,7 +1058,8 @@ namespace PlayFab } /// - /// Attempts to resolve a dispute with the original order's payment provider. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Attempts to resolve a dispute with the original order's payment provider. /// public static void ResolvePurchaseDispute(ResolvePurchaseDisputeRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1113,7 +1098,8 @@ namespace PlayFab } /// - /// Revokes access to an item in a user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access to an item in a user's inventory /// public static void RevokeInventoryItem(RevokeInventoryItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1126,7 +1112,8 @@ namespace PlayFab } /// - /// Revokes access for up to 25 items across multiple users and characters. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access for up to 25 items across multiple users and characters. /// public static void RevokeInventoryItems(RevokeInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1167,7 +1154,8 @@ namespace PlayFab } /// - /// Creates the catalog configuration of all virtual goods for the specified catalog version + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Creates the catalog configuration of all virtual goods for the specified catalog version /// public static void SetCatalogItems(UpdateCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1232,7 +1220,8 @@ namespace PlayFab } /// - /// Sets all the items in one virtual store + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Sets all the items in one virtual store /// public static void SetStoreItems(UpdateStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1303,7 +1292,8 @@ namespace PlayFab } /// - /// Decrements the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the specified virtual currency by the stated amount /// public static void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1329,7 +1319,8 @@ namespace PlayFab } /// - /// Updates the catalog configuration for virtual goods in the specified catalog version + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the catalog configuration for virtual goods in the specified catalog version /// public static void UpdateCatalogItems(UpdateCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1409,7 +1400,8 @@ namespace PlayFab } /// - /// Updates the random drop table configuration for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the random drop table configuration for the title /// public static void UpdateRandomResultTables(UpdateRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1435,7 +1427,8 @@ namespace PlayFab } /// - /// Updates an existing virtual item store with new or modified items + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates an existing virtual item store with new or modified items /// public static void UpdateStoreItems(UpdateStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminInstanceAPI.cs index 835080938..c793da385 100644 --- a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminInstanceAPI.cs @@ -91,7 +91,8 @@ namespace PlayFab } /// - /// Increments the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the specified virtual currency by the stated amount /// public void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -102,8 +103,9 @@ namespace PlayFab } /// - /// Adds one or more virtual currencies to the set defined for the title. Virtual Currencies have a maximum value of - /// 2,147,483,647 when granted to a player. Any value over that will be discarded. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds one or more virtual currencies to the set defined for the title. Virtual Currencies have a maximum + /// value of 2,147,483,647 when granted to a player. Any value over that will be discarded. /// public void AddVirtualCurrencyTypes(AddVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -125,7 +127,8 @@ namespace PlayFab } /// - /// Checks the global count for the limited edition item. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Checks the global count for the limited edition item. /// public void CheckLimitedEditionItemAvailability(CheckLimitedEditionItemAvailabilityRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -237,6 +240,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Admin/DeleteMasterPlayerAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Deletes PlayStream and telemetry event data associated with the master player account from PlayFab storage + /// + public void DeleteMasterPlayerEventData(DeleteMasterPlayerEventDataRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Admin/DeleteMasterPlayerEventData", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Deletes a player's subscription /// @@ -294,7 +308,8 @@ namespace PlayFab } /// - /// Deletes an existing virtual item store + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Deletes an existing virtual item store /// public void DeleteStore(DeleteStoreRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -385,7 +400,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -464,30 +480,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Admin/GetDataReport", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Retrieves the details for a specific completed session, including links to standard out and standard error logs - /// - [Obsolete("Use 'MultiplayerServer/GetMultiplayerSessionLogsBySessionId' instead", false)] - public void GetMatchmakerGameInfo(GetMatchmakerGameInfoRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Admin/GetMatchmakerGameInfo", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Retrieves the details of defined game modes for the specified game server executable - /// - [Obsolete("No longer available", false)] - public void GetMatchmakerGameModes(GetMatchmakerGameModesRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Admin/GetMatchmakerGameModes", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Get the list of titles that the player has played /// @@ -615,7 +607,8 @@ namespace PlayFab } /// - /// Retrieves the random drop table configuration for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the random drop table configuration for the title /// public void GetRandomResultTables(GetRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -651,7 +644,8 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined /// public void GetStoreItems(GetStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -750,7 +744,8 @@ namespace PlayFab } /// - /// Retrieves the specified user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified user's current inventory of virtual goods /// public void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -805,7 +800,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user inventories + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user inventories /// public void GrantItemsToUsers(GrantItemsToUsersRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -816,7 +812,8 @@ namespace PlayFab } /// - /// Increases the global count for the given scarce resource. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increases the global count for the given scarce resource. /// public void IncrementLimitedEditionItemAvailability(IncrementLimitedEditionItemAvailabilityRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -849,7 +846,8 @@ namespace PlayFab } /// - /// Retuns the list of all defined virtual currencies for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retuns the list of all defined virtual currencies for the title /// public void ListVirtualCurrencyTypes(ListVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -860,19 +858,8 @@ namespace PlayFab } /// - /// Updates the build details for the specified game server executable - /// - [Obsolete("No longer available", false)] - public void ModifyServerBuild(ModifyServerBuildRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Admin/ModifyServerBuild", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Attempts to process an order refund through the original real money payment provider. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Attempts to process an order refund through the original real money payment provider. /// public void RefundPurchase(RefundPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -894,7 +881,8 @@ namespace PlayFab } /// - /// Removes one or more virtual currencies from the set defined for the title. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Removes one or more virtual currencies from the set defined for the title. /// public void RemoveVirtualCurrencyTypes(RemoveVirtualCurrencyTypesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -938,7 +926,8 @@ namespace PlayFab } /// - /// Attempts to resolve a dispute with the original order's payment provider. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Attempts to resolve a dispute with the original order's payment provider. /// public void ResolvePurchaseDispute(ResolvePurchaseDisputeRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -971,7 +960,8 @@ namespace PlayFab } /// - /// Revokes access to an item in a user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access to an item in a user's inventory /// public void RevokeInventoryItem(RevokeInventoryItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -982,7 +972,8 @@ namespace PlayFab } /// - /// Revokes access for up to 25 items across multiple users and characters. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access for up to 25 items across multiple users and characters. /// public void RevokeInventoryItems(RevokeInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1017,7 +1008,8 @@ namespace PlayFab } /// - /// Creates the catalog configuration of all virtual goods for the specified catalog version + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Creates the catalog configuration of all virtual goods for the specified catalog version /// public void SetCatalogItems(UpdateCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1072,7 +1064,8 @@ namespace PlayFab } /// - /// Sets all the items in one virtual store + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Sets all the items in one virtual store /// public void SetStoreItems(UpdateStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1133,7 +1126,8 @@ namespace PlayFab } /// - /// Decrements the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the specified virtual currency by the stated amount /// public void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1155,7 +1149,8 @@ namespace PlayFab } /// - /// Updates the catalog configuration for virtual goods in the specified catalog version + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the catalog configuration for virtual goods in the specified catalog version /// public void UpdateCatalogItems(UpdateCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1223,7 +1218,8 @@ namespace PlayFab } /// - /// Updates the random drop table configuration for the title + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the random drop table configuration for the title /// public void UpdateRandomResultTables(UpdateRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1245,7 +1241,8 @@ namespace PlayFab } /// - /// Updates an existing virtual item store with new or modified items + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates an existing virtual item store with new or modified items /// public void UpdateStoreItems(UpdateStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminModels.cs b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminModels.cs index 1d4d8f604..4ec83c70d 100644 --- a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabAdminModels.cs @@ -21,13 +21,69 @@ namespace PlayFab.AdminModels public string TaskInstanceId; } + /// + /// The work to be performed on each entity which can only be of one type. + /// + [Serializable] + public class Action : PlayFabBaseModel + { + /// + /// Action content to add inventory item v2 + /// + public AddInventoryItemV2Content AddInventoryItemV2Content; + /// + /// Action content to ban player + /// + public BanPlayerContent BanPlayerContent; + /// + /// Action content to delete inventory item v2 + /// + public DeleteInventoryItemV2Content DeleteInventoryItemV2Content; + /// + /// Action content to delete player + /// + public DeletePlayerContent DeletePlayerContent; + /// + /// Action content to execute cloud script + /// + public ExecuteCloudScriptContent ExecuteCloudScriptContent; + /// + /// Action content to execute azure function + /// + public ExecuteFunctionContent ExecuteFunctionContent; + /// + /// Action content to grant item + /// + public GrantItemContent GrantItemContent; + /// + /// Action content to grant virtual currency + /// + public GrantVirtualCurrencyContent GrantVirtualCurrencyContent; + /// + /// Action content to increment player statistic + /// + public IncrementPlayerStatisticContent IncrementPlayerStatisticContent; + /// + /// Action content to send push notification + /// + public PushNotificationContent PushNotificationContent; + /// + /// Action content to send email + /// + public SendEmailContent SendEmailContent; + /// + /// Action content to subtract inventory item v2 + /// + public SubtractInventoryItemV2Content SubtractInventoryItemV2Content; + } + [Serializable] public class ActionsOnPlayersInSegmentTaskParameter : PlayFabBaseModel { /// - /// ID of the action to perform on each player in segment. + /// List of actions to perform on each player in a segment. Each action object can contain only one action type. /// - public string ActionId; + public List Actions; /// /// ID of the segment to perform actions on. /// @@ -138,6 +194,56 @@ namespace PlayFab.AdminModels public SegmentFilterComparison? Comparison; } + [Serializable] + public class AddInventoryItemsV2SegmentAction : PlayFabBaseModel + { + /// + /// Amount of the item to be granted to a player + /// + public int? Amount; + /// + /// The collection id for where the item will be granted in the player inventory + /// + public string CollectionId; + /// + /// The duration in seconds of the subscription to be granted to a player + /// + public int? DurationInSeconds; + /// + /// The id of item to be granted to the player + /// + public string ItemId; + /// + /// The stack id for where the item will be granted in the player inventory + /// + public string StackId; + } + + [Serializable] + public class AddInventoryItemV2Content : PlayFabBaseModel + { + /// + /// Amount of the item to be granted to a player + /// + public int? Amount; + /// + /// The collection id for where the item will be granted in the player inventory + /// + public string CollectionId; + /// + /// The duration in seconds of the subscription to be granted to a player + /// + public int? DurationInSeconds; + /// + /// The id of item to be granted to the player + /// + public string ItemId; + /// + /// The stack id for where the item will be granted in the player inventory + /// + public string StackId; + } + [Serializable] public class AddLocalizedNewsRequest : PlayFabRequestCommon { @@ -314,6 +420,23 @@ namespace PlayFab.AdminModels /// The reason why this ban was applied. /// public string Reason; + /// + /// The family type of the suer that is included in the ban. + /// + public string UserFamilyType; + } + + [Serializable] + public class BanPlayerContent : PlayFabBaseModel + { + /// + /// Duration(in hours) to ban a player. If not provided, the player will be banned permanently. + /// + public int? BanDurationHours; + /// + /// Reason to ban a player + /// + public string BanReason; } [Serializable] @@ -351,6 +474,10 @@ namespace PlayFab.AdminModels /// The reason for this ban. Maximum 140 characters. /// public string Reason; + /// + /// The family type of the user that should be included in the ban if applicable. May affect multiple players. + /// + public UserFamilyType? UserFamilyType; } /// @@ -737,7 +864,8 @@ namespace PlayFab.AdminModels EU, NA, OC, - SA + SA, + Unknown } public enum CountryCode @@ -990,7 +1118,8 @@ namespace PlayFab.AdminModels EH, YE, ZM, - ZW + ZW, + Unknown } /// @@ -1122,6 +1251,10 @@ namespace PlayFab.AdminModels /// Manually specified information for an OpenID Connect issuer. /// public OpenIdIssuerInformation IssuerInformation; + /// + /// Override the issuer name for user indexing and lookup. + /// + public string IssuerOverride; } /// @@ -1399,16 +1532,50 @@ namespace PlayFab.AdminModels public string Key; } + [Serializable] + public class DeleteInventoryItemsV2SegmentAction : PlayFabBaseModel + { + /// + /// The collection id for where the item will be removed from the player inventory + /// + public string CollectionId; + /// + /// The id of item to be removed from the player + /// + public string ItemId; + /// + /// The stack id for where the item will be removed from the player inventory + /// + public string StackId; + } + + [Serializable] + public class DeleteInventoryItemV2Content : PlayFabBaseModel + { + /// + /// The collection id for where the item will be removed from the player inventory + /// + public string CollectionId; + /// + /// The id of item to be removed from the player + /// + public string ItemId; + /// + /// The stack id for where the item will be removed from the player inventory + /// + public string StackId; + } + /// /// Deletes all data associated with the master player account, including data from all titles the player has played, such /// as statistics, custom data, inventory, purchases, virtual currency balances, characters, group memberships, publisher - /// data, credential data, account linkages, friends list and PlayStream event history. Removes the player from all - /// leaderboards and player search indexes. Note, this API queues the player for deletion and returns a receipt immediately. - /// Record the receipt ID for future reference. It may take some time before all player data is fully deleted. Upon - /// completion of the deletion, an email will be sent to the notification email address configured for the title confirming - /// the deletion. Until the player data is fully deleted, attempts to recreate the player with the same user account in the - /// same title will fail with the 'AccountDeleted' error. It is highly recommended to know the impact of the deletion by - /// calling GetPlayedTitleList, before calling this API. + /// data, credential data, account linkages, friends list, PlayStream event data, and telemetry event data. Removes the + /// player from all leaderboards and player search indexes. Note, this API queues the player for deletion and returns a + /// receipt immediately. Record the receipt ID for future reference. It may take some time before all player data is fully + /// deleted. Upon completion of the deletion, an email will be sent to the notification email address configured for the + /// title confirming the deletion. Until the player data is fully deleted, attempts to recreate the player with the same + /// user account in the same title will fail with the 'AccountDeleted' error. It is highly recommended to know the impact of + /// the deletion by calling GetPlayedTitleList, before calling this API. /// [Serializable] public class DeleteMasterPlayerAccountRequest : PlayFabRequestCommon @@ -1437,6 +1604,24 @@ namespace PlayFab.AdminModels public List TitleIds; } + /// + /// Deletes any PlayStream or telemetry event associated with the player from PlayFab. Note, this API queues the data for + /// asynchronous deletion. It may take some time before the data is deleted. + /// + [Serializable] + public class DeleteMasterPlayerEventDataRequest : PlayFabRequestCommon + { + /// + /// Unique PlayFab assigned ID of the user on whom the operation will be performed. + /// + public string PlayFabId; + } + + [Serializable] + public class DeleteMasterPlayerEventDataResult : PlayFabResultCommon + { + } + /// /// This API lets developers delete a membership subscription. /// @@ -1475,6 +1660,11 @@ namespace PlayFab.AdminModels public string ConnectionId; } + [Serializable] + public class DeletePlayerContent : PlayFabBaseModel + { + } + /// /// Deletes all data associated with the player, including statistics, custom data, inventory, purchases, virtual currency /// balances, characters and shared group memberships. Removes the player from all leaderboards and player search indexes. @@ -1690,6 +1880,23 @@ namespace PlayFab.AdminModels public bool GenerateFunctionExecutedEvents; } + [Serializable] + public class ExecuteCloudScriptContent : PlayFabBaseModel + { + /// + /// Arguments(JSON) to be passed into the cloudscript method + /// + public string CloudScriptMethodArguments; + /// + /// Cloudscript method name + /// + public string CloudScriptMethodName; + /// + /// Publish cloudscript results as playstream event + /// + public bool PublishResultsToPlayStream; + } + [Serializable] public class ExecuteCloudScriptResult : PlayFabBaseModel { @@ -1762,13 +1969,30 @@ namespace PlayFab.AdminModels public string FunctionParameterJson; } + [Serializable] + public class ExecuteFunctionContent : PlayFabBaseModel + { + /// + /// Arguments(JSON) to be passed into the cloudscript azure function + /// + public string CloudScriptFunctionArguments; + /// + /// Cloudscript azure function name + /// + public string CloudScriptFunctionName; + /// + /// Publish results from executing the azure function as playstream event + /// + public bool PublishResultsToPlayStream; + } + /// /// Exports all data associated with the master player account, including data from all titles the player has played, such /// as statistics, custom data, inventory, purchases, virtual currency balances, characters, group memberships, publisher - /// data, credential data, account linkages, friends list and PlayStream event history. Note, this API queues the player for - /// export and returns a receipt immediately. Record the receipt ID for future reference. It may take some time before the - /// export is available for download. Upon completion of the export, an email containing the URL to download the export dump - /// will be sent to the notification email address configured for the title. + /// data, credential data, account linkages, friends list, PlayStream event data, and telemetry event data. Note, this API + /// queues the player for export and returns a receipt immediately. Record the receipt ID for future reference. It may take + /// some time before the export is available for download. Upon completion of the export, an email containing the URL to + /// download the export dump will be sent to the notification email address configured for the title. /// [Serializable] public class ExportMasterPlayerDataRequest : PlayFabRequestCommon @@ -1840,36 +2064,6 @@ namespace PlayFab.AdminModels public double DurationInMinutes; } - public enum GameBuildStatus - { - Available, - Validating, - InvalidBuildPackage, - Processing, - FailedToProcess - } - - [Serializable] - public class GameModeInfo : PlayFabBaseModel - { - /// - /// specific game mode type - /// - public string Gamemode; - /// - /// maximum user count a specific Game Server Instance can support - /// - public uint MaxPlayerCount; - /// - /// minimum user count required for this Game Server Instance to continue (usually 1) - /// - public uint MinPlayerCount; - /// - /// whether to start as an open session, meaning that players can matchmake into it (defaults to true) - /// - public bool? StartOpen; - } - public enum GenericErrorCodes { Success, @@ -2421,6 +2615,42 @@ namespace PlayFab.AdminModels NamespaceMismatch, InvalidServiceConfiguration, InvalidNamespaceMismatch, + LeaderboardColumnLengthMismatch, + InvalidStatisticScore, + LeaderboardColumnsNotSpecified, + LeaderboardMaxSizeTooLarge, + InvalidAttributeStatisticsSpecified, + LeaderboardNotFound, + TokenSigningKeyNotFound, + LeaderboardNameConflict, + LinkedStatisticColumnMismatch, + NoLinkedStatisticToLeaderboard, + StatDefinitionAlreadyLinkedToLeaderboard, + LinkingStatsNotAllowedForEntityType, + LeaderboardCountLimitExceeded, + LeaderboardSizeLimitExceeded, + LeaderboardDefinitionModificationNotAllowedWhileLinked, + StatisticDefinitionModificationNotAllowedWhileLinked, + LeaderboardUpdateNotAllowedWhileLinked, + CloudScriptAzureFunctionsEventHubRequestError, + ExternalEntityNotAllowedForTier, + InvalidBaseTimeForInterval, + EntityTypeMismatchWithStatDefinition, + SpecifiedVersionLeaderboardNotFound, + LeaderboardColumnLengthMismatchWithStatDefinition, + DuplicateColumnNameFound, + LinkedStatisticColumnNotFound, + LinkedStatisticColumnRequired, + MultipleLinkedStatisticsNotAllowed, + DuplicateLinkedStatisticColumnNameFound, + AggregationTypeNotAllowedForMultiColumnStatistic, + MaxQueryableVersionsValueNotAllowedForTier, + StatisticDefinitionHasNullOrEmptyVersionConfiguration, + StatisticColumnLengthMismatch, + InvalidExternalEntityId, + UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier, + TransactionAlreadyApplied, + ReportDataNotRetrievedSuccessfully, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -2464,6 +2694,7 @@ namespace PlayFab.AdminModels CatalogItemTypeInvalid, CatalogBadRequest, CatalogTooManyRequests, + InvalidCatalogItemConfiguration, ExportInvalidStatusUpdate, ExportInvalidPrefix, ExportBlobContainerDoesNotExist, @@ -2510,6 +2741,7 @@ namespace PlayFab.AdminModels MultiplayerServerBuildReferencedByMatchmakingQueue, MultiplayerServerBuildReferencedByBuildAlias, MultiplayerServerBuildAliasReferencedByMatchmakingQueue, + PartySerializationError, ExperimentationExperimentStopped, ExperimentationExperimentRunning, ExperimentationExperimentNotFound, @@ -2549,6 +2781,7 @@ namespace PlayFab.AdminModels AsyncExportNotInFlight, AsyncExportNotFound, AsyncExportRateLimitExceeded, + AnalyticsSegmentCountOverLimit, SnapshotNotFound, InventoryApiNotImplemented, LobbyDoesNotExist, @@ -2563,6 +2796,12 @@ namespace PlayFab.AdminModels LobbyNewOwnerMustBeConnected, LobbyCurrentOwnerStillConnected, LobbyMemberIsNotOwner, + LobbyServerMismatch, + LobbyServerNotFound, + LobbyDifferentServerAlreadyJoined, + LobbyServerAlreadyJoined, + LobbyIsNotClientOwned, + LobbyDoesNotUseConnections, EventSamplingInvalidRatio, EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, @@ -2573,6 +2812,7 @@ namespace PlayFab.AdminModels TelemetryKeyInvalid, TelemetryKeyCountOverLimit, TelemetryKeyDeactivated, + TelemetryKeyLongInsightsRetentionNotAllowed, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2585,9 +2825,121 @@ namespace PlayFab.AdminModels EventSinkTenantNotFound, EventSinkAadNotFound, EventSinkDatabaseNotFound, + EventSinkTitleUnauthorized, + EventSinkInsufficientRoleAssignment, + EventSinkContainerNotFound, + EventSinkTenantIdInvalid, OperationCanceled, InvalidDisplayNameRandomSuffixLength, - AllowNonUniquePlayerDisplayNamesDisableNotAllowed + AllowNonUniquePlayerDisplayNamesDisableNotAllowed, + PartitionedEventInvalid, + PartitionedEventCountOverLimit, + ManageEventNamespaceInvalid, + ManageEventNameInvalid, + ManagedEventNotFound, + ManageEventsInvalidRatio, + ManagedEventInvalid, + PlayerCustomPropertiesPropertyNameTooLong, + PlayerCustomPropertiesPropertyNameIsInvalid, + PlayerCustomPropertiesStringPropertyValueTooLong, + PlayerCustomPropertiesValueIsInvalidType, + PlayerCustomPropertiesVersionMismatch, + PlayerCustomPropertiesPropertyCountTooHigh, + PlayerCustomPropertiesDuplicatePropertyName, + PlayerCustomPropertiesPropertyDoesNotExist, + AddonAlreadyExists, + AddonDoesntExist, + CopilotDisabled, + CopilotInvalidRequest, + TrueSkillUnauthorized, + TrueSkillInvalidTitleId, + TrueSkillInvalidScenarioId, + TrueSkillInvalidModelId, + TrueSkillInvalidModelName, + TrueSkillInvalidPlayerIds, + TrueSkillInvalidEntityKey, + TrueSkillInvalidConditionKey, + TrueSkillInvalidConditionValue, + TrueSkillInvalidConditionAffinityWeight, + TrueSkillInvalidEventName, + TrueSkillMatchResultCreated, + TrueSkillMatchResultAlreadySubmitted, + TrueSkillBadPlayerIdInMatchResult, + TrueSkillInvalidBotIdInMatchResult, + TrueSkillDuplicatePlayerInMatchResult, + TrueSkillNoPlayerInMatchResultTeam, + TrueSkillPlayersInMatchResultExceedingLimit, + TrueSkillInvalidPreMatchPartyInMatchResult, + TrueSkillInvalidTimestampInMatchResult, + TrueSkillStartTimeMissingInMatchResult, + TrueSkillEndTimeMissingInMatchResult, + TrueSkillInvalidPlayerSecondsPlayedInMatchResult, + TrueSkillNoTeamInMatchResult, + TrueSkillNotEnoughTeamsInMatchResult, + TrueSkillInvalidRanksInMatchResult, + TrueSkillNoWinnerInMatchResult, + TrueSkillMissingRequiredCondition, + TrueSkillMissingRequiredEvent, + TrueSkillUnknownEventName, + TrueSkillInvalidEventCount, + TrueSkillUnknownConditionKey, + TrueSkillUnknownConditionValue, + TrueSkillScenarioConfigDoesNotExist, + TrueSkillUnknownModelId, + TrueSkillNoModelInScenario, + TrueSkillNotSupportedForTitle, + TrueSkillModelIsNotActive, + TrueSkillUnauthorizedToQueryOtherPlayerSkills, + TrueSkillInvalidMaxIterations, + TrueSkillEndTimeBeforeStartTime, + TrueSkillInvalidJobId, + TrueSkillInvalidMetadataId, + TrueSkillMissingBuildVerison, + TrueSkillJobAlreadyExists, + TrueSkillJobNotFound, + TrueSkillOperationCanceled, + TrueSkillActiveModelLimitExceeded, + TrueSkillTotalModelLimitExceeded, + TrueSkillUnknownInitialModelId, + TrueSkillUnauthorizedForJob, + TrueSkillInvalidScenarioName, + TrueSkillConditionStateIsRequired, + TrueSkillEventStateIsRequired, + TrueSkillDuplicateEvent, + TrueSkillDuplicateCondition, + TrueSkillInvalidAnomalyThreshold, + TrueSkillConditionKeyLimitExceeded, + TrueSkillConditionValuePerKeyLimitExceeded, + TrueSkillInvalidTimestamp, + TrueSkillEventLimitExceeded, + TrueSkillInvalidPlayers, + TrueSkillTrueSkillPlayerNull, + TrueSkillInvalidPlayerId, + TrueSkillInvalidSquadSize, + TrueSkillConditionSetNotInModel, + TrueSkillModelStateInvalidForOperation, + TrueSkillScenarioContainsActiveModel, + GameSaveManifestNotFound, + GameSaveManifestVersionAlreadyExists, + GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, + GameSaveBadRequest, + GameSaveOperationNotAllowed, + GameSaveDataStorageQuotaExceeded, + GameSaveNewerManifestExists, + StateShareForbidden, + StateShareTitleNotInFlight, + StateShareStateNotFound, + StateShareLinkNotFound, + StateShareStateRedemptionLimitExceeded, + StateShareStateRedemptionLimitNotUpdated, + StateShareCreatedStatesLimitExceeded, + StateShareIdMissingOrMalformed } [Serializable] @@ -2789,91 +3141,6 @@ namespace PlayFab.AdminModels public string DownloadUrl; } - [Serializable] - public class GetMatchmakerGameInfoRequest : PlayFabRequestCommon - { - /// - /// unique identifier of the lobby for which info is being requested - /// - public string LobbyId; - } - - [Serializable] - public class GetMatchmakerGameInfoResult : PlayFabResultCommon - { - /// - /// version identifier of the game server executable binary being run - /// - public string BuildVersion; - /// - /// time when Game Server Instance is currently scheduled to end - /// - public DateTime? EndTime; - /// - /// unique identifier of the lobby - /// - public string LobbyId; - /// - /// game mode for this Game Server Instance - /// - public string Mode; - /// - /// array of unique PlayFab identifiers for users currently connected to this Game Server Instance - /// - public List Players; - /// - /// region in which the Game Server Instance is running - /// - public Region? Region; - /// - /// IPV4 address of the server - /// - public string ServerIPV4Address; - /// - /// IPV6 address of the server - /// - public string ServerIPV6Address; - /// - /// communication port for this Game Server Instance - /// - public uint ServerPort; - /// - /// Public DNS name (if any) of the server - /// - public string ServerPublicDNSName; - /// - /// time when the Game Server Instance was created - /// - public DateTime StartTime; - /// - /// unique identifier of the Game Server Instance for this lobby - /// - public string TitleId; - } - - /// - /// These details are used by the PlayFab matchmaking service to determine if an existing Game Server Instance has room for - /// additional users, and by the PlayFab game server management service to determine when a new Game Server Host should be - /// created in order to prevent excess load on existing Hosts. - /// - [Serializable] - public class GetMatchmakerGameModesRequest : PlayFabRequestCommon - { - /// - /// previously uploaded build version for which game modes are being requested - /// - public string BuildVersion; - } - - [Serializable] - public class GetMatchmakerGameModesResult : PlayFabResultCommon - { - /// - /// array of game modes available for the specified build - /// - public List GameModes; - } - /// /// Useful for identifying titles of which the player's data will be deleted by DeleteMasterPlayer. /// @@ -3622,6 +3889,23 @@ namespace PlayFab.AdminModels public int? UsesIncrementedBy; } + [Serializable] + public class GrantItemContent : PlayFabBaseModel + { + /// + /// The catalog version of the item to be granted to the player + /// + public string CatalogVersion; + /// + /// The id of item to be granted to the player + /// + public string ItemId; + /// + /// Quantity of the item to be granted to a player + /// + public int ItemQuantity; + } + [Serializable] public class GrantItemSegmentAction : PlayFabBaseModel { @@ -3674,6 +3958,19 @@ namespace PlayFab.AdminModels public List ItemGrantResults; } + [Serializable] + public class GrantVirtualCurrencyContent : PlayFabBaseModel + { + /// + /// Amount of currency to be granted to a player + /// + public int CurrencyAmount; + /// + /// Code of the currency to be granted to a player + /// + public string CurrencyCode; + } + [Serializable] public class GrantVirtualCurrencySegmentAction : PlayFabBaseModel { @@ -3717,6 +4014,19 @@ namespace PlayFab.AdminModels { } + [Serializable] + public class IncrementPlayerStatisticContent : PlayFabBaseModel + { + /// + /// Amount(in whole number) to increase the player statistic by + /// + public int StatisticChangeBy; + /// + /// Name of the player statistic to be incremented + /// + public string StatisticName; + } + [Serializable] public class IncrementPlayerStatisticSegmentAction : PlayFabBaseModel { @@ -4032,7 +4342,9 @@ namespace PlayFab.AdminModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -4111,95 +4423,6 @@ namespace PlayFab.AdminModels public List Subscriptions; } - [Serializable] - public class ModifyServerBuildRequest : PlayFabRequestCommon - { - /// - /// array of regions where this build can used, when it is active - /// - public List ActiveRegions; - /// - /// unique identifier of the previously uploaded build executable to be updated - /// - public string BuildId; - /// - /// appended to the end of the command line when starting game servers - /// - public string CommandLineTemplate; - /// - /// developer comment(s) for this build - /// - public string Comment; - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// path to the game server executable. Defaults to gameserver.exe - /// - public string ExecutablePath; - /// - /// maximum number of game server instances that can run on a single host machine - /// - public int MaxGamesPerHost; - /// - /// minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - /// machines (given the number of current running host machines and game server instances) - /// - public int MinFreeGameSlots; - /// - /// new timestamp - /// - public DateTime? Timestamp; - } - - [Serializable] - public class ModifyServerBuildResult : PlayFabResultCommon - { - /// - /// array of regions where this build can used, when it is active - /// - public List ActiveRegions; - /// - /// unique identifier for this build executable - /// - public string BuildId; - /// - /// appended to the end of the command line when starting game servers - /// - public string CommandLineTemplate; - /// - /// developer comment(s) for this build - /// - public string Comment; - /// - /// path to the game server executable. Defaults to gameserver.exe - /// - public string ExecutablePath; - /// - /// maximum number of game server instances that can run on a single host machine - /// - public int MaxGamesPerHost; - /// - /// minimum capacity of additional game server instances that can be started before the autoscaling service starts new host - /// machines (given the number of current running host machines and game server instances) - /// - public int MinFreeGameSlots; - /// - /// the current status of the build validation and processing steps - /// - public GameBuildStatus? Status; - /// - /// time this build was last modified (or uploaded, if this build has never been modified) - /// - public DateTime Timestamp; - /// - /// 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; - } - [Serializable] public class ModifyUserVirtualCurrencyResult : PlayFabResultCommon { @@ -4259,9 +4482,17 @@ namespace PlayFab.AdminModels /// public bool DiscoverConfiguration; /// + /// Ignore 'nonce' claim in identity tokens. + /// + public bool? IgnoreNonce; + /// /// Information for an OpenID Connect provider. /// public OpenIdIssuerInformation IssuerInformation; + /// + /// Override the issuer name for user indexing and lookup. + /// + public string IssuerOverride; } [Serializable] @@ -4733,6 +4964,23 @@ namespace PlayFab.AdminModels public uint Version; } + [Serializable] + public class PushNotificationContent : PlayFabBaseModel + { + /// + /// Text of message to send. + /// + public string Message; + /// + /// Id of the push notification template. + /// + public string PushNotificationTemplateId; + /// + /// Subject of message to send (may not be displayed in all platforms) + /// + public string Subject; + } + public enum PushNotificationPlatform { ApplePushNotificationService, @@ -4848,17 +5096,6 @@ namespace PlayFab.AdminModels public string PurchaseStatus; } - public enum Region - { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - /// /// This API will trigger a player_tag_removed event and remove a tag with the given TagName and PlayFabID from the /// corresponding player profile. TagName can be used for segmentation and it is limited to 256 characters @@ -5791,7 +6028,8 @@ namespace PlayFab.AdminModels FacebookInstantGames, OpenIdConnect, Apple, - NintendoSwitchAccount + NintendoSwitchAccount, + GooglePlayGames } [Serializable] @@ -5845,11 +6083,19 @@ namespace PlayFab.AdminModels [Serializable] public class SegmentTrigger : PlayFabBaseModel { + /// + /// Add inventory item v2 segment trigger action. + /// + public AddInventoryItemsV2SegmentAction AddInventoryItemsV2Action; /// /// Ban player segment trigger action. /// public BanPlayerSegmentAction BanPlayerAction; /// + /// Delete inventory item v2 segment trigger action. + /// + public DeleteInventoryItemsV2SegmentAction DeleteInventoryItemsV2Action; + /// /// Delete player segment trigger action. /// public DeletePlayerSegmentAction DeletePlayerAction; @@ -5885,6 +6131,10 @@ namespace PlayFab.AdminModels /// Push notification segment trigger action. /// public PushNotificationSegmentAction PushNotificationAction; + /// + /// Subtract inventory item v2 segment trigger action. + /// + public SubtractInventoryItemsV2SegmentAction SubtractInventoryItemsV2Action; } /// @@ -5914,6 +6164,15 @@ namespace PlayFab.AdminModels { } + [Serializable] + public class SendEmailContent : PlayFabBaseModel + { + /// + /// The email template id of the email template to send. + /// + public string EmailTemplateId; + } + /// /// This API lets developers set overrides for membership expirations, independent of any subscriptions setting it. /// @@ -6303,6 +6562,56 @@ namespace PlayFab.AdminModels PaymentPending } + [Serializable] + public class SubtractInventoryItemsV2SegmentAction : PlayFabBaseModel + { + /// + /// Amount of the item to removed from the player + /// + public int? Amount; + /// + /// The collection id for where the item will be removed from the player inventory + /// + public string CollectionId; + /// + /// The duration in seconds to be removed from the subscription in the players inventory + /// + public int? DurationInSeconds; + /// + /// The id of item to be removed from the player + /// + public string ItemId; + /// + /// The stack id for where the item will be removed from the player inventory + /// + public string StackId; + } + + [Serializable] + public class SubtractInventoryItemV2Content : PlayFabBaseModel + { + /// + /// Amount of the item to removed from the player + /// + public int? Amount; + /// + /// The collection id for where the item will be removed from the player inventory + /// + public string CollectionId; + /// + /// The duration in seconds to be removed from the subscription in the players inventory + /// + public int? DurationInSeconds; + /// + /// The id of item to be removed from the player + /// + public string ItemId; + /// + /// The stack id for where the item will be removed from the player inventory + /// + public string StackId; + } + [Serializable] public class SubtractUserVirtualCurrencyRequest : PlayFabRequestCommon { @@ -6467,6 +6776,10 @@ namespace PlayFab.AdminModels /// The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. /// public string Reason; + /// + /// The updated family type of the user that should be included in the ban. Null for no change. + /// + public UserFamilyType? UserFamilyType; } /// @@ -6576,6 +6889,10 @@ namespace PlayFab.AdminModels /// public string ConnectionId; /// + /// Ignore 'nonce' claim in identity tokens. + /// + public bool? IgnoreNonce; + /// /// The issuer URL or discovery document URL to read issuer information from /// public string IssuerDiscoveryUrl; @@ -6583,6 +6900,10 @@ namespace PlayFab.AdminModels /// Manually specified information for an OpenID Connect issuer. /// public OpenIdIssuerInformation IssuerInformation; + /// + /// Override the issuer name for user indexing and lookup. + /// + public string IssuerOverride; } /// @@ -7007,6 +7328,10 @@ namespace PlayFab.AdminModels /// public UserPsnInfo PsnInfo; /// + /// Server Custom ID information, if a server custom ID has been assigned + /// + public UserServerCustomIdInfo ServerCustomIdInfo; + /// /// User Steam information, if a Steam account has been linked /// public UserSteamInfo SteamInfo; @@ -7105,6 +7430,13 @@ namespace PlayFab.AdminModels public string FacebookInstantGamesId; } + public enum UserFamilyType + { + None, + Xbox, + Steam + } + [Serializable] public class UserGameCenterInfo : PlayFabBaseModel { @@ -7238,7 +7570,9 @@ namespace PlayFab.AdminModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -7272,6 +7606,15 @@ namespace PlayFab.AdminModels public string PsnOnlineId; } + [Serializable] + public class UserServerCustomIdInfo : PlayFabBaseModel + { + /// + /// Custom ID + /// + public string CustomId; + } + [Serializable] public class UserSteamInfo : PlayFabBaseModel { diff --git a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabEvents.cs index f701a6367..15f451282 100644 --- a/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Admin/PlayFabEvents.cs @@ -39,6 +39,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnAdminDeleteContentResultEvent; public event PlayFabRequestEvent OnAdminDeleteMasterPlayerAccountRequestEvent; public event PlayFabResultEvent OnAdminDeleteMasterPlayerAccountResultEvent; + public event PlayFabRequestEvent OnAdminDeleteMasterPlayerEventDataRequestEvent; + public event PlayFabResultEvent OnAdminDeleteMasterPlayerEventDataResultEvent; public event PlayFabRequestEvent OnAdminDeleteMembershipSubscriptionRequestEvent; public event PlayFabResultEvent OnAdminDeleteMembershipSubscriptionResultEvent; public event PlayFabRequestEvent OnAdminDeleteOpenIdConnectionRequestEvent; @@ -79,10 +81,6 @@ namespace PlayFab.Events public event PlayFabResultEvent OnAdminGetContentUploadUrlResultEvent; public event PlayFabRequestEvent OnAdminGetDataReportRequestEvent; public event PlayFabResultEvent OnAdminGetDataReportResultEvent; - public event PlayFabRequestEvent OnAdminGetMatchmakerGameInfoRequestEvent; - public event PlayFabResultEvent OnAdminGetMatchmakerGameInfoResultEvent; - public event PlayFabRequestEvent OnAdminGetMatchmakerGameModesRequestEvent; - public event PlayFabResultEvent OnAdminGetMatchmakerGameModesResultEvent; public event PlayFabRequestEvent OnAdminGetPlayedTitleListRequestEvent; public event PlayFabResultEvent OnAdminGetPlayedTitleListResultEvent; public event PlayFabRequestEvent OnAdminGetPlayerIdFromAuthTokenRequestEvent; @@ -149,8 +147,6 @@ namespace PlayFab.Events public event PlayFabResultEvent OnAdminListOpenIdConnectionResultEvent; public event PlayFabRequestEvent OnAdminListVirtualCurrencyTypesRequestEvent; public event PlayFabResultEvent OnAdminListVirtualCurrencyTypesResultEvent; - public event PlayFabRequestEvent OnAdminModifyServerBuildRequestEvent; - public event PlayFabResultEvent OnAdminModifyServerBuildResultEvent; public event PlayFabRequestEvent OnAdminRefundPurchaseRequestEvent; public event PlayFabResultEvent OnAdminRefundPurchaseResultEvent; public event PlayFabRequestEvent OnAdminRemovePlayerTagRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationAPI.cs b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationAPI.cs index 999d6b9f1..6006b8dda 100644 --- a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationAPI.cs @@ -9,9 +9,9 @@ namespace PlayFab { /// /// The Authentication APIs provide a convenient way to convert classic authentication responses into entity authentication - /// models. These APIs will provide you with the entity authentication token needed for subsequent Entity API calls. Manage - /// API keys for authenticating any entity. The game_server API is designed to create uniquely identifiable game_server - /// entities. The game_server Entity token can be used to call Matchmaking Lobby and Pubsub for server scenarios. + /// models. These APIs will provide you with the entity authentication token needed for subsequent Entity API calls. The + /// game_server API is designed to create uniquely identifiable game_server entities. The game_server Entity token can be + /// used to call Matchmaking Lobby and Pubsub for server scenarios. /// public static class PlayFabAuthenticationAPI { diff --git a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationInstanceAPI.cs index 67cc510bd..c3ed1d432 100644 --- a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationInstanceAPI.cs @@ -10,9 +10,9 @@ namespace PlayFab { /// /// The Authentication APIs provide a convenient way to convert classic authentication responses into entity authentication - /// models. These APIs will provide you with the entity authentication token needed for subsequent Entity API calls. Manage - /// API keys for authenticating any entity. The game_server API is designed to create uniquely identifiable game_server - /// entities. The game_server Entity token can be used to call Matchmaking Lobby and Pubsub for server scenarios. + /// models. These APIs will provide you with the entity authentication token needed for subsequent Entity API calls. The + /// game_server API is designed to create uniquely identifiable game_server entities. The game_server Entity token can be + /// used to call Matchmaking Lobby and Pubsub for server scenarios. /// public class PlayFabAuthenticationInstanceAPI : IPlayFabInstanceApi { diff --git a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs index 4fb7aa087..091e27b3c 100644 --- a/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Authentication/PlayFabAuthenticationModels.cs @@ -160,7 +160,14 @@ namespace PlayFab.AuthenticationModels { Unknown, XboxOne, - Scarlett + Scarlett, + WindowsOneCore, + WindowsOneCoreMobile, + Win32, + android, + iOS, + PlayStation, + Nintendo } public enum LoginIdentityProvider @@ -186,7 +193,9 @@ namespace PlayFab.AuthenticationModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } /// diff --git a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientAPI.cs b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientAPI.cs index df5dbdf14..38f4cb22c 100644 --- a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientAPI.cs @@ -120,7 +120,8 @@ namespace PlayFab } /// - /// Increments the user's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the user's balance of the specified virtual currency by the stated amount /// public static void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -174,8 +175,9 @@ namespace PlayFab } /// - /// Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and virtual - /// currency balances as appropriate + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and + /// virtual currency balances as appropriate /// public static void ConfirmPurchase(ConfirmPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -188,7 +190,9 @@ namespace PlayFab } /// - /// Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's + /// inventory. /// public static void ConsumeItem(ConsumeItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -345,7 +349,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public static void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -371,7 +376,8 @@ namespace PlayFab } /// - /// Retrieves the specified character's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified character's current inventory of virtual goods /// public static void GetCharacterInventory(GetCharacterInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -440,20 +446,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetContentDownloadUrl", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Get details about all current running game servers matching the given parameters. - /// - [Obsolete("Use 'MultiplayerServer/ListMultiplayerServers' instead", false)] - public static void GetCurrentGames(CurrentGamesRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - - - PlayFabHttp.MakeApiCall("/Client/GetCurrentGames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in /// the leaderboard @@ -496,20 +488,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetFriendsList", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Get details about the regions hosting game servers matching the given parameters. - /// - [Obsolete("Use 'MultiplayerServer/ListMultiplayerServers' instead", false)] - public static void GetGameServerRegions(GameServerRegionsRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - - - PlayFabHttp.MakeApiCall("/Client/GetGameServerRegions", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard /// @@ -564,9 +542,10 @@ namespace PlayFab } /// - /// For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client - /// completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to - /// create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the + /// client completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the + /// client to create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment. /// public static void GetPaymentToken(GetPaymentTokenRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -822,6 +801,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromPSNAccountIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. + /// + public static void GetPlayFabIDsFromPSNOnlineIDs(GetPlayFabIDsFromPSNOnlineIDsRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + + + PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromPSNOnlineIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile /// IDs for the user accounts, available as SteamId in the Steamworks Community API calls. @@ -836,6 +828,20 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona + /// names. + /// + public static void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + + + PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamNames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for /// the user accounts, available as "_id" from the Twitch API methods (ex: @@ -878,8 +884,9 @@ namespace PlayFab } /// - /// Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still - /// active. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that + /// are still active. /// public static void GetPurchase(GetPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -908,7 +915,8 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined /// public static void GetStoreItems(GetStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -998,7 +1006,8 @@ namespace PlayFab } /// - /// Retrieves the user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the user's current inventory of virtual goods /// public static void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1556,25 +1565,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/LoginWithXbox", request, AuthType.None, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - /// active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - /// parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - /// found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - /// availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - /// GameNotFound. - /// - [Obsolete("Use 'Match/CreateMatchmakingTicket' instead", false)] - public static void Matchmake(MatchmakeRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - - - PlayFabHttp.MakeApiCall("/Client/Matchmake", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time. /// @@ -1589,7 +1579,8 @@ namespace PlayFab } /// - /// Selects a payment option for purchase order created via StartPurchase + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Selects a payment option for purchase order created via StartPurchase /// public static void PayForPurchase(PayForPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1602,8 +1593,9 @@ namespace PlayFab } /// - /// Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as well as what - /// the client believes the price to be. This lets the server fail the purchase if the price has changed. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as + /// well as what the client believes the price to be. This lets the server fail the purchase if the price has changed. /// public static void PurchaseItem(PurchaseItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1616,7 +1608,8 @@ namespace PlayFab } /// - /// Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the /// Economy->Catalogs tab in the PlayFab Game Manager. /// public static void RedeemCoupon(RedeemCouponRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1657,7 +1650,7 @@ namespace PlayFab /// /// Registers a new Playfab user account, returning a session identifier that can subsequently be used for API calls which - /// require an authenticated user. You must supply either a username or an email address. + /// require an authenticated user. You must supply a username and an email address. /// public static void RegisterPlayFabUser(RegisterPlayFabUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1766,7 +1759,8 @@ namespace PlayFab } /// - /// Restores all in-app purchases based on the given restore receipt + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Restores all in-app purchases based on the given restore receipt /// public static void RestoreIOSPurchases(RestoreIOSPurchasesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1833,7 +1827,8 @@ namespace PlayFab } /// - /// Creates an order for a list of items from the title catalog + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Creates an order for a list of items from the title catalog /// public static void StartPurchase(StartPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1846,8 +1841,9 @@ namespace PlayFab } /// - /// Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make + /// a VC balance negative with this API. /// public static void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -2083,9 +2079,10 @@ namespace PlayFab } /// - /// Opens the specified container, with the specified key (when required), and returns the contents of the opened container. - /// If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will be decremented, - /// consistent with the operation of ConsumeItem. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Opens the specified container, with the specified key (when required), and returns the contents of the + /// opened container. If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will + /// be decremented, consistent with the operation of ConsumeItem. /// public static void UnlockContainerInstance(UnlockContainerInstanceRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -2098,8 +2095,9 @@ namespace PlayFab } /// - /// Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it using an - /// appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it + /// using an appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are /// consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. /// public static void UnlockContainerItem(UnlockContainerItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -2223,8 +2221,9 @@ namespace PlayFab } /// - /// Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches the - /// purchased catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches + /// the purchased catalog item /// public static void ValidateAmazonIAPReceipt(ValidateAmazonReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -2237,7 +2236,8 @@ namespace PlayFab } /// - /// Validates a Google Play purchase and gives the corresponding item to the player. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates a Google Play purchase and gives the corresponding item to the player. /// public static void ValidateGooglePlayPurchase(ValidateGooglePlayPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -2250,8 +2250,9 @@ namespace PlayFab } /// - /// Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the purchased - /// catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the + /// purchased catalog item /// public static void ValidateIOSReceipt(ValidateIOSReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -2264,8 +2265,9 @@ namespace PlayFab } /// - /// Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it matches the - /// purchased catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it + /// matches the purchased catalog item /// public static void ValidateWindowsStoreReceipt(ValidateWindowsReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientInstanceAPI.cs index 18804ce02..eb6c964f0 100644 --- a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientInstanceAPI.cs @@ -134,7 +134,8 @@ namespace PlayFab } /// - /// Increments the user's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the user's balance of the specified virtual currency by the stated amount /// public void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -180,8 +181,9 @@ namespace PlayFab } /// - /// Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and virtual - /// currency balances as appropriate + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and + /// virtual currency balances as appropriate /// public void ConfirmPurchase(ConfirmPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -192,7 +194,9 @@ namespace PlayFab } /// - /// Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's + /// inventory. /// public void ConsumeItem(ConsumeItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -329,7 +333,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -351,7 +356,8 @@ namespace PlayFab } /// - /// Retrieves the specified character's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified character's current inventory of virtual goods /// public void GetCharacterInventory(GetCharacterInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -410,18 +416,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetContentDownloadUrl", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Get details about all current running game servers matching the given parameters. - /// - [Obsolete("Use 'MultiplayerServer/ListMultiplayerServers' instead", false)] - public void GetCurrentGames(CurrentGamesRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - PlayFabHttp.MakeApiCall("/Client/GetCurrentGames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in /// the leaderboard @@ -458,18 +452,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetFriendsList", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Get details about the regions hosting game servers matching the given parameters. - /// - [Obsolete("Use 'MultiplayerServer/ListMultiplayerServers' instead", false)] - public void GetGameServerRegions(GameServerRegionsRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - PlayFabHttp.MakeApiCall("/Client/GetGameServerRegions", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard /// @@ -516,9 +498,10 @@ namespace PlayFab } /// - /// For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client - /// completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to - /// create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the + /// client completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the + /// client to create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment. /// public void GetPaymentToken(GetPaymentTokenRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -736,6 +719,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromPSNAccountIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. + /// + public void GetPlayFabIDsFromPSNOnlineIDs(GetPlayFabIDsFromPSNOnlineIDsRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromPSNOnlineIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile /// IDs for the user accounts, available as SteamId in the Steamworks Community API calls. @@ -748,6 +742,18 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona + /// names. + /// + public void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); + PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamNames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for /// the user accounts, available as "_id" from the Twitch API methods (ex: @@ -784,8 +790,9 @@ namespace PlayFab } /// - /// Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still - /// active. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that + /// are still active. /// public void GetPurchase(GetPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -810,7 +817,8 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined /// public void GetStoreItems(GetStoreItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -886,7 +894,8 @@ namespace PlayFab } /// - /// Retrieves the user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the user's current inventory of virtual goods /// public void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1362,23 +1371,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Client/LoginWithXbox", request, AuthType.None, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific - /// active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required - /// parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is - /// found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the - /// availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be - /// GameNotFound. - /// - [Obsolete("Use 'Match/CreateMatchmakingTicket' instead", false)] - public void Matchmake(MatchmakeRequest 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.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); - PlayFabHttp.MakeApiCall("/Client/Matchmake", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time. /// @@ -1391,7 +1383,8 @@ namespace PlayFab } /// - /// Selects a payment option for purchase order created via StartPurchase + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Selects a payment option for purchase order created via StartPurchase /// public void PayForPurchase(PayForPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1402,8 +1395,9 @@ namespace PlayFab } /// - /// Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as well as what - /// the client believes the price to be. This lets the server fail the purchase if the price has changed. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as + /// well as what the client believes the price to be. This lets the server fail the purchase if the price has changed. /// public void PurchaseItem(PurchaseItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1414,7 +1408,8 @@ namespace PlayFab } /// - /// Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the /// Economy->Catalogs tab in the PlayFab Game Manager. /// public void RedeemCoupon(RedeemCouponRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1449,7 +1444,7 @@ namespace PlayFab /// /// Registers a new Playfab user account, returning a session identifier that can subsequently be used for API calls which - /// require an authenticated user. You must supply either a username or an email address. + /// require an authenticated user. You must supply a username and an email address. /// public void RegisterPlayFabUser(RegisterPlayFabUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1542,7 +1537,8 @@ namespace PlayFab } /// - /// Restores all in-app purchases based on the given restore receipt + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Restores all in-app purchases based on the given restore receipt /// public void RestoreIOSPurchases(RestoreIOSPurchasesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1599,7 +1595,8 @@ namespace PlayFab } /// - /// Creates an order for a list of items from the title catalog + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Creates an order for a list of items from the title catalog /// public void StartPurchase(StartPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1610,8 +1607,9 @@ namespace PlayFab } /// - /// Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make + /// a VC balance negative with this API. /// public void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1811,9 +1809,10 @@ namespace PlayFab } /// - /// Opens the specified container, with the specified key (when required), and returns the contents of the opened container. - /// If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will be decremented, - /// consistent with the operation of ConsumeItem. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Opens the specified container, with the specified key (when required), and returns the contents of the + /// opened container. If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will + /// be decremented, consistent with the operation of ConsumeItem. /// public void UnlockContainerInstance(UnlockContainerInstanceRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1824,8 +1823,9 @@ namespace PlayFab } /// - /// Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it using an - /// appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it + /// using an appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are /// consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. /// public void UnlockContainerItem(UnlockContainerItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1931,8 +1931,9 @@ namespace PlayFab } /// - /// Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches the - /// purchased catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches + /// the purchased catalog item /// public void ValidateAmazonIAPReceipt(ValidateAmazonReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1943,7 +1944,8 @@ namespace PlayFab } /// - /// Validates a Google Play purchase and gives the corresponding item to the player. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates a Google Play purchase and gives the corresponding item to the player. /// public void ValidateGooglePlayPurchase(ValidateGooglePlayPurchaseRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1954,8 +1956,9 @@ namespace PlayFab } /// - /// Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the purchased - /// catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the + /// purchased catalog item /// public void ValidateIOSReceipt(ValidateIOSReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1966,8 +1969,9 @@ namespace PlayFab } /// - /// Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it matches the - /// purchased catalog item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it + /// matches the purchased catalog item /// public void ValidateWindowsStoreReceipt(ValidateWindowsReceiptRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientModels.cs b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientModels.cs index 4b5069a4a..5f8ae7464 100644 --- a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabClientModels.cs @@ -613,25 +613,6 @@ namespace PlayFab.ClientModels Specific } - /// - /// Collection filter to include and/or exclude collections with certain key-value pairs. The filter generates a collection - /// set defined by Includes rules and then remove collections that matches the Excludes rules. A collection is considered - /// matching a rule if the rule describes a subset of the collection. - /// - [Serializable] - public class CollectionFilter : PlayFabBaseModel - { - /// - /// List of Exclude rules, with any of which if a collection matches, it is excluded by the filter. - /// - public List Excludes; - /// - /// List of Include rules, with any of which if a collection matches, it is included by the filter, unless it is excluded by - /// one of the Exclude rule - /// - public List Includes; - } - /// /// The final step in the purchasing process, this API finalizes the purchase with the payment provider, where applicable, /// adding virtual goods to the player inventory (including random drop table resolution and recursive addition of bundled @@ -830,18 +811,6 @@ namespace PlayFab.ClientModels public EmailVerificationStatus? VerificationStatus; } - /// - /// A data container - /// - [Serializable] - public class Container_Dictionary_String_String : PlayFabBaseModel - { - /// - /// Content of data - /// - public Dictionary Data; - } - public enum ContinentCode { AF, @@ -850,7 +819,8 @@ namespace PlayFab.ClientModels EU, NA, OC, - SA + SA, + Unknown } public enum CountryCode @@ -1103,7 +1073,8 @@ namespace PlayFab.ClientModels EH, YE, ZM, - ZW + ZW, + Unknown } /// @@ -1294,48 +1265,6 @@ namespace PlayFab.ClientModels ZWD } - [Serializable] - public class CurrentGamesRequest : PlayFabRequestCommon - { - /// - /// Build to match against. - /// - public string BuildVersion; - /// - /// Game mode to look for. - /// - public string GameMode; - /// - /// Region to check for Game Server Instances. - /// - public Region? Region; - /// - /// Statistic name to find statistic-based matches. - /// - public string StatisticName; - /// - /// Filter to include and/or exclude Game Server Instances associated with certain tags. - /// - public CollectionFilter TagFilter; - } - - [Serializable] - public class CurrentGamesResult : PlayFabResultCommon - { - /// - /// number of games running - /// - public int GameCount; - /// - /// array of games found - /// - public List Games; - /// - /// total number of players across all servers - /// - public int PlayerCount; - } - /// /// Any arbitrary information collected by the device /// @@ -1521,7 +1450,7 @@ namespace PlayFab.ClientModels 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; /// @@ -1529,7 +1458,8 @@ namespace PlayFab.ClientModels /// 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; /// @@ -1537,12 +1467,12 @@ namespace PlayFab.ClientModels /// 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; /// @@ -1558,7 +1488,7 @@ namespace PlayFab.ClientModels /// 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; } @@ -1576,104 +1506,6 @@ namespace PlayFab.ClientModels public string PlayFabId; } - [Serializable] - public class GameInfo : PlayFabBaseModel - { - /// - /// build version this server is running - /// - public string BuildVersion; - /// - /// game mode this server is running - /// - public string GameMode; - /// - /// game session custom data - /// - public string GameServerData; - /// - /// game specific string denoting server configuration - /// - public GameInstanceState? GameServerStateEnum; - /// - /// last heartbeat of the game server instance, used in external game server provider mode - /// - public DateTime? LastHeartbeat; - /// - /// unique lobby identifier for this game server - /// - public string LobbyID; - /// - /// maximum players this server can support - /// - public int? MaxPlayers; - /// - /// array of current player IDs on this server - /// - public List PlayerUserIds; - /// - /// region to which this server is associated - /// - public Region? Region; - /// - /// duration in seconds this server has been running - /// - public uint RunTime; - /// - /// IPV4 address of the server - /// - public string ServerIPV4Address; - /// - /// IPV6 address of the server - /// - public string ServerIPV6Address; - /// - /// port number to use for non-http communications with the server - /// - public int? ServerPort; - /// - /// Public DNS name (if any) of the server - /// - public string ServerPublicDNSName; - /// - /// stastic used to match this game in player statistic matchmaking - /// - public string StatisticName; - /// - /// game session tags - /// - public Dictionary Tags; - } - - public enum GameInstanceState - { - Open, - Closed - } - - [Serializable] - public class GameServerRegionsRequest : PlayFabRequestCommon - { - /// - /// version of game server for which stats are being requested - /// - public string BuildVersion; - /// - /// 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; - } - - [Serializable] - public class GameServerRegionsResult : PlayFabResultCommon - { - /// - /// array of regions found matching the request parameters - /// - public List Regions; - } - [Serializable] public class GenericPlayFabIdPair : PlayFabBaseModel { @@ -1966,16 +1798,6 @@ namespace PlayFab.ClientModels /// public ExternalFriendSources? ExternalPlatformFriends; /// - /// Indicates whether Facebook friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeFacebookFriends; - /// - /// Indicates whether Steam service friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeSteamFriends; - /// /// Maximum number of entries to retrieve. Default 10, maximum 100. /// public int? MaxResultsCount; @@ -2039,16 +1861,6 @@ namespace PlayFab.ClientModels /// public ExternalFriendSources? ExternalPlatformFriends; /// - /// Indicates whether Facebook friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeFacebookFriends; - /// - /// Indicates whether Steam service friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeSteamFriends; - /// /// Maximum number of entries to retrieve. Default 10, maximum 100. /// public int? MaxResultsCount; @@ -2089,16 +1901,6 @@ namespace PlayFab.ClientModels /// public ExternalFriendSources? ExternalPlatformFriends; /// - /// Indicates whether Facebook friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeFacebookFriends; - /// - /// Indicates whether Steam service friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeSteamFriends; - /// /// If non-null, this determines which properties of the resulting player profiles to return. For API calls from the client, /// only the allowed client profile properties for the title may be requested. These allowed properties are configured in /// the Game Manager "Client Profile Options" tab in the "Settings" section. @@ -2113,8 +1915,9 @@ namespace PlayFab.ClientModels /// /// If any additional services are queried for the user's friends, those friends who also have a PlayFab account registered /// for the title will be returned in the results. For Facebook, user has to have logged into the title's Facebook app - /// recently, and only friends who also plays this game will be included. For Xbox Live, user has to have logged into the - /// Xbox Live recently, and only friends who also play this game will be included. + /// recently, and only friends who also plays this game will be included. Note: If the user authenticated with + /// AuthenticationToken when calling LoginWithFacebook, instead of AcessToken, an empty list will be returned. For Xbox + /// Live, user has to have logged into the Xbox Live recently, and only friends who also play this game will be included. /// [Serializable] public class GetFriendsListResult : PlayFabResultCommon @@ -2862,6 +2665,32 @@ namespace PlayFab.ClientModels public List Data; } + [Serializable] + public class GetPlayFabIDsFromPSNOnlineIDsRequest : PlayFabRequestCommon + { + /// + /// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. + /// + public int? IssuerId; + /// + /// Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array + /// cannot exceed 2,000 in length. + /// + public List PSNOnlineIDs; + } + + /// + /// For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. + /// + [Serializable] + public class GetPlayFabIDsFromPSNOnlineIDsResult : PlayFabResultCommon + { + /// + /// Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. + /// + public List Data; + } + [Serializable] public class GetPlayFabIDsFromSteamIDsRequest : PlayFabRequestCommon { @@ -2884,6 +2713,29 @@ namespace PlayFab.ClientModels public List Data; } + [Serializable] + public class GetPlayFabIDsFromSteamNamesRequest : PlayFabRequestCommon + { + /// + /// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in + /// length. + /// + public List SteamNames; + } + + /// + /// For Steam identifiers which have not been linked to PlayFab accounts, or if the user has not logged in recently, null + /// will be returned. + /// + [Serializable] + public class GetPlayFabIDsFromSteamNamesResult : PlayFabResultCommon + { + /// + /// Mapping of Steam identifiers to PlayFab identifiers. + /// + public List Data; + } + [Serializable] public class GetPlayFabIDsFromTwitchIDsRequest : PlayFabRequestCommon { @@ -3870,6 +3722,11 @@ namespace PlayFab.ClientModels /// 0x08 should become "08"). /// public string SteamTicket; + /// + /// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string. + /// False if the ticket was generated with ISteamUser::GetAuthSessionTicket(). + /// + public bool? TicketIsServiceSpecific; } [Serializable] @@ -3990,7 +3847,9 @@ namespace PlayFab.ClientModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -4238,7 +4097,8 @@ namespace PlayFab.ClientModels /// same Facebook applications between PlayFab Title IDs, as Facebook provides unique user IDs per application and doing so /// can result in issues with the Facebook ID for the user in their PlayFab account information. If you must re-use an /// application in a new PlayFab Title ID, please be sure to first unlink all accounts from Facebook, or delete all users in - /// the first Title ID. + /// the first Title ID. Note: If the user is authenticated with AuthenticationToken, instead of AccessToken, the + /// GetFriendsList API will return an empty list. /// [Serializable] public class LoginWithFacebookRequest : PlayFabRequestCommon @@ -4248,6 +4108,10 @@ namespace PlayFab.ClientModels /// public string AccessToken; /// + /// Token used for limited login authentication. + /// + public string AuthenticationToken; + /// /// Automatically create a PlayFab account if one is not currently linked to this ID. /// public bool? CreateAccount; @@ -4729,14 +4593,13 @@ namespace PlayFab.ClientModels /// /// Steam sign-in is accomplished with the Steam Session Ticket. More information on the Ticket can be found in the - /// Steamworks SDK, here: https://partner.steamgames.com/documentation/auth (requires sign-in). NOTE: For Steam - /// authentication to work, the title must be configured with the Steam Application ID and Web API Key in the PlayFab Game - /// Manager (under Steam in the Add-ons Marketplace). You can obtain a Web API Key from the Permissions page of any Group - /// associated with your App ID in the Steamworks site. If this is the first time a user has signed in with the Steam - /// account and CreateAccount is set to true, a new PlayFab account will be created and linked to the provided account's - /// Steam ID. In this case, no email or username will be associated with the PlayFab account. Otherwise, if no PlayFab - /// account is linked to the Steam account, an error indicating this will be returned, so that the title can guide the user - /// through creation of a PlayFab account. + /// Steamworks SDK, here: https://partner.steamgames.com/documentation/auth. NOTE: For Steam authentication to work, the + /// title must be configured with the Steam Application ID and Web API Key in the PlayFab Game Manager (under Steam in the + /// Add-ons Marketplace). You can obtain a Web API Key from the Permissions page of any Group associated with your App ID in + /// the Steamworks site. If this is the first time a user has signed in with the Steam account and CreateAccount is set to + /// true, a new PlayFab account will be created and linked to the provided account's Steam ID. In this case, no email or + /// username will be associated with the PlayFab account. Otherwise, if no PlayFab account is linked to the Steam account, + /// an error indicating this will be returned, so that the title can guide the user through creation of a PlayFab account. /// [Serializable] public class LoginWithSteamRequest : PlayFabRequestCommon @@ -4767,6 +4630,11 @@ namespace PlayFab.ClientModels /// public string SteamTicket; /// + /// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string. + /// False if the ticket was generated with ISteamUser::GetAuthSessionTicket(). + /// + public bool? TicketIsServiceSpecific; + /// /// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a /// title has been selected. /// @@ -4870,97 +4738,6 @@ namespace PlayFab.ClientModels public string Message; } - [Serializable] - public class MatchmakeRequest : PlayFabRequestCommon - { - /// - /// Build version to match against. [Note: Required if LobbyId is not specified] - /// - public string BuildVersion; - /// - /// Character to use for stats based matching. Leave null to use account stats. - /// - public string CharacterId; - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// Game mode to match make against. [Note: Required if LobbyId is not specified] - /// - public string GameMode; - /// - /// Lobby identifier to match make against. This is used to select a specific Game Server Instance. - /// - public string LobbyId; - /// - /// Region to match make against. [Note: Required if LobbyId is not specified] - /// - public Region? Region; - /// - /// Start a game session if one with an open slot is not found. Defaults to true. - /// - public bool? StartNewIfNoneFound; - /// - /// Player statistic to use in finding a match. May be null for no stat-based matching. - /// - public string StatisticName; - /// - /// Filter to include and/or exclude Game Server Instances associated with certain Tags - /// - public CollectionFilter TagFilter; - } - - [Serializable] - public class MatchmakeResult : PlayFabResultCommon - { - /// - /// timestamp for when the server will expire, if applicable - /// - public string Expires; - /// - /// unique lobby identifier of the server matched - /// - public string LobbyID; - /// - /// time in milliseconds the application is configured to wait on matchmaking results - /// - public int? PollWaitTimeMS; - /// - /// IPV4 address of the server - /// - public string ServerIPV4Address; - /// - /// IPV6 address of the server - /// - public string ServerIPV6Address; - /// - /// port number to use for non-http communications with the server - /// - public int? ServerPort; - /// - /// Public DNS name (if any) of the server - /// - public string ServerPublicDNSName; - /// - /// result of match making process - /// - public MatchmakeStatus? Status; - /// - /// server authorization ticket (used by RedeemMatchmakerTicket to validate user insertion into the game) - /// - public string Ticket; - } - - public enum MatchmakeStatus - { - Complete, - Waiting, - GameNotFound, - NoAvailableSlots, - SessionClosed - } - [Serializable] public class MembershipModel : PlayFabBaseModel { @@ -5441,6 +5218,20 @@ namespace PlayFab.ClientModels public string PSNAccountId; } + [Serializable] + public class PSNOnlinePlayFabIdPair : PlayFabBaseModel + { + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + /// identifier. + /// + public string PlayFabId; + /// + /// Unique PlayStation :tm: Network identifier for a user. + /// + public string PSNOnlineId; + } + /// /// Please note that the processing time for inventory grants and purchases increases fractionally the more items are in the /// inventory, and the more items are in the grant/purchase operation (with each item in a bundle being a distinct add). @@ -5582,38 +5373,6 @@ namespace PlayFab.ClientModels public string RedirectUri; } - public enum Region - { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - [Serializable] - public class RegionInfo : PlayFabBaseModel - { - /// - /// indicates whether the server specified is available in this region - /// - public bool Available; - /// - /// name of the region - /// - public string Name; - /// - /// url to ping to get roundtrip time - /// - public string PingUrl; - /// - /// unique identifier for the region - /// - public Region? Region; - } - /// /// The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: /// https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart @@ -6179,6 +5938,19 @@ namespace PlayFab.ClientModels public uint Version; } + [Serializable] + public class SteamNamePlayFabIdPair : PlayFabBaseModel + { + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier. + /// + public string PlayFabId; + /// + /// Unique Steam identifier for a user, also known as Steam persona name. + /// + public string SteamName; + } + [Serializable] public class SteamPlayFabIdPair : PlayFabBaseModel { @@ -7081,6 +6853,10 @@ namespace PlayFab.ClientModels /// public UserPsnInfo PsnInfo; /// + /// Server Custom ID information, if a server custom ID has been assigned + /// + public UserServerCustomIdInfo ServerCustomIdInfo; + /// /// User Steam information, if a Steam account has been linked /// public UserSteamInfo SteamInfo; @@ -7312,7 +7088,9 @@ namespace PlayFab.ClientModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -7337,6 +7115,15 @@ namespace PlayFab.ClientModels public string PsnOnlineId; } + [Serializable] + public class UserServerCustomIdInfo : PlayFabBaseModel + { + /// + /// Custom ID + /// + public string CustomId; + } + [Serializable] public class UserSettings : PlayFabBaseModel { diff --git a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabEvents.cs index 78e95c709..48bba7da1 100644 --- a/Assets/ThirdParty/PlayFabSDK/Client/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Client/PlayFabEvents.cs @@ -63,16 +63,12 @@ namespace PlayFab.Events public event PlayFabResultEvent OnGetCharacterStatisticsResultEvent; public event PlayFabRequestEvent OnGetContentDownloadUrlRequestEvent; public event PlayFabResultEvent OnGetContentDownloadUrlResultEvent; - public event PlayFabRequestEvent OnGetCurrentGamesRequestEvent; - public event PlayFabResultEvent OnGetCurrentGamesResultEvent; public event PlayFabRequestEvent OnGetFriendLeaderboardRequestEvent; public event PlayFabResultEvent OnGetFriendLeaderboardResultEvent; public event PlayFabRequestEvent OnGetFriendLeaderboardAroundPlayerRequestEvent; public event PlayFabResultEvent OnGetFriendLeaderboardAroundPlayerResultEvent; public event PlayFabRequestEvent OnGetFriendsListRequestEvent; public event PlayFabResultEvent OnGetFriendsListResultEvent; - public event PlayFabRequestEvent OnGetGameServerRegionsRequestEvent; - public event PlayFabResultEvent OnGetGameServerRegionsResultEvent; public event PlayFabRequestEvent OnGetLeaderboardRequestEvent; public event PlayFabResultEvent OnGetLeaderboardResultEvent; public event PlayFabRequestEvent OnGetLeaderboardAroundCharacterRequestEvent; @@ -119,8 +115,12 @@ namespace PlayFab.Events public event PlayFabResultEvent OnGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent; public event PlayFabRequestEvent OnGetPlayFabIDsFromPSNAccountIDsRequestEvent; public event PlayFabResultEvent OnGetPlayFabIDsFromPSNAccountIDsResultEvent; + public event PlayFabRequestEvent OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent; + public event PlayFabResultEvent OnGetPlayFabIDsFromPSNOnlineIDsResultEvent; public event PlayFabRequestEvent OnGetPlayFabIDsFromSteamIDsRequestEvent; public event PlayFabResultEvent OnGetPlayFabIDsFromSteamIDsResultEvent; + public event PlayFabRequestEvent OnGetPlayFabIDsFromSteamNamesRequestEvent; + public event PlayFabResultEvent OnGetPlayFabIDsFromSteamNamesResultEvent; public event PlayFabRequestEvent OnGetPlayFabIDsFromTwitchIDsRequestEvent; public event PlayFabResultEvent OnGetPlayFabIDsFromTwitchIDsResultEvent; public event PlayFabRequestEvent OnGetPlayFabIDsFromXboxLiveIDsRequestEvent; @@ -208,8 +208,6 @@ namespace PlayFab.Events public event PlayFabRequestEvent OnLoginWithSteamRequestEvent; public event PlayFabRequestEvent OnLoginWithTwitchRequestEvent; public event PlayFabRequestEvent OnLoginWithXboxRequestEvent; - public event PlayFabRequestEvent OnMatchmakeRequestEvent; - public event PlayFabResultEvent OnMatchmakeResultEvent; public event PlayFabRequestEvent OnOpenTradeRequestEvent; public event PlayFabResultEvent OnOpenTradeResultEvent; public event PlayFabRequestEvent OnPayForPurchaseRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptAPI.cs b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptAPI.cs index 1ea0efdd9..d5c2bd351 100644 --- a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptAPI.cs @@ -81,6 +81,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/CloudScript/GetFunction", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Lists all currently registered Event Hub triggered Azure Functions for a given title. + /// + public static void ListEventHubFunctions(ListFunctionsRequest 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("/CloudScript/ListEventHubFunctions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Lists all currently registered Azure Functions for a given title. /// @@ -172,6 +185,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/CloudScript/PostFunctionResultForScheduledTask", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Registers an event hub triggered Azure Function with a title. + /// + public static void RegisterEventHubFunction(RegisterEventHubFunctionRequest 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("/CloudScript/RegisterEventHubFunction", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Registers an HTTP triggered Azure function with a title. /// diff --git a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptInstanceAPI.cs index f9dbdda62..5025b801b 100644 --- a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptInstanceAPI.cs @@ -86,6 +86,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/CloudScript/GetFunction", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Lists all currently registered Event Hub triggered Azure Functions for a given title. + /// + public void ListEventHubFunctions(ListFunctionsRequest 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("/CloudScript/ListEventHubFunctions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Lists all currently registered Azure Functions for a given title. /// @@ -163,6 +174,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/CloudScript/PostFunctionResultForScheduledTask", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Registers an event hub triggered Azure Function with a title. + /// + public void RegisterEventHubFunction(RegisterEventHubFunctionRequest 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("/CloudScript/RegisterEventHubFunction", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Registers an HTTP triggered Azure function with a title. /// diff --git a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs index ac61bbfe3..1eab23ccb 100644 --- a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabCloudScriptModels.cs @@ -54,7 +54,8 @@ namespace PlayFab.CloudScriptModels EU, NA, OC, - SA + SA, + Unknown } public enum CountryCode @@ -307,7 +308,8 @@ namespace PlayFab.CloudScriptModels EH, YE, ZM, - ZW + ZW, + Unknown } public enum EmailVerificationStatus @@ -338,6 +340,23 @@ namespace PlayFab.CloudScriptModels public string Type; } + [Serializable] + public class EventHubFunctionModel : PlayFabBaseModel + { + /// + /// The connection string for the event hub. + /// + public string ConnectionString; + /// + /// The name of the event hub that triggers the Azure Function. + /// + public string EventHubName; + /// + /// The name the function was registered under. + /// + public string FunctionName; + } + [Serializable] public class ExecuteCloudScriptResult : PlayFabResultCommon { @@ -585,6 +604,15 @@ namespace PlayFab.CloudScriptModels public string Username; } + [Serializable] + public class ListEventHubFunctionsResult : PlayFabResultCommon + { + /// + /// The list of EventHub triggered functions that are currently registered for the title. + /// + public List Functions; + } + /// /// A title can have many functions, ListHttpFunctions will return a list of all the currently registered HTTP triggered /// functions for a given title. @@ -673,7 +701,9 @@ namespace PlayFab.CloudScriptModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -958,6 +988,31 @@ namespace PlayFab.CloudScriptModels public string QueueName; } + /// + /// A title can have many functions, RegisterEventHubFunction associates a function name with an event hub name and + /// connection string. + /// + [Serializable] + public class RegisterEventHubFunctionRequest : PlayFabRequestCommon + { + /// + /// A connection string for the namespace of the event hub for the Azure Function. + /// + public string ConnectionString; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the event hub for the Azure Function. + /// + public string EventHubName; + /// + /// The name of the function to register + /// + public string FunctionName; + } + [Serializable] public class RegisterHttpFunctionRequest : PlayFabRequestCommon { @@ -1092,7 +1147,8 @@ namespace PlayFab.CloudScriptModels public enum TriggerType { HTTP, - Queue + Queue, + EventHub } [Serializable] diff --git a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabEvents.cs index 2ae296101..bec3ba15b 100644 --- a/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/CloudScript/PlayFabEvents.cs @@ -11,6 +11,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnCloudScriptExecuteFunctionResultEvent; public event PlayFabRequestEvent OnCloudScriptGetFunctionRequestEvent; public event PlayFabResultEvent OnCloudScriptGetFunctionResultEvent; + public event PlayFabRequestEvent OnCloudScriptListEventHubFunctionsRequestEvent; + public event PlayFabResultEvent OnCloudScriptListEventHubFunctionsResultEvent; public event PlayFabRequestEvent OnCloudScriptListFunctionsRequestEvent; public event PlayFabResultEvent OnCloudScriptListFunctionsResultEvent; public event PlayFabRequestEvent OnCloudScriptListHttpFunctionsRequestEvent; @@ -25,6 +27,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnCloudScriptPostFunctionResultForPlayerTriggeredActionResultEvent; public event PlayFabRequestEvent OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent; public event PlayFabResultEvent OnCloudScriptPostFunctionResultForScheduledTaskResultEvent; + public event PlayFabRequestEvent OnCloudScriptRegisterEventHubFunctionRequestEvent; + public event PlayFabResultEvent OnCloudScriptRegisterEventHubFunctionResultEvent; public event PlayFabRequestEvent OnCloudScriptRegisterHttpFunctionRequestEvent; public event PlayFabResultEvent OnCloudScriptRegisterHttpFunctionResultEvent; public event PlayFabRequestEvent OnCloudScriptRegisterQueuedFunctionRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyAPI.cs b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyAPI.cs index b1683dc45..6f57f1518 100644 --- a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyAPI.cs @@ -33,7 +33,7 @@ namespace PlayFab } /// - /// Add inventory items. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is uncapped. + /// Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped. /// public static void AddInventoryItems(AddInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -128,11 +128,10 @@ namespace PlayFab } /// - /// Execute a list of Inventory Operations. A maximum list of 10 operations can be performed by a single request. There is - /// also a limit to 250 items that can be modified/added in a single request. For example, adding a bundle with 50 items + /// Execute a list of Inventory Operations. A maximum list of 50 operations can be performed by a single request. There is + /// also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items /// counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced - /// RPS compared to an individual inventory operation with Player Entities limited to 15 requests in 90 seconds and Title - /// Entities limited to 500 requests in 10 seconds. + /// RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds. /// public static void ExecuteInventoryOperations(ExecuteInventoryOperationsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -144,6 +143,22 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Inventory/ExecuteInventoryOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Transfer a list of inventory items. A maximum list of 50 operations can be performed by a single request. When the + /// response code is 202, one or more operations did not complete within the timeframe of the request. You can identify the + /// pending operations by looking for OperationStatus = 'InProgress'. You can check on the operation status at anytime + /// within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API. + /// + public static void ExecuteTransferOperations(ExecuteTransferOperationsRequest 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("/Inventory/ExecuteTransferOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Gets the configuration for the catalog. Only Title Entities can call this API. There is a limit of 100 requests in 10 /// seconds for this API. More information about the Catalog Config can be found here: @@ -218,8 +233,9 @@ namespace PlayFab } /// - /// Get Inventory Collection Ids. Up to 50 Ids can be returned at once. You can use continuation tokens to paginate through - /// results that return greater than the limit. It can take a few seconds for new collection Ids to show up. + /// Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can + /// use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for + /// new collection Ids to show up. /// public static void GetInventoryCollectionIds(GetInventoryCollectionIdsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -244,6 +260,20 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Inventory/GetInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime + /// within 1 day of the request by passing the TransactionToken to the this API. + /// + public static void GetInventoryOperationStatus(GetInventoryOperationStatusRequest 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("/Inventory/GetInventoryOperationStatus", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Retrieves an item from the public catalog. GetItem does not work off a cache of the Catalog and should be used when /// trying to get recent item updates. However, please note that item references data is cached and may take a few moments @@ -359,10 +389,9 @@ namespace PlayFab } /// - /// Get transaction history for a player. Up to 50 Events can be returned at once. You can use continuation tokens to + /// Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to /// paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than - /// getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds and Title Entities having - /// a limit of 100 requests in 10 seconds. + /// getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds. /// public static void GetTransactionHistory(GetTransactionHistoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -389,7 +418,7 @@ namespace PlayFab } /// - /// Purchase an item or bundle. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is + /// Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is /// uncapped. /// public static void PurchaseInventoryItems(PurchaseInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -591,8 +620,11 @@ namespace PlayFab } /// - /// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer is in - /// progress and will complete soon. More information about item transfer scenarios can be found here: + /// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not + /// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus = + /// 'InProgress'. You can check on the operation status at anytime within 1 day of the request by passing the + /// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found + /// here: /// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items /// public static void TransferInventoryItems(TransferInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) diff --git a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs index d2e8b07ba..ec404901c 100644 --- a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs @@ -52,7 +52,7 @@ namespace PlayFab } /// - /// Add inventory items. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is uncapped. + /// Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped. /// public void AddInventoryItems(AddInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -133,11 +133,10 @@ namespace PlayFab } /// - /// Execute a list of Inventory Operations. A maximum list of 10 operations can be performed by a single request. There is - /// also a limit to 250 items that can be modified/added in a single request. For example, adding a bundle with 50 items + /// Execute a list of Inventory Operations. A maximum list of 50 operations can be performed by a single request. There is + /// also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items /// counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced - /// RPS compared to an individual inventory operation with Player Entities limited to 15 requests in 90 seconds and Title - /// Entities limited to 500 requests in 10 seconds. + /// RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds. /// public void ExecuteInventoryOperations(ExecuteInventoryOperationsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -147,6 +146,20 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Inventory/ExecuteInventoryOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Transfer a list of inventory items. A maximum list of 50 operations can be performed by a single request. When the + /// response code is 202, one or more operations did not complete within the timeframe of the request. You can identify the + /// pending operations by looking for OperationStatus = 'InProgress'. You can check on the operation status at anytime + /// within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API. + /// + public void ExecuteTransferOperations(ExecuteTransferOperationsRequest 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("/Inventory/ExecuteTransferOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Gets the configuration for the catalog. Only Title Entities can call this API. There is a limit of 100 requests in 10 /// seconds for this API. More information about the Catalog Config can be found here: @@ -211,8 +224,9 @@ namespace PlayFab } /// - /// Get Inventory Collection Ids. Up to 50 Ids can be returned at once. You can use continuation tokens to paginate through - /// results that return greater than the limit. It can take a few seconds for new collection Ids to show up. + /// Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can + /// use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for + /// new collection Ids to show up. /// public void GetInventoryCollectionIds(GetInventoryCollectionIdsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -233,6 +247,18 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Inventory/GetInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime + /// within 1 day of the request by passing the TransactionToken to the this API. + /// + public void GetInventoryOperationStatus(GetInventoryOperationStatusRequest 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("/Inventory/GetInventoryOperationStatus", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Retrieves an item from the public catalog. GetItem does not work off a cache of the Catalog and should be used when /// trying to get recent item updates. However, please note that item references data is cached and may take a few moments @@ -332,10 +358,9 @@ namespace PlayFab } /// - /// Get transaction history for a player. Up to 50 Events can be returned at once. You can use continuation tokens to + /// Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to /// paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than - /// getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds and Title Entities having - /// a limit of 100 requests in 10 seconds. + /// getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds. /// public void GetTransactionHistory(GetTransactionHistoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -358,7 +383,7 @@ namespace PlayFab } /// - /// Purchase an item or bundle. Up to 3500 stacks of items can be added to a single inventory collection. Stack size is + /// Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is /// uncapped. /// public void PurchaseInventoryItems(PurchaseInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -530,8 +555,11 @@ namespace PlayFab } /// - /// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer is in - /// progress and will complete soon. More information about item transfer scenarios can be found here: + /// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not + /// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus = + /// 'InProgress'. You can check on the operation status at anytime within 1 day of the request by passing the + /// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found + /// here: /// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items /// public void TransferInventoryItems(TransferInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) diff --git a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyModels.cs b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyModels.cs index b41a75b1f..6c73d3496 100644 --- a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEconomyModels.cs @@ -13,6 +13,10 @@ namespace PlayFab.EconomyModels /// public int? Amount; /// + /// The duration to add to the current item expiration date. + /// + public double? DurationInSeconds; + /// /// The inventory item the operation applies to. /// public InventoryItemReference Item; @@ -152,7 +156,11 @@ namespace PlayFab.EconomyModels /// public List Platforms; /// - /// A set of player entity keys that are allowed to review content. There is a maximum of 64 entities that can be added. + /// The set of configuration that only applies to Ratings and Reviews. + /// + public ReviewConfig Review; + /// + /// A set of player entity keys that are allowed to review content. There is a maximum of 128 entities that can be added. /// public List ReviewerEntities; /// @@ -278,7 +286,8 @@ namespace PlayFab.EconomyModels /// public Dictionary Title; /// - /// The high-level type of the item. The following item types are supported: bundle, catalogItem, currency, store, ugc. + /// The high-level type of the item. The following item types are supported: bundle, catalogItem, currency, store, ugc, + /// subscription. /// public string Type; } @@ -308,6 +317,10 @@ namespace PlayFab.EconomyModels /// public List Amounts; /// + /// The per-unit amount this price can be used to purchase. + /// + public int? UnitAmount; + /// /// The per-unit duration this price can be used to purchase. The maximum duration is 100 years. /// public double? UnitDurationInSeconds; @@ -386,6 +399,15 @@ namespace PlayFab.EconomyModels public List Tags; } + [Serializable] + public class CategoryRatingConfig : PlayFabBaseModel + { + /// + /// Name of the category. + /// + public string Name; + } + public enum ConcernCategory { None, @@ -687,7 +709,8 @@ namespace PlayFab.EconomyModels EH, YE, ZM, - ZW + ZW, + Unknown } /// @@ -976,7 +999,7 @@ namespace PlayFab.EconomyModels public string IdempotencyId; /// /// The operations to run transactionally. The operations will be executed in-order sequentially and will succeed or fail as - /// a batch. Up to 10 operations can be added. + /// a batch. Up to 50 operations can be added. /// public List Operations; } @@ -999,6 +1022,86 @@ namespace PlayFab.EconomyModels public List TransactionIds; } + /// + /// Transfer the specified list of inventory items of an entity's container Id to another entity's container Id. + /// + [Serializable] + public class ExecuteTransferOperationsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The inventory collection id the request is transferring from. (Default="default") + /// + public string GivingCollectionId; + /// + /// The entity the request is transferring from. Set to the caller by default. + /// + public EntityKey GivingEntity; + /// + /// ETags are used for concurrency checking when updating resources. More information about using ETags can be found here: + /// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/etags + /// + public string GivingETag; + /// + /// The idempotency id for the request. + /// + public string IdempotencyId; + /// + /// The transfer operations to run transactionally. The operations will be executed in-order sequentially and will succeed + /// or fail as a batch. Up to 50 operations can be added. + /// + public List Operations; + /// + /// The inventory collection id the request is transferring to. (Default="default") + /// + public string ReceivingCollectionId; + /// + /// The entity the request is transferring to. Set to the caller by default. + /// + public EntityKey ReceivingEntity; + } + + [Serializable] + public class ExecuteTransferOperationsResponse : PlayFabResultCommon + { + /// + /// ETags are used for concurrency checking when updating resources (before transferring from). This value will be empty if + /// the operation has not completed yet. More information about using ETags can be found here: + /// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/etags + /// + public string GivingETag; + /// + /// The ids of transactions that occurred as a result of the request's giving action. + /// + public List GivingTransactionIds; + /// + /// The Idempotency ID for this request. + /// + public string IdempotencyId; + /// + /// The transfer operation status. Possible values are 'InProgress' or 'Completed'. If the operation has completed, the + /// response code will be 200. Otherwise, it will be 202. + /// + public string OperationStatus; + /// + /// The token that can be used to get the status of the transfer operation. This will only have a value if OperationStatus + /// is 'InProgress'. + /// + public string OperationToken; + /// + /// ETags are used for concurrency checking when updating resources (before transferring to). This value will be empty if + /// the operation has not completed yet. + /// + public string ReceivingETag; + /// + /// The ids of transactions that occurred as a result of the request's receiving action. + /// + public List ReceivingTransactionIds; + } + [Serializable] public class FileConfig : PlayFabBaseModel { @@ -1269,6 +1372,35 @@ namespace PlayFab.EconomyModels public List Items; } + /// + /// Get the status of an Inventory Operation using an OperationToken. + /// + [Serializable] + public class GetInventoryOperationStatusRequest : PlayFabRequestCommon + { + /// + /// The id of the entity's collection to perform this action on. (Default="default") + /// + public string CollectionId; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The entity to perform this action on. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetInventoryOperationStatusResponse : PlayFabResultCommon + { + /// + /// The inventory operation status. + /// + public string OperationStatus; + } + /// /// Given an item, return a set of bundles and stores containing the item. /// @@ -1572,10 +1704,18 @@ namespace PlayFab.EconomyModels /// public EntityKey Entity; /// - /// An OData filter used to refine the TransactionHistory. Transaction property 'timestamp' can be used in the filter. For - /// example: "timestamp ge 'timestamp ge'" By default, a 6 month timespan from the current date is used. + /// An OData filter used to refine the TransactionHistory. Transaction properties 'timestamp', 'transactionid', 'apiname' + /// and 'operationtype' can be used in the filter. Properties 'transactionid', 'apiname', and 'operationtype' cannot be used + /// together in a single request. The 'timestamp' property can be combined with 'apiname' or 'operationtype' in a single + /// request. For example: "timestamp ge 2023-06-20T23:30Z" or "transactionid eq '10'" or "(timestamp ge 2023-06-20T23:30Z) + /// and (apiname eq 'AddInventoryItems')". By default, a 6 month timespan from the current date is used. /// public string Filter; + /// + /// An OData orderby to order TransactionHistory results. The only supported values are 'timestamp asc' or 'timestamp desc'. + /// Default orderby is 'timestamp asc' + /// + public string OrderBy; } [Serializable] @@ -1767,6 +1907,16 @@ namespace PlayFab.EconomyModels { } + [Serializable] + public class Permissions : PlayFabBaseModel + { + /// + /// The list of ids of Segments that the a player can be in to purchase from the store. When a value is provided, the player + /// must be in at least one of the segments listed for the purchase to be allowed. + /// + public List SegmentIds; + } + /// /// The call kicks off a workflow to publish the item to the public catalog. The Publish Status API should be used to /// monitor the publish job. @@ -1931,6 +2081,11 @@ namespace PlayFab.EconomyModels { } + [Serializable] + public class PurchaseOverridesInfo : PlayFabBaseModel + { + } + [Serializable] public class PurchasePriceAmount : PlayFabBaseModel { @@ -1981,6 +2136,11 @@ namespace PlayFab.EconomyModels public int? TotalCount; } + [Serializable] + public class RealMoneyPriceDetails : PlayFabBaseModel + { + } + /// /// Redeem items from the Apple App Store. /// @@ -2086,7 +2246,8 @@ namespace PlayFab.EconomyModels /// public EntityKey Entity; /// - /// Xbox Token used for delegated business partner authentication. + /// Xbox Token used for delegated business partner authentication. Token provided by the Xbox Live SDK method + /// GetTokenAndSignatureAsync("POST", "https://playfabapi.com/", ""). /// public string XboxToken; } @@ -2156,7 +2317,7 @@ namespace PlayFab.EconomyModels public class RedeemPlayStationStoreInventoryItemsRequest : PlayFabRequestCommon { /// - /// Authorization code provided by the PlayStation OAuth provider. + /// Auth code returned by PlayStation :tm: Network OAuth system. /// public string AuthorizationCode; /// @@ -2172,6 +2333,10 @@ namespace PlayFab.EconomyModels /// public EntityKey Entity; /// + /// Redirect URI supplied to PlayStation :tm: Network when requesting an auth code. + /// + public string RedirectUri; + /// /// Optional Service Label to pass into the request. /// public string ServiceLabel; @@ -2243,27 +2408,27 @@ namespace PlayFab.EconomyModels /// public string FailureDetails; /// + /// The Marketplace Alternate ID being redeemed. + /// + public string MarketplaceAlternateId; + /// /// The transaction id in the external marketplace. /// public string MarketplaceTransactionId; - /// - /// The ID of the offer being redeemed. - /// - public string OfferId; } [Serializable] public class RedemptionSuccess : PlayFabBaseModel { + /// + /// The Marketplace Alternate ID being redeemed. + /// + public string MarketplaceAlternateId; /// /// The transaction id in the external marketplace. /// public string MarketplaceTransactionId; /// - /// The ID of the offer being redeemed. - /// - public string OfferId; - /// /// The timestamp for when the redeem was completed. /// public DateTime SuccessTimestamp; @@ -2347,6 +2512,10 @@ namespace PlayFab.EconomyModels [Serializable] public class Review : PlayFabBaseModel { + /// + /// The star rating associated with each selected category in this review. + /// + public Dictionary CategoryRatings; /// /// The number of negative helpfulness votes for this review. /// @@ -2401,6 +2570,15 @@ namespace PlayFab.EconomyModels public string Title; } + [Serializable] + public class ReviewConfig : PlayFabBaseModel + { + /// + /// A set of categories that can be applied toward ratings and reviews. + /// + public List CategoryRatings; + } + [Serializable] public class ReviewItemRequest : PlayFabRequestCommon { @@ -2482,6 +2660,10 @@ namespace PlayFab.EconomyModels /// public string Filter; /// + /// The locale to be returned in the result. + /// + public string Language; + /// /// An OData orderBy used to order the results of the search query. For example: "rating/average asc" /// public string OrderBy; @@ -2551,6 +2733,10 @@ namespace PlayFab.EconomyModels /// public FilterOptions FilterOptions; /// + /// The permissions that control which players can purchase from the store. + /// + public Permissions Permissions; + /// /// The global prices utilized in the store. These options are mutually exclusive with price options in item references. /// public CatalogPriceOptionsOverride PriceOptionsOverride; @@ -2775,6 +2961,10 @@ namespace PlayFab.EconomyModels /// public double? DurationInSeconds; /// + /// The friendly id of the items in this transaction. + /// + public string ItemFriendlyId; + /// /// The item id of the items in this transaction. /// public string ItemId; @@ -2795,6 +2985,10 @@ namespace PlayFab.EconomyModels [Serializable] public class TransactionPurchaseDetails : PlayFabBaseModel { + /// + /// The friendly id of the Store the item was purchased from or null. + /// + public string StoreFriendlyId; /// /// The id of the Store the item was purchased from or null. /// @@ -2944,6 +3138,16 @@ namespace PlayFab.EconomyModels /// public string IdempotencyId; /// + /// The transfer operation status. Possible values are 'InProgress' or 'Completed'. If the operation has completed, the + /// response code will be 200. Otherwise, it will be 202. + /// + public string OperationStatus; + /// + /// The token that can be used to get the status of the transfer operation. This will only have a value if OperationStatus + /// is 'InProgress'. + /// + public string OperationToken; + /// /// The ids of transactions that occurred as a result of the request's receiving action. /// public List ReceivingTransactionIds; diff --git a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEvents.cs index 608b894fb..f9570519a 100644 --- a/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Economy/PlayFabEvents.cs @@ -21,6 +21,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnEconomyDeleteItemResultEvent; public event PlayFabRequestEvent OnEconomyExecuteInventoryOperationsRequestEvent; public event PlayFabResultEvent OnEconomyExecuteInventoryOperationsResultEvent; + public event PlayFabRequestEvent OnEconomyExecuteTransferOperationsRequestEvent; + public event PlayFabResultEvent OnEconomyExecuteTransferOperationsResultEvent; public event PlayFabRequestEvent OnEconomyGetCatalogConfigRequestEvent; public event PlayFabResultEvent OnEconomyGetCatalogConfigResultEvent; public event PlayFabRequestEvent OnEconomyGetDraftItemRequestEvent; @@ -35,6 +37,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnEconomyGetInventoryCollectionIdsResultEvent; public event PlayFabRequestEvent OnEconomyGetInventoryItemsRequestEvent; public event PlayFabResultEvent OnEconomyGetInventoryItemsResultEvent; + public event PlayFabRequestEvent OnEconomyGetInventoryOperationStatusRequestEvent; + public event PlayFabResultEvent OnEconomyGetInventoryOperationStatusResultEvent; public event PlayFabRequestEvent OnEconomyGetItemRequestEvent; public event PlayFabResultEvent OnEconomyGetItemResultEvent; public event PlayFabRequestEvent OnEconomyGetItemContainersRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEvents.cs index fcc00a3e3..ced127966 100644 --- a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEvents.cs @@ -5,6 +5,16 @@ namespace PlayFab.Events { public partial class PlayFabEvents { + public event PlayFabRequestEvent OnEventsCreateTelemetryKeyRequestEvent; + public event PlayFabResultEvent OnEventsCreateTelemetryKeyResultEvent; + public event PlayFabRequestEvent OnEventsDeleteTelemetryKeyRequestEvent; + public event PlayFabResultEvent OnEventsDeleteTelemetryKeyResultEvent; + public event PlayFabRequestEvent OnEventsGetTelemetryKeyRequestEvent; + public event PlayFabResultEvent OnEventsGetTelemetryKeyResultEvent; + public event PlayFabRequestEvent OnEventsListTelemetryKeysRequestEvent; + public event PlayFabResultEvent OnEventsListTelemetryKeysResultEvent; + public event PlayFabRequestEvent OnEventsSetTelemetryKeyActiveRequestEvent; + public event PlayFabResultEvent OnEventsSetTelemetryKeyActiveResultEvent; public event PlayFabRequestEvent OnEventsWriteEventsRequestEvent; public event PlayFabResultEvent OnEventsWriteEventsResultEvent; public event PlayFabRequestEvent OnEventsWriteTelemetryEventsRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsAPI.cs b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsAPI.cs index b5c70e447..46ecbc6d9 100644 --- a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsAPI.cs @@ -33,6 +33,71 @@ namespace PlayFab PlayFabSettings.staticPlayer.ForgetAllCredentials(); } + /// + /// Creates a new telemetry key for the title. + /// + public static void CreateTelemetryKey(CreateTelemetryKeyRequest 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("/Event/CreateTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes a telemetry key configured for the title. + /// + public static void DeleteTelemetryKey(DeleteTelemetryKeyRequest 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("/Event/DeleteTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets information about a telemetry key configured for the title. + /// + public static void GetTelemetryKey(GetTelemetryKeyRequest 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("/Event/GetTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Lists all telemetry keys configured for the title. + /// + public static void ListTelemetryKeys(ListTelemetryKeysRequest 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("/Event/ListTelemetryKeys", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Sets a telemetry key to the active or deactivated state. + /// + public static void SetTelemetryKeyActive(SetTelemetryKeyActiveRequest 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("/Event/SetTelemetryKeyActive", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'. /// @@ -60,7 +125,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Event/WriteTelemetryEvents", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start + /// with 'custom.' + /// + public static void WriteTelemetryEventsWithTelemetryKey(WriteEventsRequest 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.IsTelemetryKeyProvided()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must provide a telemetry key to call this method"); + PlayFabHttp.MakeApiCall("/Event/WriteTelemetryEvents", request, AuthType.TelemetryKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + } } diff --git a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsInstanceAPI.cs index d07b2ce2c..63d0e1042 100644 --- a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsInstanceAPI.cs @@ -52,6 +52,61 @@ namespace PlayFab } } + /// + /// Creates a new telemetry key for the title. + /// + public void CreateTelemetryKey(CreateTelemetryKeyRequest 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("/Event/CreateTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes a telemetry key configured for the title. + /// + public void DeleteTelemetryKey(DeleteTelemetryKeyRequest 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("/Event/DeleteTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets information about a telemetry key configured for the title. + /// + public void GetTelemetryKey(GetTelemetryKeyRequest 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("/Event/GetTelemetryKey", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Lists all telemetry keys configured for the title. + /// + public void ListTelemetryKeys(ListTelemetryKeysRequest 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("/Event/ListTelemetryKeys", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Sets a telemetry key to the active or deactivated state. + /// + public void SetTelemetryKeyActive(SetTelemetryKeyActiveRequest 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("/Event/SetTelemetryKeyActive", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'. /// @@ -74,7 +129,19 @@ namespace PlayFab if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method"); PlayFabHttp.MakeApiCall("/Event/WriteTelemetryEvents", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start + /// with 'custom.' + /// + public void WriteTelemetryEventsWithTelemetryKey(WriteEventsRequest 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.IsTelemetryKeyProvided()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must provide a telemetry key to call this method"); + PlayFabHttp.MakeApiCall("/Event/WriteTelemetryEvents", request, AuthType.TelemetryKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + } } diff --git a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsModels.cs b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsModels.cs index 131795fe4..4375615e8 100644 --- a/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Events/PlayFabEventsModels.cs @@ -5,6 +5,58 @@ using PlayFab.SharedModels; namespace PlayFab.EventsModels { + [Serializable] + public class CreateTelemetryKeyRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The name of the new key. Telemetry key names must be unique within the scope of the title. + /// + public string KeyName; + } + + [Serializable] + public class CreateTelemetryKeyResponse : PlayFabResultCommon + { + /// + /// Details about the newly created telemetry key. + /// + public TelemetryKeyDetails NewKeyDetails; + } + + [Serializable] + public class DeleteTelemetryKeyRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The name of the key to delete. + /// + public string KeyName; + } + + [Serializable] + public class DeleteTelemetryKeyResponse : PlayFabResultCommon + { + /// + /// Indicates whether or not the key was deleted. If false, no key with that name existed. + /// + public bool WasKeyDeleted; + } + /// /// Combined entity type and ID structure which uniquely identifies a single entity. /// @@ -63,6 +115,113 @@ namespace PlayFab.EventsModels public string PayloadJSON; } + [Serializable] + public class GetTelemetryKeyRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The name of the key to retrieve. + /// + public string KeyName; + } + + [Serializable] + public class GetTelemetryKeyResponse : PlayFabResultCommon + { + /// + /// Details about the requested telemetry key. + /// + public TelemetryKeyDetails KeyDetails; + } + + [Serializable] + public class ListTelemetryKeysRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class ListTelemetryKeysResponse : PlayFabResultCommon + { + /// + /// The telemetry keys configured for the title. + /// + public List KeyDetails; + } + + [Serializable] + public class SetTelemetryKeyActiveRequest : PlayFabRequestCommon + { + /// + /// Whether to set the key to active (true) or deactivated (false). + /// + public bool Active; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// The name of the key to update. + /// + public string KeyName; + } + + [Serializable] + public class SetTelemetryKeyActiveResponse : PlayFabResultCommon + { + /// + /// The most current details about the telemetry key that was to be updated. + /// + public TelemetryKeyDetails KeyDetails; + /// + /// Indicates whether or not the key was updated. If false, the key was already in the desired state. + /// + public bool WasKeyUpdated; + } + + [Serializable] + public class TelemetryKeyDetails : PlayFabBaseModel + { + /// + /// When the key was created. + /// + public DateTime CreateTime; + /// + /// Whether or not the key is currently active. Deactivated keys cannot be used for telemetry ingestion. + /// + public bool IsActive; + /// + /// The key that can be distributed to clients for use during telemetry ingestion. + /// + public string KeyValue; + /// + /// When the key was last updated. + /// + public DateTime LastUpdateTime; + /// + /// The name of the key. Telemetry key names are unique within the scope of the title. + /// + public string Name; + } + [Serializable] public class WriteEventsRequest : PlayFabRequestCommon { @@ -71,7 +230,7 @@ namespace PlayFab.EventsModels /// public Dictionary CustomTags; /// - /// Collection of events to write to PlayStream. + /// The collection of events to write. Up to 200 events can be written per request. /// public List Events; } diff --git a/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerAPI.cs b/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerAPI.cs index 836cd922a..6265d304c 100644 --- a/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerAPI.cs @@ -27,7 +27,7 @@ namespace PlayFab /// /// Validates a user with the PlayFab service /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public static void AuthUser(AuthUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; @@ -41,7 +41,7 @@ namespace PlayFab /// /// Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public static void PlayerJoined(PlayerJoinedRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; @@ -55,7 +55,7 @@ namespace PlayFab /// /// Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public static void PlayerLeft(PlayerLeftRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; @@ -70,7 +70,7 @@ namespace PlayFab /// Retrieves the relevant details for a specified user, which the external match-making service can then use to compute /// effective matches /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public static void UserInfo(UserInfoRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; diff --git a/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerInstanceAPI.cs index 6126abe9c..b16f710d6 100644 --- a/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Matchmaker/PlayFabMatchmakerInstanceAPI.cs @@ -46,7 +46,7 @@ namespace PlayFab /// /// Validates a user with the PlayFab service /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public void AuthUser(AuthUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; @@ -58,7 +58,7 @@ namespace PlayFab /// /// Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public void PlayerJoined(PlayerJoinedRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; @@ -70,7 +70,7 @@ namespace PlayFab /// /// Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public void PlayerLeft(PlayerLeftRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; @@ -83,7 +83,7 @@ namespace PlayFab /// Retrieves the relevant details for a specified user, which the external match-making service can then use to compute /// effective matches /// - [Obsolete("No longer available", false)] + [Obsolete("No longer available", true)] public void UserInfo(UserInfoRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; diff --git a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabEvents.cs index 6ee4c2a16..466077769 100644 --- a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabEvents.cs @@ -49,6 +49,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnMultiplayerDeleteLobbyResultEvent; public event PlayFabRequestEvent OnMultiplayerDeleteRemoteUserRequestEvent; public event PlayFabResultEvent OnMultiplayerDeleteRemoteUserResultEvent; + public event PlayFabRequestEvent OnMultiplayerDeleteSecretRequestEvent; + public event PlayFabResultEvent OnMultiplayerDeleteSecretResultEvent; public event PlayFabRequestEvent OnMultiplayerEnableMultiplayerServersForTitleRequestEvent; public event PlayFabResultEvent OnMultiplayerEnableMultiplayerServersForTitleResultEvent; public event PlayFabRequestEvent OnMultiplayerFindFriendLobbiesRequestEvent; @@ -97,10 +99,14 @@ namespace PlayFab.Events public event PlayFabResultEvent OnMultiplayerJoinArrangedLobbyResultEvent; public event PlayFabRequestEvent OnMultiplayerJoinLobbyRequestEvent; public event PlayFabResultEvent OnMultiplayerJoinLobbyResultEvent; + public event PlayFabRequestEvent OnMultiplayerJoinLobbyAsServerRequestEvent; + public event PlayFabResultEvent OnMultiplayerJoinLobbyAsServerResultEvent; public event PlayFabRequestEvent OnMultiplayerJoinMatchmakingTicketRequestEvent; public event PlayFabResultEvent OnMultiplayerJoinMatchmakingTicketResultEvent; public event PlayFabRequestEvent OnMultiplayerLeaveLobbyRequestEvent; public event PlayFabResultEvent OnMultiplayerLeaveLobbyResultEvent; + public event PlayFabRequestEvent OnMultiplayerLeaveLobbyAsServerRequestEvent; + public event PlayFabResultEvent OnMultiplayerLeaveLobbyAsServerResultEvent; public event PlayFabRequestEvent OnMultiplayerListArchivedMultiplayerServersRequestEvent; public event PlayFabResultEvent OnMultiplayerListArchivedMultiplayerServersResultEvent; public event PlayFabRequestEvent OnMultiplayerListAssetSummariesRequestEvent; @@ -125,6 +131,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnMultiplayerListPartyQosServersResultEvent; public event PlayFabRequestEvent OnMultiplayerListQosServersForTitleRequestEvent; public event PlayFabResultEvent OnMultiplayerListQosServersForTitleResultEvent; + public event PlayFabRequestEvent OnMultiplayerListSecretSummariesRequestEvent; + public event PlayFabResultEvent OnMultiplayerListSecretSummariesResultEvent; public event PlayFabRequestEvent OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent; public event PlayFabResultEvent OnMultiplayerListServerBackfillTicketsForPlayerResultEvent; public event PlayFabRequestEvent OnMultiplayerListTitleMultiplayerServersQuotaChangesRequestEvent; @@ -137,6 +145,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnMultiplayerRemoveMemberResultEvent; public event PlayFabRequestEvent OnMultiplayerRequestMultiplayerServerRequestEvent; public event PlayFabResultEvent OnMultiplayerRequestMultiplayerServerResultEvent; + public event PlayFabRequestEvent OnMultiplayerRequestPartyServiceRequestEvent; + public event PlayFabResultEvent OnMultiplayerRequestPartyServiceResultEvent; public event PlayFabRequestEvent OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent; public event PlayFabResultEvent OnMultiplayerRolloverContainerRegistryCredentialsResultEvent; public event PlayFabRequestEvent OnMultiplayerSetMatchmakingQueueRequestEvent; @@ -163,8 +173,12 @@ namespace PlayFab.Events public event PlayFabResultEvent OnMultiplayerUpdateBuildRegionsResultEvent; public event PlayFabRequestEvent OnMultiplayerUpdateLobbyRequestEvent; public event PlayFabResultEvent OnMultiplayerUpdateLobbyResultEvent; + public event PlayFabRequestEvent OnMultiplayerUpdateLobbyAsServerRequestEvent; + public event PlayFabResultEvent OnMultiplayerUpdateLobbyAsServerResultEvent; public event PlayFabRequestEvent OnMultiplayerUploadCertificateRequestEvent; public event PlayFabResultEvent OnMultiplayerUploadCertificateResultEvent; + public event PlayFabRequestEvent OnMultiplayerUploadSecretRequestEvent; + public event PlayFabResultEvent OnMultiplayerUploadSecretResultEvent; } } #endif diff --git a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerAPI.cs b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerAPI.cs index d4b443205..fd344674a 100644 --- a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerAPI.cs @@ -10,6 +10,8 @@ namespace PlayFab /// /// API methods for managing multiplayer servers. API methods for managing parties. The lobby service helps players group /// together to play multiplayer games. It is often used as a rendezvous point for players to share connection information. + /// The TrueSkill service helps titles to estimate a player's skill based on their match results. The player skill values + /// from this service are commonly used by a matchmaking service to provide players with balanced matches. /// public static partial class PlayFabMultiplayerAPI { @@ -322,6 +324,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/DeleteRemoteUser", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Deletes a multiplayer server game secret. + /// + public static void DeleteSecret(DeleteSecretRequest 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("/MultiplayerServer/DeleteSecret", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Enables the multiplayer server feature for a title. /// @@ -636,6 +651,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/JoinLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Preview: Join a lobby as a server entity. This is restricted to client lobbies which are using connections. + /// + public static void JoinLobbyAsServer(JoinLobbyAsServerRequest 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("/Lobby/JoinLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Join a matchmaking ticket. /// @@ -662,6 +690,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/LeaveLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Preview: Request for server to leave a lobby. This is restricted to client owned lobbies which are using connections. + /// + public static void LeaveLobbyAsServer(LeaveLobbyAsServerRequest 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("/Lobby/LeaveLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Lists archived multiplayer server sessions for a build. /// @@ -820,6 +861,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/ListQosServersForTitle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Lists multiplayer server game secrets for a title. + /// + public static void ListSecretSummaries(ListSecretSummariesRequest 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("/MultiplayerServer/ListSecretSummaries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// List all server backfill ticket Ids the user is a member of. /// @@ -899,6 +953,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/RequestMultiplayerServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Request a party session. + /// + public static void RequestPartyService(RequestPartyServiceRequest 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("/Party/RequestPartyService", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Rolls over the credentials to the container registry. /// @@ -1068,6 +1135,21 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/UpdateLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Preview: Update fields related to a joined server in the lobby the server is in. Servers can keep a lobby from expiring + /// by being the one to "update" the lobby in some way. Servers have no impact on last member leave/last member disconnect + /// behavior. + /// + public static void UpdateLobbyAsServer(UpdateLobbyAsServerRequest 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("/Lobby/UpdateLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Uploads a multiplayer server game certificate. /// @@ -1081,6 +1163,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/UploadCertificate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Uploads a multiplayer server game secret. + /// + public static void UploadSecret(UploadSecretRequest 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("/MultiplayerServer/UploadSecret", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + } } diff --git a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerInstanceAPI.cs index d543df948..9d6c5519e 100644 --- a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerInstanceAPI.cs @@ -11,6 +11,8 @@ namespace PlayFab /// /// API methods for managing multiplayer servers. API methods for managing parties. The lobby service helps players group /// together to play multiplayer games. It is often used as a rendezvous point for players to share connection information. + /// The TrueSkill service helps titles to estimate a player's skill based on their match results. The player skill values + /// from this service are commonly used by a matchmaking service to provide players with balanced matches. /// public partial class PlayFabMultiplayerInstanceAPI : IPlayFabInstanceApi { @@ -297,6 +299,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/DeleteRemoteUser", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Deletes a multiplayer server game secret. + /// + public void DeleteSecret(DeleteSecretRequest 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("/MultiplayerServer/DeleteSecret", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Enables the multiplayer server feature for a title. /// @@ -563,6 +576,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/JoinLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Preview: Join a lobby as a server entity. This is restricted to client lobbies which are using connections. + /// + public void JoinLobbyAsServer(JoinLobbyAsServerRequest 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("/Lobby/JoinLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Join a matchmaking ticket. /// @@ -585,6 +609,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/LeaveLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Preview: Request for server to leave a lobby. This is restricted to client owned lobbies which are using connections. + /// + public void LeaveLobbyAsServer(LeaveLobbyAsServerRequest 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("/Lobby/LeaveLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Lists archived multiplayer server sessions for a build. /// @@ -719,6 +754,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/ListQosServersForTitle", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Lists multiplayer server game secrets for a title. + /// + public void ListSecretSummaries(ListSecretSummariesRequest 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("/MultiplayerServer/ListSecretSummaries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// List all server backfill ticket Ids the user is a member of. /// @@ -786,6 +832,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/RequestMultiplayerServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Request a party session. + /// + public void RequestPartyService(RequestPartyServiceRequest 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("/Party/RequestPartyService", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Rolls over the credentials to the container registry. /// @@ -929,6 +986,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Lobby/UpdateLobby", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Preview: Update fields related to a joined server in the lobby the server is in. Servers can keep a lobby from expiring + /// by being the one to "update" the lobby in some way. Servers have no impact on last member leave/last member disconnect + /// behavior. + /// + public void UpdateLobbyAsServer(UpdateLobbyAsServerRequest 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("/Lobby/UpdateLobbyAsServer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Uploads a multiplayer server game certificate. /// @@ -940,6 +1010,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/MultiplayerServer/UploadCertificate", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Uploads a multiplayer server game secret. + /// + public void UploadSecret(UploadSecretRequest 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("/MultiplayerServer/UploadSecret", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + } } diff --git a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerModels.cs b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerModels.cs index 824d58b60..8365cde67 100644 --- a/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Multiplayer/PlayFabMultiplayerModels.cs @@ -94,7 +94,10 @@ namespace PlayFab.MultiplayerModels WestUs2, CentralIndia, UaeNorth, - UkSouth + UkSouth, + SwedenCentral, + CanadaCentral, + MexicoCentral } public enum AzureVmFamily @@ -107,6 +110,7 @@ namespace PlayFab.MultiplayerModels Fsv2, Dasv4, Dav4, + Dadsv5, Eav4, Easv4, Ev4, @@ -116,7 +120,9 @@ namespace PlayFab.MultiplayerModels NCasT4_v3, Ddv4, Ddsv4, - HBv3 + HBv3, + Ddv5, + Ddsv5 } public enum AzureVmSize @@ -155,6 +161,10 @@ namespace PlayFab.MultiplayerModels Standard_D4a_v4, Standard_D8a_v4, Standard_D16a_v4, + Standard_D2ads_v5, + Standard_D4ads_v5, + Standard_D8ads_v5, + Standard_D16ads_v5, Standard_E2a_v4, Standard_E4a_v4, Standard_E8a_v4, @@ -185,7 +195,17 @@ namespace PlayFab.MultiplayerModels Standard_HB120_32rs_v3, Standard_HB120_64rs_v3, Standard_HB120_96rs_v3, - Standard_HB120rs_v3 + Standard_HB120rs_v3, + Standard_D2d_v5, + Standard_D4d_v5, + Standard_D8d_v5, + Standard_D16d_v5, + Standard_D32d_v5, + Standard_D2ds_v5, + Standard_D4ds_v5, + Standard_D8ds_v5, + Standard_D16ds_v5, + Standard_D32ds_v5 } [Serializable] @@ -611,6 +631,10 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The Linux instrumentation configuration for the build. /// public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration; @@ -640,12 +664,6 @@ namespace PlayFab.MultiplayerModels /// public ServerResourceConstraintParams ServerResourceConstraints; /// - /// DEPRECATED - this is always true. Assets are downloaded and uncompressed in memory, without the compressedversion being - /// written first to disc. - /// - [Obsolete("Use '' instead", false)] - public bool? UseStreamingForAssetDownloads; - /// /// The VM size to create the build on. /// public AzureVmSize? VmSize; @@ -696,6 +714,10 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The Linux instrumentation configuration for this build. /// public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration; @@ -778,6 +800,10 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The directory containing the game executable. This would be the start path of the game assets that contain the main game /// server executable. If not provided, a best effort will be made to extract it from the start game command. /// @@ -816,12 +842,6 @@ namespace PlayFab.MultiplayerModels /// public string StartMultiplayerServerCommand; /// - /// DEPRECATED - this is always true. Assets are downloaded and uncompressed in memory, without the compressedversion being - /// written first to disc. - /// - [Obsolete("Use '' instead", false)] - public bool? UseStreamingForAssetDownloads; - /// /// The VM size to create the build on. /// public AzureVmSize? VmSize; @@ -868,6 +888,10 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The directory containing the game executable. This would be the start path of the game assets that contain the main game /// server executable. If not provided, a best effort will be made to extract it from the start game command. /// @@ -956,12 +980,16 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The working directory for the game process. If this is not provided, the working directory will be set based on the /// mount path of the game server executable. /// public string GameWorkingDirectory; /// - /// The instrumentation configuration for the build. + /// The instrumentation configuration for the Build. Used only if it is a Windows Build. /// public InstrumentationConfiguration InstrumentationConfiguration; /// @@ -970,6 +998,10 @@ namespace PlayFab.MultiplayerModels /// public bool? IsOSPreview; /// + /// The Linux instrumentation configuration for the Build. Used only if it is a Linux Build. + /// + public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration; + /// /// Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through /// Game Server SDK (GSDK).Constraints: Maximum number of keys: 30, Maximum key length: 50, Maximum value length: 100 /// @@ -1000,12 +1032,6 @@ namespace PlayFab.MultiplayerModels /// public string StartMultiplayerServerCommand; /// - /// DEPRECATED - this is always true. Assets are downloaded and uncompressed in memory, without the compressedversion being - /// written first to disc. - /// - [Obsolete("Use '' instead", false)] - public bool? UseStreamingForAssetDownloads; - /// /// The VM size to create the build on. /// public AzureVmSize? VmSize; @@ -1048,6 +1074,10 @@ namespace PlayFab.MultiplayerModels /// public List GameCertificateReferences; /// + /// The game secrets for the build. + /// + public List GameSecretReferences; + /// /// The working directory for the game process. If this is not provided, the working directory will be set based on the /// mount path of the game server executable. /// @@ -1062,6 +1092,10 @@ namespace PlayFab.MultiplayerModels /// public bool? IsOSPreview; /// + /// The Linux instrumentation configuration for this build. + /// + public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration; + /// /// The metadata of the build. /// public Dictionary Metadata; @@ -1128,7 +1162,7 @@ namespace PlayFab.MultiplayerModels /// public Dictionary CustomTags; /// - /// The private key-value pairs which are only visible to members of the lobby. At most 30 key-value pairs may be stored + /// The private key-value pairs which are visible to all entities in the lobby. At most 30 key-value pairs may be stored /// here, keys are limited to 30 characters and values to 1000. The total size of all lobbyData values may not exceed 4096 /// bytes. Keys are case sensitive. /// @@ -1611,6 +1645,22 @@ namespace PlayFab.MultiplayerModels public string VmId; } + /// + /// Deletes a multiplayer server game secret. + /// + [Serializable] + public class DeleteSecretRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the secret. + /// + public string Name; + } + [Serializable] public class DifferenceRule : PlayFabBaseModel { @@ -1660,6 +1710,19 @@ namespace PlayFab.MultiplayerModels public double Weight; } + public enum DirectPeerConnectivityOptions + { + None, + SamePlatformType, + DifferentPlatformType, + AnyPlatformType, + SameEntityLoginProvider, + DifferentEntityLoginProvider, + AnyEntityLoginProvider, + AnyPlatformTypeAndEntityLoginProvider, + OnlyServers + } + [Serializable] public class DynamicStandbySettings : PlayFabBaseModel { @@ -1756,16 +1819,6 @@ namespace PlayFab.MultiplayerModels /// public Dictionary CustomTags; /// - /// Controls whether this query should link to friends made on the Facebook network. Defaults to false - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? ExcludeFacebookFriends; - /// - /// Controls whether this query should link to friends made on the Steam network. Defaults to false - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? ExcludeSteamFriends; - /// /// Indicates which other platforms' friends this query should link to. /// public ExternalFriendSources? ExternalPlatformFriends; @@ -1775,15 +1828,16 @@ namespace PlayFab.MultiplayerModels /// (less than). The left-hand side of each OData logical expression should be either a search property key (e.g. /// string_key1, number_key3, etc) or one of the pre-defined search keys all of which must be prefixed by "lobby/": /// lobby/memberCount (number of players in a lobby), lobby/maxMemberCount (maximum number of players allowed in a lobby), - /// lobby/membershipLock (must equal 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember - /// (required to equal "true"). + /// lobby/memberCountRemaining (remaining number of players who can be allowed in a lobby), lobby/membershipLock (must equal + /// 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember (required to equal "true"). /// public string Filter; /// /// OData style string that contains sorting for this query in either ascending ("asc") or descending ("desc") order. - /// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc" and - /// "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = 5}` can be used to sort by distance - /// from the given number. This field only supports either one sort clause or one distance clause. + /// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc", + /// "lobby/memberCountRemaining desc" and "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = + /// 5}` can be used to sort by distance from the given number. This field only supports either one sort clause or one + /// distance clause. /// public string OrderBy; /// @@ -1825,15 +1879,16 @@ namespace PlayFab.MultiplayerModels /// (less than). The left-hand side of each OData logical expression should be either a search property key (e.g. /// string_key1, number_key3, etc) or one of the pre-defined search keys all of which must be prefixed by "lobby/": /// lobby/memberCount (number of players in a lobby), lobby/maxMemberCount (maximum number of players allowed in a lobby), - /// lobby/membershipLock (must equal 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember - /// (required to equal "true"). + /// lobby/memberCountRemaining (remaining number of players who can be allowed in a lobby), lobby/membershipLock (must equal + /// 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember (required to equal "true"). /// public string Filter; /// /// OData style string that contains sorting for this query in either ascending ("asc") or descending ("desc") order. - /// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc" and - /// "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = 5}` can be used to sort by distance - /// from the given number. This field only supports either one sort clause or one distance clause. + /// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc", + /// "lobby/memberCountRemaining desc" and "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = + /// 5}` can be used to sort by distance from the given number. This field only supports either one sort clause or one + /// distance clause. /// public string OrderBy; /// @@ -1925,6 +1980,24 @@ namespace PlayFab.MultiplayerModels public string Name; } + [Serializable] + public class GameSecretReference : PlayFabBaseModel + { + /// + /// The name of the game secret. This name should match the name of a secret that was previously added to this title. + /// + public string Name; + } + + [Serializable] + public class GameSecretReferenceParams : PlayFabBaseModel + { + /// + /// The name of the game secret. This name should match the name of a secret that was previously added to this title. + /// + public string Name; + } + /// /// Gets a URL that can be used to download the specified asset. /// @@ -2102,6 +2175,10 @@ namespace PlayFab.MultiplayerModels /// The VM size the build was created on. /// public AzureVmSize? VmSize; + /// + /// The configuration for the VmStartupScript feature for the build + /// + public VmStartupScriptConfiguration VmStartupScriptConfiguration; } /// @@ -2351,7 +2428,7 @@ namespace PlayFab.MultiplayerModels /// public string FQDN; /// - /// The IPv4 address of the virtual machine that is hosting this multiplayer server. + /// The public IPv4 address of the virtual machine that is hosting this multiplayer server. /// public string IPV4Address; /// @@ -2363,6 +2440,10 @@ namespace PlayFab.MultiplayerModels /// public List Ports; /// + /// The list of public Ipv4 addresses associated with the server. + /// + public List PublicIPV4Addresses; + /// /// The region the multiplayer server is located in. /// public string Region; @@ -2702,7 +2783,7 @@ namespace PlayFab.MultiplayerModels public uint MaxPlayers; /// /// The private key-value pairs used by the member to communicate information to other members and the owner. Visible to all - /// members of the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to + /// entities in the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to /// 1000. The total size of all memberData values may not exceed 4096 bytes. Keys are case sensitive. /// public Dictionary MemberData; @@ -2729,6 +2810,45 @@ namespace PlayFab.MultiplayerModels public bool UseConnections; } + /// + /// Preview: Request to join a lobby as a server. Only callable by a game_server entity and this is restricted to client + /// owned lobbies which are using connections. + /// + [Serializable] + public class JoinLobbyAsServerRequest : PlayFabRequestCommon + { + /// + /// A field which indicates which lobby the game_server will be joining. This field is opaque to everyone except the Lobby + /// service. + /// + public string ConnectionString; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The private key-value pairs which are visible to all entities in the lobby but can only be modified by the joined + /// server.At most 30 key - value pairs may be stored here, keys are limited to 30 characters and values to 1000.The total + /// size of all serverData values may not exceed 4096 bytes. + /// + public Dictionary ServerData; + /// + /// The game_server entity which is joining the Lobby. If a different game_server entity has already joined the request will + /// fail unless the joined entity is disconnected, in which case the incoming game_server entity will replace the + /// disconnected entity. + /// + public EntityKey ServerEntity; + } + + [Serializable] + public class JoinLobbyAsServerResult : PlayFabResultCommon + { + /// + /// Successfully joined lobby's id. + /// + public string LobbyId; + } + /// /// Request to join a lobby. Only a client can join a lobby. /// @@ -2745,7 +2865,7 @@ namespace PlayFab.MultiplayerModels public Dictionary CustomTags; /// /// The private key-value pairs used by the member to communicate information to other members and the owner. Visible to all - /// members of the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to + /// entities in the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to /// 1000. The total size of all memberData values may not exceed 4096 bytes.Keys are case sensitive. /// public Dictionary MemberData; @@ -2796,6 +2916,28 @@ namespace PlayFab.MultiplayerModels { } + /// + /// Preview: Request for server to leave a lobby. Only a game_server entity can leave and this is restricted to client owned + /// lobbies which are using connections. + /// + [Serializable] + public class LeaveLobbyAsServerRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The id of the lobby. + /// + public string LobbyId; + /// + /// The game_server entity leaving the lobby. If the game_server was subscribed to notifications, it will be unsubscribed. + /// If a the given game_server entity is not in the lobby, it will fail. + /// + public EntityKey ServerEntity; + } + /// /// Request to leave a lobby. Only a client can leave a lobby. /// @@ -3105,11 +3247,27 @@ namespace PlayFab.MultiplayerModels /// The container images we want to list tags for. /// public string ImageName; + /// + /// The page size for the request. + /// + public int? PageSize; + /// + /// The skip token for the paged request. + /// + public string SkipToken; } [Serializable] public class ListContainerImageTagsResponse : PlayFabResultCommon { + /// + /// The page size on the response. + /// + public int PageSize; + /// + /// The skip token for the paged response. + /// + public string SkipToken; /// /// The list of tags for a particular container image. /// @@ -3256,6 +3414,10 @@ namespace PlayFab.MultiplayerModels /// deployed for the title. /// public bool? IncludeAllRegions; + /// + /// Indicates the Routing Preference used by the Qos servers. The default Routing Preference is Microsoft + /// + public string RoutingPreference; } [Serializable] @@ -3275,6 +3437,43 @@ namespace PlayFab.MultiplayerModels public string SkipToken; } + /// + /// Returns a list of multiplayer server game secrets for a title. + /// + [Serializable] + public class ListSecretSummariesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The page size for the request. + /// + public int? PageSize; + /// + /// The skip token for the paged request. + /// + public string SkipToken; + } + + [Serializable] + public class ListSecretSummariesResponse : PlayFabResultCommon + { + /// + /// The page size on the response. + /// + public int PageSize; + /// + /// The list of game secret. + /// + public List SecretSummaries; + /// + /// The skip token for the paged response. + /// + public string SkipToken; + } + /// /// List all server backfill ticket Ids the user is a member of. /// @@ -3424,6 +3623,10 @@ namespace PlayFab.MultiplayerModels /// public Dictionary SearchData; /// + /// Preview: Lobby joined server. This is not the server owner, rather the server that has joined a client owned lobby. + /// + public LobbyServer Server; + /// /// A flag which determines if connections are used. Defaults to true. Only set on create. /// public bool UseConnections; @@ -3434,6 +3637,23 @@ namespace PlayFab.MultiplayerModels { } + [Serializable] + public class LobbyServer : PlayFabBaseModel + { + /// + /// Opaque string, stored on a Subscribe call, which indicates the connection a joined server has with PubSub. + /// + public string PubSubConnectionHandle; + /// + /// Key-value pairs specific to the joined server. + /// + public Dictionary ServerData; + /// + /// The server entity key. + /// + public EntityKey ServerEntity; + } + [Serializable] public class LobbySummary : PlayFabBaseModel { @@ -3818,6 +4038,65 @@ namespace PlayFab.MultiplayerModels public uint? TotalMatchedLobbyCount; } + [Serializable] + public class PartyInvitationConfiguration : PlayFabBaseModel + { + /// + /// The list of PlayFab EntityKeys that the invitation allows to authenticate into the network. If this list is empty, all + /// users are allowed to authenticate using the invitation's identifier. This list may contain no more than 1024 items. + /// + public List EntityKeys; + /// + /// The invite identifier for this party. If this value is specified, it must be no longer than 127 characters. + /// + public string Identifier; + /// + /// Controls which participants can revoke this invite. + /// + public string Revocability; + } + + public enum PartyInvitationRevocability + { + Creator, + Anyone + } + + [Serializable] + public class PartyNetworkConfiguration : PlayFabBaseModel + { + /// + /// Controls whether and how to support direct peer-to-peer connection attempts among devices in the network. + /// + public string DirectPeerConnectivityOptions; + /// + /// The maximum number of devices allowed to connect to the network. Must be between 1 and 128, inclusive. + /// + public uint MaxDevices; + /// + /// The maximum number of devices allowed per user. Must be greater than 0. + /// + public uint MaxDevicesPerUser; + /// + /// The maximum number of endpoints allowed per device. Must be between 0 and 32, inclusive. + /// + public uint MaxEndpointsPerDevice; + /// + /// The maximum number of unique users allowed in the network. Must be greater than 0. + /// + public uint MaxUsers; + /// + /// The maximum number of users allowed per device. Must be between 1 and 8, inclusive. + /// + public uint MaxUsersPerDevice; + /// + /// An optionally-specified configuration for the initial invitation for this party. If not provided, default configuration + /// values will be used: a title-unique invitation identifier will be generated, the revocability will be Anyone, and the + /// EntityID list will be empty. + /// + public PartyInvitationConfiguration PartyInvitationConfiguration; + } + [Serializable] public class Port : PlayFabBaseModel { @@ -3841,6 +4120,23 @@ namespace PlayFab.MultiplayerModels UDP } + [Serializable] + public class PublicIpAddress : PlayFabBaseModel + { + /// + /// FQDN of the public IP + /// + public string FQDN; + /// + /// Server IP Address + /// + public string IpAddress; + /// + /// Routing Type of the public IP. + /// + public string RoutingType; + } + [Serializable] public class QosServer : PlayFabBaseModel { @@ -4037,7 +4333,7 @@ namespace PlayFab.MultiplayerModels /// public string FQDN; /// - /// The IPv4 address of the virtual machine that is hosting this multiplayer server. + /// The public IPv4 address of the virtual machine that is hosting this multiplayer server. /// public string IPV4Address; /// @@ -4049,6 +4345,10 @@ namespace PlayFab.MultiplayerModels /// public List Ports; /// + /// The list of public Ipv4 addresses associated with the server. + /// + public List PublicIPV4Addresses; + /// /// The region the multiplayer server is located in. /// public string Region; @@ -4070,6 +4370,50 @@ namespace PlayFab.MultiplayerModels public string VmId; } + /// + /// Requests a party session from a particular set of builds if build alias params is provided, in any of the given + /// preferred regions. + /// + [Serializable] + public class RequestPartyServiceRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The network configuration for this request. + /// + public PartyNetworkConfiguration NetworkConfiguration; + /// + /// A guid string party ID created track the party session over its life. + /// + public string PartyId; + /// + /// The preferred regions to request a party session from. The party service will iterate through the regions in the + /// specified order and allocate a party session from the first one that is available. + /// + public List PreferredRegions; + } + + [Serializable] + public class RequestPartyServiceResponse : PlayFabResultCommon + { + /// + /// The invitation identifier supplied in the PartyInvitationConfiguration, or the PlayFab-generated guid if none was + /// supplied. + /// + public string InvitationId; + /// + /// The guid string party ID of the party session. + /// + public string PartyId; + /// + /// A base-64 encoded string containing the serialized network descriptor for this party. + /// + public string SerializedNetworkDescriptor; + } + /// /// Gets new credentials to the container registry where game developers can upload custom container images to before /// creating a new build. @@ -4100,6 +4444,12 @@ namespace PlayFab.MultiplayerModels public string Username; } + public enum RoutingType + { + Microsoft, + Internet + } + [Serializable] public class Schedule : PlayFabBaseModel { @@ -4143,6 +4493,40 @@ namespace PlayFab.MultiplayerModels public List ScheduleList; } + [Serializable] + public class Secret : PlayFabBaseModel + { + /// + /// Optional secret expiration date. + /// + public DateTime? ExpirationDate; + /// + /// A name for the secret. This is used to reference secrets in build configurations. + /// + public string Name; + /// + /// Secret value. + /// + public string Value; + } + + [Serializable] + public class SecretSummary : PlayFabBaseModel + { + /// + /// Optional secret expiration date. + /// + public DateTime? ExpirationDate; + /// + /// The name of the secret. + /// + public string Name; + /// + /// The secret version auto-generated after upload. + /// + public string Version; + } + [Serializable] public class ServerDetails : PlayFabBaseModel { @@ -4162,6 +4546,10 @@ namespace PlayFab.MultiplayerModels /// The server's region. /// public string Region; + /// + /// The string server ID of the multiplayer server generated by PlayFab. + /// + public string ServerId; } [Serializable] @@ -4373,7 +4761,8 @@ namespace PlayFab.MultiplayerModels /// public string PubSubConnectionHandle; /// - /// The name of the resource to subscribe to. + /// The name of the resource to subscribe to. For LobbyChange subscriptions this is the lobbyId. For LobbyInvite + /// subscriptions this should always be "@me". /// public string ResourceId; /// @@ -4381,7 +4770,9 @@ namespace PlayFab.MultiplayerModels /// public uint SubscriptionVersion; /// - /// Subscription type. + /// Subscription type. "LobbyChange" subscriptions allow a member or owner to receive notifications of lobby data, member or + /// owner changes. "LobbyInvite" subscriptions allow a player to receive invites to lobbies. A player does not need to be a + /// member of a lobby to receive lobby invites. /// public SubscriptionType Type; } @@ -4715,6 +5106,42 @@ namespace PlayFab.MultiplayerModels public Dictionary CustomTags; } + /// + /// Preview: Request to update the serverData and serverEntity in case of migration. Only a game_server entity can update + /// this information and this is restricted to client owned lobbies which are using connections. + /// + [Serializable] + public class UpdateLobbyAsServerRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The id of the lobby. + /// + public string LobbyId; + /// + /// The private key-value pairs which are visible to all entities in the lobby and modifiable by the joined server. + /// Optional. Sets or updates key-value pairs on the lobby. Only the current lobby lobby server can set serverData. Keys may + /// be an arbitrary string of at most 30 characters. The total size of all serverData values may not exceed 4096 bytes. + /// Values are not individually limited. There can be up to 30 key-value pairs stored here. Keys are case sensitive. + /// + public Dictionary ServerData; + /// + /// The keys to delete from the lobby serverData. Optional. Optional. Deletes key-value pairs on the lobby. Only the current + /// joined lobby server can delete serverData. All the specified keys will be removed from the serverData. Keys that do not + /// exist in the lobby are a no-op. If the key to delete exists in the serverData (same request) it will result in a bad + /// request. + /// + public List ServerDataToDelete; + /// + /// The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined + /// server). When changing the server the previous server will automatically be unsubscribed. + /// + public EntityKey ServerEntity; + } + /// /// Request to update a lobby. /// @@ -4734,7 +5161,7 @@ namespace PlayFab.MultiplayerModels /// public Dictionary CustomTags; /// - /// The private key-value pairs which are only visible to members of the lobby. Optional. Sets or updates key-value pairs on + /// The private key-value pairs which are visible to all entities in the lobby. Optional. Sets or updates key-value pairs on /// the lobby. Only the current lobby owner can set lobby data. Keys may be an arbitrary string of at most 30 characters. /// The total size of all lobbyData values may not exceed 4096 bytes. Values are not individually limited. There can be up /// to 30 key-value pairs stored here. Keys are case sensitive. @@ -4757,9 +5184,9 @@ namespace PlayFab.MultiplayerModels /// /// The private key-value pairs used by the member to communicate information to other members and the owner. Optional. Sets /// or updates new key-value pairs on the caller's member data. New keys will be added with their values and existing keys - /// will be updated with the new values. Visible to all members of the lobby. At most 30 key-value pairs may be stored here, - /// keys are limited to 30 characters and values to 1000. The total size of all memberData values may not exceed 4096 bytes. - /// Keys are case sensitive. Servers cannot specifiy this. + /// will be updated with the new values. Visible to all entities in the lobby. At most 30 key-value pairs may be stored + /// here, keys are limited to 30 characters and values to 1000. The total size of all memberData values may not exceed 4096 + /// bytes. Keys are case sensitive. Servers cannot specifiy this. /// public Dictionary MemberData; /// @@ -4817,11 +5244,35 @@ namespace PlayFab.MultiplayerModels /// public Dictionary CustomTags; /// + /// Forces the certificate renewal if the certificate already exists. Default is false + /// + public bool? ForceUpdate; + /// /// The game certificate to upload. /// public Certificate GameCertificate; } + /// + /// Uploads a multiplayer server game secret. + /// + [Serializable] + public class UploadSecretRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Forces the secret renewal if the secret already exists. Default is false + /// + public bool? ForceUpdate; + /// + /// The game secret to add. + /// + public Secret GameSecret; + } + [Serializable] public class VirtualMachineSummary : PlayFabBaseModel { @@ -4842,6 +5293,10 @@ namespace PlayFab.MultiplayerModels [Serializable] public class VmStartupScriptConfiguration : PlayFabBaseModel { + /// + /// Optional port requests (name/protocol) that will be used by the VmStartupScript. Max of 5 requests. + /// + public List PortRequests; /// /// Asset which contains the VmStartupScript script and any other required files. /// @@ -4851,12 +5306,42 @@ namespace PlayFab.MultiplayerModels [Serializable] public class VmStartupScriptParams : PlayFabBaseModel { + /// + /// Optional port requests (name/protocol) that will be used by the VmStartupScript. Max of 5 requests. + /// + public List PortRequests; /// /// Asset which contains the VmStartupScript script and any other required files. /// public AssetReferenceParams VmStartupScriptAssetReference; } + [Serializable] + public class VmStartupScriptPortRequest : PlayFabBaseModel + { + /// + /// The name for the port. + /// + public string Name; + /// + /// The protocol for the port. + /// + public ProtocolType Protocol; + } + + [Serializable] + public class VmStartupScriptPortRequestParams : PlayFabBaseModel + { + /// + /// The name for the port. + /// + public string Name; + /// + /// The protocol for the port. + /// + public ProtocolType Protocol; + } + [Serializable] public class WindowsCrashDumpConfiguration : PlayFabBaseModel { diff --git a/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabEvents.cs index 34ee4debd..069ee41a3 100644 --- a/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabEvents.cs @@ -13,6 +13,10 @@ namespace PlayFab.Events public event PlayFabResultEvent OnProfilesGetProfilesResultEvent; public event PlayFabRequestEvent OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent; 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/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs index 171d35306..aec3d21d2 100644 --- a/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs @@ -9,7 +9,7 @@ namespace PlayFab { /// /// All PlayFab entities have profiles, which hold top-level properties about the entity. These APIs give you the tools - /// needed to manage entity profiles. The Master Player APIs allow you to perform operations on a master player account + /// needed to manage entity profiles. /// public static class PlayFabProfilesAPI { @@ -85,6 +85,32 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromMasterPlayerAccountIds", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Retrieves the title player accounts associated with the given XUIDs. + /// + public static void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDsRequest 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/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/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs index de5fd0530..d332f6f4e 100644 --- a/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesInstanceAPI.cs @@ -10,7 +10,7 @@ namespace PlayFab { /// /// All PlayFab entities have profiles, which hold top-level properties about the entity. These APIs give you the tools - /// needed to manage entity profiles. The Master Player APIs allow you to perform operations on a master player account + /// needed to manage entity profiles. /// public class PlayFabProfilesInstanceAPI : IPlayFabInstanceApi { @@ -96,6 +96,28 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromMasterPlayerAccountIds", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Retrieves the title player accounts associated with the given XUIDs. + /// + public void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDsRequest 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/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/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesModels.cs b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesModels.cs index f2d39605d..76cebbbd5 100644 --- a/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Profiles/PlayFabProfilesModels.cs @@ -142,10 +142,6 @@ namespace PlayFab.ProfilesModels /// public string Language; /// - /// Leaderboard metadata for the entity. - /// - public string LeaderboardMetadata; - /// /// The lineage of this profile. /// public EntityLineage Lineage; @@ -193,32 +189,11 @@ namespace PlayFab.ProfilesModels public int Size; } - [Serializable] - public class EntityStatisticChildValue : PlayFabBaseModel - { - /// - /// Child name value, if child statistic - /// - public string ChildName; - /// - /// Child statistic metadata - /// - public string Metadata; - /// - /// Child statistic value - /// - public int Value; - } - [Serializable] public class EntityStatisticValue : PlayFabBaseModel { /// - /// Child statistic values - /// - public Dictionary ChildStatistics; - /// - /// Statistic metadata + /// Metadata associated with the Statistic. /// public string Metadata; /// @@ -226,9 +201,9 @@ namespace PlayFab.ProfilesModels /// public string Name; /// - /// Statistic value + /// Statistic scores /// - public int? Value; + public List Scores; /// /// Statistic version /// @@ -359,6 +334,40 @@ namespace PlayFab.ProfilesModels public Dictionary TitlePlayerAccounts; } + [Serializable] + public class GetTitlePlayersFromProviderIDsResponse : PlayFabResultCommon + { + /// + /// Dictionary of provider identifiers mapped to title_player_account lineage. Missing lineage indicates the player either + /// doesn't exist or doesn't play the requested title. + /// + public Dictionary TitlePlayerAccounts; + } + + /// + /// Given a collection of Xbox IDs (XUIDs), returns all title player accounts. + /// + [Serializable] + public class GetTitlePlayersFromXboxLiveIDsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Xbox Sandbox the players had on their Xbox tokens. + /// + public string Sandbox; + /// + /// Optional ID of title to get players from, required if calling using a master_player_account. + /// + public string TitleId; + /// + /// List of Xbox Live XUIDs + /// + public List XboxLiveIds; + } + public enum OperationTypes { Created, @@ -367,6 +376,44 @@ namespace PlayFab.ProfilesModels 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/Assets/ThirdParty/PlayFabSDK/Progression.meta b/Assets/ThirdParty/PlayFabSDK/Progression.meta new file mode 100644 index 000000000..942cbdd40 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24485793d5ba2d641b660ee9a48c06b3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs new file mode 100644 index 000000000..ee302234c --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs @@ -0,0 +1,52 @@ +#if !DISABLE_PLAYFABENTITY_API +using PlayFab.ProgressionModels; + +namespace PlayFab.Events +{ + public partial class PlayFabEvents + { + public event PlayFabRequestEvent OnProgressionCreateLeaderboardDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionCreateLeaderboardDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionCreateStatisticDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionCreateStatisticDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionDeleteLeaderboardDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionDeleteLeaderboardDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionDeleteLeaderboardEntriesRequestEvent; + public event PlayFabResultEvent OnProgressionDeleteLeaderboardEntriesResultEvent; + public event PlayFabRequestEvent OnProgressionDeleteStatisticDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionDeleteStatisticDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionDeleteStatisticsRequestEvent; + public event PlayFabResultEvent OnProgressionDeleteStatisticsResultEvent; + public event PlayFabRequestEvent OnProgressionGetFriendLeaderboardForEntityRequestEvent; + public event PlayFabResultEvent OnProgressionGetFriendLeaderboardForEntityResultEvent; + public event PlayFabRequestEvent OnProgressionGetLeaderboardRequestEvent; + public event PlayFabResultEvent OnProgressionGetLeaderboardResultEvent; + public event PlayFabRequestEvent OnProgressionGetLeaderboardAroundEntityRequestEvent; + public event PlayFabResultEvent OnProgressionGetLeaderboardAroundEntityResultEvent; + public event PlayFabRequestEvent OnProgressionGetLeaderboardDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionGetLeaderboardDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionGetLeaderboardForEntitiesRequestEvent; + public event PlayFabResultEvent OnProgressionGetLeaderboardForEntitiesResultEvent; + public event PlayFabRequestEvent OnProgressionGetStatisticDefinitionRequestEvent; + public event PlayFabResultEvent OnProgressionGetStatisticDefinitionResultEvent; + public event PlayFabRequestEvent OnProgressionGetStatisticsRequestEvent; + public event PlayFabResultEvent OnProgressionGetStatisticsResultEvent; + public event PlayFabRequestEvent OnProgressionGetStatisticsForEntitiesRequestEvent; + public event PlayFabResultEvent OnProgressionGetStatisticsForEntitiesResultEvent; + public event PlayFabRequestEvent OnProgressionIncrementLeaderboardVersionRequestEvent; + public event PlayFabResultEvent OnProgressionIncrementLeaderboardVersionResultEvent; + public event PlayFabRequestEvent OnProgressionIncrementStatisticVersionRequestEvent; + public event PlayFabResultEvent OnProgressionIncrementStatisticVersionResultEvent; + public event PlayFabRequestEvent OnProgressionListLeaderboardDefinitionsRequestEvent; + public event PlayFabResultEvent OnProgressionListLeaderboardDefinitionsResultEvent; + public event PlayFabRequestEvent OnProgressionListStatisticDefinitionsRequestEvent; + public event PlayFabResultEvent OnProgressionListStatisticDefinitionsResultEvent; + public event PlayFabRequestEvent OnProgressionUnlinkLeaderboardFromStatisticRequestEvent; + public event PlayFabResultEvent OnProgressionUnlinkLeaderboardFromStatisticResultEvent; + public event PlayFabRequestEvent OnProgressionUpdateLeaderboardEntriesRequestEvent; + public event PlayFabResultEvent OnProgressionUpdateLeaderboardEntriesResultEvent; + public event PlayFabRequestEvent OnProgressionUpdateStatisticsRequestEvent; + public event PlayFabResultEvent OnProgressionUpdateStatisticsResultEvent; + } +} +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs.meta b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs.meta new file mode 100644 index 000000000..03f473a11 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabEvents.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0baf01ae0e5700e41a23409b4e548524 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs new file mode 100644 index 000000000..a8f83eea2 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs @@ -0,0 +1,313 @@ +#if !DISABLE_PLAYFABENTITY_API && !DISABLE_PLAYFAB_STATIC_API + +using System; +using System.Collections.Generic; +using PlayFab.ProgressionModels; +using PlayFab.Internal; + +namespace PlayFab +{ + /// + /// Manage entity statistics Manage entity leaderboards + /// + public static class PlayFabProgressionAPI + { + static PlayFabProgressionAPI() {} + + + /// + /// Verify entity login. + /// + public static bool IsEntityLoggedIn() + { + return PlayFabSettings.staticPlayer.IsEntityLoggedIn(); + } + + /// + /// Clear the Client SessionToken which allows this Client to call API calls requiring login. + /// A new/fresh login will be required after calling this. + /// + public static void ForgetAllCredentials() + { + PlayFabSettings.staticPlayer.ForgetAllCredentials(); + } + + /// + /// Creates a new leaderboard definition. + /// + public static void CreateLeaderboardDefinition(CreateLeaderboardDefinitionRequest 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("/Leaderboard/CreateLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Create a new entity statistic definition. + /// + public static void CreateStatisticDefinition(CreateStatisticDefinitionRequest 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/CreateStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes a leaderboard definition. + /// + public static void DeleteLeaderboardDefinition(DeleteLeaderboardDefinitionRequest 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("/Leaderboard/DeleteLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Deletes the specified entries from the given leaderboard. + /// + public static void DeleteLeaderboardEntries(DeleteLeaderboardEntriesRequest 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("/Leaderboard/DeleteLeaderboardEntries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Delete an entity statistic definition. Will delete all statistics on entity profiles and leaderboards. + /// + public static void DeleteStatisticDefinition(DeleteStatisticDefinitionRequest 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/DeleteStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Delete statistics on an entity profile. This will remove all rankings from associated leaderboards. + /// + public static void DeleteStatistics(DeleteStatisticsRequest 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/DeleteStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. + /// + public static void GetFriendLeaderboardForEntity(GetFriendLeaderboardForEntityRequest 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("/Leaderboard/GetFriendLeaderboardForEntity", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get the leaderboard for a specific entity type and statistic. + /// + public static void GetLeaderboard(GetEntityLeaderboardRequest 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("/Leaderboard/GetLeaderboard", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get the leaderboard around a specific entity. + /// + public static void GetLeaderboardAroundEntity(GetLeaderboardAroundEntityRequest 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("/Leaderboard/GetLeaderboardAroundEntity", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets the specified leaderboard definition. + /// + public static void GetLeaderboardDefinition(GetLeaderboardDefinitionRequest 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("/Leaderboard/GetLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get the leaderboard limited to a set of entities. + /// + public static void GetLeaderboardForEntities(GetLeaderboardForEntitiesRequest 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("/Leaderboard/GetLeaderboardForEntities", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get current statistic definition information + /// + public static void GetStatisticDefinition(GetStatisticDefinitionRequest 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/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets statistics for the specified entity. + /// + public static void GetStatistics(GetStatisticsRequest 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/GetStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Gets statistics for the specified collection of entities. + /// + public static void GetStatisticsForEntities(GetStatisticsForEntitiesRequest 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/GetStatisticsForEntities", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Increment a leaderboard version. + /// + public static void IncrementLeaderboardVersion(IncrementLeaderboardVersionRequest 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("/Leaderboard/IncrementLeaderboardVersion", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Increment an entity statistic definition version. + /// + public static void IncrementStatisticVersion(IncrementStatisticVersionRequest 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/IncrementStatisticVersion", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Lists the leaderboard definitions defined for the Title. + /// + public static void ListLeaderboardDefinitions(ListLeaderboardDefinitionsRequest 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("/Leaderboard/ListLeaderboardDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Get all current statistic definitions information + /// + public static void ListStatisticDefinitions(ListStatisticDefinitionsRequest 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/ListStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Unlinks a leaderboard definition from it's linked statistic definition. + /// + public static void UnlinkLeaderboardFromStatistic(UnlinkLeaderboardFromStatisticRequest 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("/Leaderboard/UnlinkLeaderboardFromStatistic", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Adds or updates entries on the specified leaderboard. + /// + public static void UpdateLeaderboardEntries(UpdateLeaderboardEntriesRequest 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("/Leaderboard/UpdateLeaderboardEntries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + /// + /// Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on + /// various leaderboards. + /// + public static void UpdateStatistics(UpdateStatisticsRequest 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/UpdateStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + + + } +} + +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs.meta b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs.meta new file mode 100644 index 000000000..ea6b3eb06 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionAPI.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77a7d66f0cc99ad40a5068f8a1e2865f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs new file mode 100644 index 000000000..30470dddf --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs @@ -0,0 +1,289 @@ +#if !DISABLE_PLAYFABENTITY_API + +using System; +using System.Collections.Generic; +using PlayFab.ProgressionModels; +using PlayFab.Internal; +using PlayFab.SharedModels; + +namespace PlayFab +{ + /// + /// Manage entity statistics Manage entity leaderboards + /// + public class PlayFabProgressionInstanceAPI : IPlayFabInstanceApi + { + public readonly PlayFabApiSettings apiSettings = null; + public readonly PlayFabAuthenticationContext authenticationContext = null; + + public PlayFabProgressionInstanceAPI(PlayFabAuthenticationContext context) + { + if (context == null) + throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call .GetAuthenticationContext()"); + authenticationContext = context; + } + + public PlayFabProgressionInstanceAPI(PlayFabApiSettings settings, PlayFabAuthenticationContext context) + { + if (context == null) + throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call .GetAuthenticationContext()"); + apiSettings = settings; + authenticationContext = context; + } + + /// + /// Verify entity login. + /// + public bool IsEntityLoggedIn() + { + return authenticationContext == null ? false : authenticationContext.IsEntityLoggedIn(); + } + + /// + /// Clear the Client SessionToken which allows this Client to call API calls requiring login. + /// A new/fresh login will be required after calling this. + /// + public void ForgetAllCredentials() + { + if (authenticationContext != null) + { + authenticationContext.ForgetAllCredentials(); + } + } + + /// + /// Creates a new leaderboard definition. + /// + public void CreateLeaderboardDefinition(CreateLeaderboardDefinitionRequest 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("/Leaderboard/CreateLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Create a new entity statistic definition. + /// + public void CreateStatisticDefinition(CreateStatisticDefinitionRequest 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/CreateStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes a leaderboard definition. + /// + public void DeleteLeaderboardDefinition(DeleteLeaderboardDefinitionRequest 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("/Leaderboard/DeleteLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Deletes the specified entries from the given leaderboard. + /// + public void DeleteLeaderboardEntries(DeleteLeaderboardEntriesRequest 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("/Leaderboard/DeleteLeaderboardEntries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Delete an entity statistic definition. Will delete all statistics on entity profiles and leaderboards. + /// + public void DeleteStatisticDefinition(DeleteStatisticDefinitionRequest 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/DeleteStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Delete statistics on an entity profile. This will remove all rankings from associated leaderboards. + /// + public void DeleteStatistics(DeleteStatisticsRequest 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/DeleteStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. + /// + public void GetFriendLeaderboardForEntity(GetFriendLeaderboardForEntityRequest 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("/Leaderboard/GetFriendLeaderboardForEntity", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get the leaderboard for a specific entity type and statistic. + /// + public void GetLeaderboard(GetEntityLeaderboardRequest 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("/Leaderboard/GetLeaderboard", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get the leaderboard around a specific entity. + /// + public void GetLeaderboardAroundEntity(GetLeaderboardAroundEntityRequest 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("/Leaderboard/GetLeaderboardAroundEntity", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets the specified leaderboard definition. + /// + public void GetLeaderboardDefinition(GetLeaderboardDefinitionRequest 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("/Leaderboard/GetLeaderboardDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get the leaderboard limited to a set of entities. + /// + public void GetLeaderboardForEntities(GetLeaderboardForEntitiesRequest 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("/Leaderboard/GetLeaderboardForEntities", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get current statistic definition information + /// + public void GetStatisticDefinition(GetStatisticDefinitionRequest 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/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets statistics for the specified entity. + /// + public void GetStatistics(GetStatisticsRequest 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/GetStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Gets statistics for the specified collection of entities. + /// + public void GetStatisticsForEntities(GetStatisticsForEntitiesRequest 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/GetStatisticsForEntities", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Increment a leaderboard version. + /// + public void IncrementLeaderboardVersion(IncrementLeaderboardVersionRequest 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("/Leaderboard/IncrementLeaderboardVersion", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Increment an entity statistic definition version. + /// + public void IncrementStatisticVersion(IncrementStatisticVersionRequest 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/IncrementStatisticVersion", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Lists the leaderboard definitions defined for the Title. + /// + public void ListLeaderboardDefinitions(ListLeaderboardDefinitionsRequest 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("/Leaderboard/ListLeaderboardDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Get all current statistic definitions information + /// + public void ListStatisticDefinitions(ListStatisticDefinitionsRequest 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/ListStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Unlinks a leaderboard definition from it's linked statistic definition. + /// + public void UnlinkLeaderboardFromStatistic(UnlinkLeaderboardFromStatisticRequest 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("/Leaderboard/UnlinkLeaderboardFromStatistic", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Adds or updates entries on the specified leaderboard. + /// + public void UpdateLeaderboardEntries(UpdateLeaderboardEntriesRequest 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("/Leaderboard/UpdateLeaderboardEntries", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + /// + /// Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on + /// various leaderboards. + /// + public void UpdateStatistics(UpdateStatisticsRequest 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/UpdateStatistics", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + + } +} + +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs.meta b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs.meta new file mode 100644 index 000000000..cb5925006 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b633860fe71fc24dacbbfe3f943e227 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs new file mode 100644 index 000000000..f8e91df70 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs @@ -0,0 +1,897 @@ +#if !DISABLE_PLAYFABENTITY_API +using System; +using System.Collections.Generic; +using PlayFab.SharedModels; + +namespace PlayFab.ProgressionModels +{ + [Serializable] + public class CreateLeaderboardDefinitionRequest : PlayFabRequestCommon + { + /// + /// Leaderboard columns describing the sort directions, cannot be changed after creation. + /// + public List Columns; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use + /// 'external' as the type. + /// + public string EntityType; + /// + /// A name for the leaderboard, unique per title. + /// + public string Name; + /// + /// Maximum number of entries on this leaderboard + /// + public int SizeLimit; + /// + /// The version reset configuration for the leaderboard definition. + /// + public VersionConfiguration VersionConfiguration; + } + + [Serializable] + public class CreateStatisticDefinitionRequest : PlayFabRequestCommon + { + /// + /// The columns for the statistic defining the aggregation method for each column. + /// + public List Columns; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The entity type allowed to have score(s) for this statistic. + /// + public string EntityType; + /// + /// Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. + /// + public string Name; + /// + /// The version reset configuration for the statistic definition. + /// + public VersionConfiguration VersionConfiguration; + } + + [Serializable] + public class DeleteLeaderboardDefinitionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the leaderboard definition to delete. + /// + public string Name; + } + + [Serializable] + public class DeleteLeaderboardEntriesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The unique Ids of the entries to delete from the leaderboard. + /// + public List EntityIds; + /// + /// The name of the leaderboard. + /// + public string Name; + } + + [Serializable] + public class DeleteStatisticDefinitionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Name of the statistic to delete. + /// + public string Name; + } + + [Serializable] + public class DeleteStatisticsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// Collection of statistics to remove from this entity. + /// + public List Statistics; + } + + [Serializable] + public class DeleteStatisticsResponse : PlayFabResultCommon + { + /// + /// The entity id and type. + /// + public EntityKey Entity; + } + + [Serializable] + public class EmptyResponse : PlayFabResultCommon + { + } + + /// + /// Combined entity type and ID structure which uniquely identifies a single entity. + /// + [Serializable] + public class EntityKey : PlayFabBaseModel + { + /// + /// Unique ID of the entity. + /// + public string Id; + /// + /// Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types + /// + public string Type; + } + + /// + /// Individual rank of an entity in a leaderboard + /// + [Serializable] + public class EntityLeaderboardEntry : PlayFabBaseModel + { + /// + /// Entity's display name. + /// + public string DisplayName; + /// + /// Entity identifier. + /// + public EntityKey Entity; + /// + /// The time at which the last update to the entry was recorded on the server. + /// + public DateTime LastUpdated; + /// + /// An opaque blob of data stored on the leaderboard entry. Note that the metadata is not used for ranking purposes. + /// + public string Metadata; + /// + /// Position on the leaderboard. + /// + public int Rank; + /// + /// Scores for the entry. + /// + public List Scores; + } + + [Serializable] + public class EntityStatistics : PlayFabBaseModel + { + /// + /// Entity key + /// + public EntityKey EntityKey; + /// + /// All statistics for the given entitykey + /// + public List Statistics; + } + + [Serializable] + public class EntityStatisticValue : PlayFabBaseModel + { + /// + /// Metadata associated with the Statistic. + /// + public string Metadata; + /// + /// Statistic name + /// + public string Name; + /// + /// Statistic scores + /// + public List Scores; + /// + /// Statistic version + /// + public int Version; + } + + public enum ExternalFriendSources + { + None, + Steam, + Facebook, + Xbox, + Psn, + All + } + + /// + /// Request to load a leaderboard. + /// + [Serializable] + public class GetEntityLeaderboardRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Name of the leaderboard. + /// + public string LeaderboardName; + /// + /// Maximum number of results to return from the leaderboard. Minimum 1, maximum 1,000. + /// + public uint PageSize; + /// + /// Index position to start from. 1 is beginning of leaderboard. + /// + public uint? StartingPosition; + /// + /// Optional version of the leaderboard, defaults to current version. + /// + public uint? Version; + } + + /// + /// Leaderboard response + /// + [Serializable] + public class GetEntityLeaderboardResponse : PlayFabResultCommon + { + /// + /// Leaderboard columns describing the sort directions. + /// + public List Columns; + /// + /// The number of entries on the leaderboard. + /// + public uint EntryCount; + /// + /// Individual entity rankings in the leaderboard, in sorted order by rank. + /// + public List Rankings; + /// + /// Version of the leaderboard being returned. + /// + public uint Version; + } + + [Serializable] + public class GetFriendLeaderboardForEntityRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// Indicates which other platforms' friends should be included in the response. In HTTP, it is represented as a + /// comma-separated list of platforms. + /// + public ExternalFriendSources? ExternalFriendSources; + /// + /// Name of the leaderboard. + /// + public string LeaderboardName; + /// + /// Optional version of the leaderboard, defaults to current version. + /// + public uint? Version; + /// + /// Xbox token if Xbox friends should be included. Requires Xbox be configured on PlayFab. + /// + public string XboxToken; + } + + /// + /// Request to load a section of a leaderboard centered on a specific entity. + /// + [Serializable] + public class GetLeaderboardAroundEntityRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// Name of the leaderboard. + /// + public string LeaderboardName; + /// + /// Number of surrounding entries to return (in addition to specified entity). In general, the number of ranks above and + /// below will be split into half. For example, if the specified value is 10, 5 ranks above and 5 ranks below will be + /// retrieved. However, the numbers will get skewed in either direction when the specified entity is towards the top or + /// bottom of the leaderboard. Also, the number of entries returned can be lower than the value specified for entries at the + /// bottom of the leaderboard. + /// + public uint MaxSurroundingEntries; + /// + /// Optional version of the leaderboard, defaults to current. + /// + public uint? Version; + } + + [Serializable] + public class GetLeaderboardDefinitionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the leaderboard to retrieve the definition for. + /// + public string Name; + } + + [Serializable] + public class GetLeaderboardDefinitionResponse : PlayFabResultCommon + { + /// + /// Sort direction of the leaderboard columns, cannot be changed after creation. + /// + public List Columns; + /// + /// Created time, in UTC + /// + public DateTime Created; + /// + /// The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use + /// 'external' as the type. + /// + public string EntityType; + /// + /// Last time, in UTC, leaderboard version was incremented. + /// + public DateTime? LastResetTime; + /// + /// A name for the leaderboard, unique per title. + /// + public string Name; + /// + /// Maximum number of entries on this leaderboard + /// + public int SizeLimit; + /// + /// Latest Leaderboard version. + /// + public uint Version; + /// + /// The version reset configuration for the leaderboard definition. + /// + public VersionConfiguration VersionConfiguration; + } + + /// + /// Request a leaderboard limited to a collection of entities. + /// + [Serializable] + public class GetLeaderboardForEntitiesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Collection of Entity IDs to include in the leaderboard. + /// + public List EntityIds; + /// + /// Name of the leaderboard. + /// + public string LeaderboardName; + /// + /// Optional version of the leaderboard, defaults to current. + /// + public uint? Version; + } + + [Serializable] + public class GetStatisticDefinitionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Name of the statistic. Must be less than 150 characters. + /// + public string Name; + } + + [Serializable] + public class GetStatisticDefinitionResponse : PlayFabResultCommon + { + /// + /// The columns for the statistic defining the aggregation method for each column. + /// + public List Columns; + /// + /// Created time, in UTC + /// + public DateTime Created; + /// + /// The entity type that can have this statistic. + /// + public string EntityType; + /// + /// Last time, in UTC, statistic version was incremented. + /// + public DateTime? LastResetTime; + /// + /// The list of leaderboards that are linked to this statistic definition. + /// + public List LinkedLeaderboardNames; + /// + /// Name of the statistic. + /// + public string Name; + /// + /// Statistic version. + /// + public uint Version; + /// + /// The version reset configuration for the leaderboard definition. + /// + public VersionConfiguration VersionConfiguration; + } + + [Serializable] + public class GetStatisticsForEntitiesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Collection of Entity IDs to retrieve statistics for. + /// + public List Entities; + } + + [Serializable] + public class GetStatisticsForEntitiesResponse : PlayFabResultCommon + { + /// + /// A mapping of statistic name to the columns defined in the corresponding definition. + /// + public Dictionary ColumnDetails; + /// + /// List of entities mapped to their statistics. Only the latest version of a statistic is returned. + /// + public List EntitiesStatistics; + } + + [Serializable] + public class GetStatisticsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + } + + [Serializable] + public class GetStatisticsResponse : PlayFabResultCommon + { + /// + /// A mapping of statistic name to the columns defined in the corresponding definition. + /// + public Dictionary ColumnDetails; + /// + /// The entity id and type. + /// + public EntityKey Entity; + /// + /// List of statistics keyed by Name. Only the latest version of a statistic is returned. + /// + public Dictionary Statistics; + } + + [Serializable] + public class IncrementLeaderboardVersionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the leaderboard to increment the version for. + /// + public string Name; + } + + [Serializable] + public class IncrementLeaderboardVersionResponse : PlayFabResultCommon + { + /// + /// New Leaderboard version. + /// + public uint Version; + } + + [Serializable] + public class IncrementStatisticVersionRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Name of the statistic to increment the version of. + /// + public string Name; + } + + [Serializable] + public class IncrementStatisticVersionResponse : PlayFabResultCommon + { + /// + /// New statistic version. + /// + public uint Version; + } + + [Serializable] + public class LeaderboardColumn : PlayFabBaseModel + { + /// + /// If the value for this column is sourced from a statistic, details of the linked column. Null if the leaderboard is not + /// linked. + /// + public LinkedStatisticColumn LinkedStatisticColumn; + /// + /// A name for the leaderboard column, unique per leaderboard definition. + /// + public string Name; + /// + /// The sort direction for this column. + /// + public LeaderboardSortDirection SortDirection; + } + + [Serializable] + public class LeaderboardDefinition : PlayFabBaseModel + { + /// + /// Sort direction of the leaderboard columns, cannot be changed after creation. + /// + public List Columns; + /// + /// Created time, in UTC + /// + public DateTime Created; + /// + /// The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use + /// 'external' as the type. + /// + public string EntityType; + /// + /// Last time, in UTC, leaderboard version was incremented. + /// + public DateTime? LastResetTime; + /// + /// A name for the leaderboard, unique per title. + /// + public string Name; + /// + /// Maximum number of entries on this leaderboard + /// + public int SizeLimit; + /// + /// Latest Leaderboard version. + /// + public uint Version; + /// + /// The version reset configuration for the leaderboard definition. + /// + public VersionConfiguration VersionConfiguration; + } + + [Serializable] + public class LeaderboardEntryUpdate : PlayFabBaseModel + { + /// + /// The unique Id for the entry. If using PlayFab Entities, this would be the entityId of the entity. + /// + public string EntityId; + /// + /// Arbitrary metadata to store along side the leaderboard entry, will be returned by all Leaderboard APIs. Must be less + /// than 50 UTF8 encoded characters. + /// + public string Metadata; + /// + /// The scores for the leaderboard. The number of values provided here must match the number of columns in the Leaderboard + /// definition. + /// + public List Scores; + } + + public enum LeaderboardSortDirection + { + Descending, + Ascending + } + + [Serializable] + public class LinkedStatisticColumn : PlayFabBaseModel + { + /// + /// The name of the statistic column that this leaderboard column is sourced from. + /// + public string LinkedStatisticColumnName; + /// + /// The name of the statistic. + /// + public string LinkedStatisticName; + } + + [Serializable] + public class ListLeaderboardDefinitionsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + } + + [Serializable] + public class ListLeaderboardDefinitionsResponse : PlayFabResultCommon + { + /// + /// List of leaderboard definitions for the title. + /// + public List LeaderboardDefinitions; + } + + [Serializable] + public class ListStatisticDefinitionsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + } + + [Serializable] + public class ListStatisticDefinitionsResponse : PlayFabResultCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// List of statistic definitions for the title. + /// + public List StatisticDefinitions; + } + + public enum ResetInterval + { + Manual, + Hour, + Day, + Week, + Month + } + + public enum StatisticAggregationMethod + { + Last, + Min, + Max, + Sum + } + + [Serializable] + public class StatisticColumn : PlayFabBaseModel + { + /// + /// Aggregation method for calculating new value of a statistic. + /// + public StatisticAggregationMethod AggregationMethod; + /// + /// Name of the statistic column, as originally configured. + /// + public string Name; + } + + [Serializable] + public class StatisticColumnCollection : PlayFabBaseModel + { + /// + /// Columns for the statistic defining the aggregation method for each column. + /// + public List Columns; + } + + [Serializable] + public class StatisticDefinition : PlayFabBaseModel + { + /// + /// The columns for the statistic defining the aggregation method for each column. + /// + public List Columns; + /// + /// Created time, in UTC + /// + public DateTime Created; + /// + /// The entity type that can have this statistic. + /// + public string EntityType; + /// + /// Last time, in UTC, statistic version was incremented. + /// + public DateTime? LastResetTime; + /// + /// The list of leaderboards that are linked to this statistic definition. + /// + public List LinkedLeaderboardNames; + /// + /// Name of the statistic. + /// + public string Name; + /// + /// Statistic version. + /// + public uint Version; + /// + /// The version reset configuration for the leaderboard definition. + /// + public VersionConfiguration VersionConfiguration; + } + + [Serializable] + public class StatisticDelete : PlayFabBaseModel + { + /// + /// Name of the statistic, as originally configured. + /// + public string Name; + } + + [Serializable] + public class StatisticUpdate : PlayFabBaseModel + { + /// + /// Arbitrary metadata to store along side the statistic, will be returned by all Leaderboard APIs. Must be less than 50 + /// UTF8 encoded characters. + /// + public string Metadata; + /// + /// Name of the statistic, as originally configured. + /// + public string Name; + /// + /// Statistic scores for the entity. This will be used in accordance with the aggregation method configured for the + /// statistics.The maximum value allowed for each individual score is 9223372036854775807. The minimum value for each + /// individual score is -9223372036854775807The values are formatted as strings to avoid interop issues with client + /// libraries unable to handle 64bit integers. + /// + public List Scores; + /// + /// Optional field to indicate the version of the statistic to set. When empty defaults to the statistic's current version. + /// + public uint? Version; + } + + [Serializable] + public class UnlinkLeaderboardFromStatisticRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The name of the leaderboard definition to unlink. + /// + public string Name; + /// + /// The name of the statistic definition to unlink. + /// + public string StatisticName; + } + + [Serializable] + public class UpdateLeaderboardEntriesRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The entries to add or update on the leaderboard. + /// + public List Entries; + /// + /// The name of the leaderboard. + /// + public string LeaderboardName; + } + + [Serializable] + public class UpdateStatisticsRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// The optional entity to perform this action on. Defaults to the currently logged in entity. + /// + public EntityKey Entity; + /// + /// Collection of statistics to update, maximum 50. + /// + public List Statistics; + } + + [Serializable] + public class UpdateStatisticsResponse : PlayFabResultCommon + { + /// + /// A mapping of statistic name to the columns defined in the corresponding definition. + /// + public Dictionary ColumnDetails; + /// + /// The entity id and type. + /// + public EntityKey Entity; + /// + /// Updated entity profile statistics. + /// + public Dictionary Statistics; + } + + [Serializable] + public class VersionConfiguration : PlayFabBaseModel + { + /// + /// The maximum number of versions of this leaderboard/statistic that can be queried. + /// + public int MaxQueryableVersions; + /// + /// Reset interval that statistics or leaderboards will reset on. When using Manual intervalthe reset can only be increased + /// by calling the Increase version API. When using Hour interval the resetwill occur at the start of the next hour UTC + /// time. When using Day interval the reset will occur at thestart of the next day in UTC time. When using the Week interval + /// the reset will occur at the start ofthe next Monday in UTC time. When using Month interval the reset will occur at the + /// start of the nextmonth in UTC time. + /// + public ResetInterval ResetInterval; + } +} +#endif diff --git a/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs.meta b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs.meta new file mode 100644 index 000000000..382d715d7 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Progression/PlayFabProgressionModels.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 98dd4b7b25d8a1c4481a206e643cb9e3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabEvents.cs index d4c24a301..c2fd71a80 100644 --- a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabEvents.cs @@ -35,8 +35,6 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerDeletePushNotificationTemplateResultEvent; public event PlayFabRequestEvent OnServerDeleteSharedGroupRequestEvent; public event PlayFabResultEvent OnServerDeleteSharedGroupResultEvent; - public event PlayFabRequestEvent OnServerDeregisterGameRequestEvent; - public event PlayFabResultEvent OnServerDeregisterGameResultEvent; public event PlayFabRequestEvent OnServerEvaluateRandomResultTableRequestEvent; public event PlayFabResultEvent OnServerEvaluateRandomResultTableResultEvent; public event PlayFabRequestEvent OnServerExecuteCloudScriptRequestEvent; @@ -99,8 +97,12 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent; public event PlayFabRequestEvent OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent; public event PlayFabResultEvent OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent; + public event PlayFabRequestEvent OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent; + public event PlayFabResultEvent OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent; public event PlayFabRequestEvent OnServerGetPlayFabIDsFromSteamIDsRequestEvent; public event PlayFabResultEvent OnServerGetPlayFabIDsFromSteamIDsResultEvent; + public event PlayFabRequestEvent OnServerGetPlayFabIDsFromSteamNamesRequestEvent; + public event PlayFabResultEvent OnServerGetPlayFabIDsFromSteamNamesResultEvent; public event PlayFabRequestEvent OnServerGetPlayFabIDsFromTwitchIDsRequestEvent; public event PlayFabResultEvent OnServerGetPlayFabIDsFromTwitchIDsResultEvent; public event PlayFabRequestEvent OnServerGetPlayFabIDsFromXboxLiveIDsRequestEvent; @@ -151,14 +153,22 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerGrantItemsToUsersResultEvent; public event PlayFabRequestEvent OnServerLinkNintendoServiceAccountRequestEvent; public event PlayFabResultEvent OnServerLinkNintendoServiceAccountResultEvent; + public event PlayFabRequestEvent OnServerLinkNintendoServiceAccountSubjectRequestEvent; + public event PlayFabResultEvent OnServerLinkNintendoServiceAccountSubjectResultEvent; public event PlayFabRequestEvent OnServerLinkNintendoSwitchDeviceIdRequestEvent; public event PlayFabResultEvent OnServerLinkNintendoSwitchDeviceIdResultEvent; public event PlayFabRequestEvent OnServerLinkPSNAccountRequestEvent; public event PlayFabResultEvent OnServerLinkPSNAccountResultEvent; + public event PlayFabRequestEvent OnServerLinkPSNIdRequestEvent; + public event PlayFabResultEvent OnServerLinkPSNIdResultEvent; public event PlayFabRequestEvent OnServerLinkServerCustomIdRequestEvent; public event PlayFabResultEvent OnServerLinkServerCustomIdResultEvent; + public event PlayFabRequestEvent OnServerLinkSteamIdRequestEvent; + public event PlayFabResultEvent OnServerLinkSteamIdResultEvent; public event PlayFabRequestEvent OnServerLinkXboxAccountRequestEvent; public event PlayFabResultEvent OnServerLinkXboxAccountResultEvent; + public event PlayFabRequestEvent OnServerLoginWithPSNRequestEvent; + public event PlayFabResultEvent OnServerLoginWithPSNResultEvent; public event PlayFabRequestEvent OnServerLoginWithServerCustomIdRequestEvent; public event PlayFabResultEvent OnServerLoginWithServerCustomIdResultEvent; public event PlayFabRequestEvent OnServerLoginWithSteamIdRequestEvent; @@ -175,16 +185,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerMoveItemToCharacterFromUserResultEvent; public event PlayFabRequestEvent OnServerMoveItemToUserFromCharacterRequestEvent; public event PlayFabResultEvent OnServerMoveItemToUserFromCharacterResultEvent; - public event PlayFabRequestEvent OnServerNotifyMatchmakerPlayerLeftRequestEvent; - public event PlayFabResultEvent OnServerNotifyMatchmakerPlayerLeftResultEvent; public event PlayFabRequestEvent OnServerRedeemCouponRequestEvent; public event PlayFabResultEvent OnServerRedeemCouponResultEvent; - public event PlayFabRequestEvent OnServerRedeemMatchmakerTicketRequestEvent; - public event PlayFabResultEvent OnServerRedeemMatchmakerTicketResultEvent; - public event PlayFabRequestEvent OnServerRefreshGameServerInstanceHeartbeatRequestEvent; - public event PlayFabResultEvent OnServerRefreshGameServerInstanceHeartbeatResultEvent; - public event PlayFabRequestEvent OnServerRegisterGameRequestEvent; - public event PlayFabResultEvent OnServerRegisterGameResultEvent; public event PlayFabRequestEvent OnServerRemoveFriendRequestEvent; public event PlayFabResultEvent OnServerRemoveFriendResultEvent; public event PlayFabRequestEvent OnServerRemoveGenericIDRequestEvent; @@ -215,12 +217,6 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerSendPushNotificationFromTemplateResultEvent; public event PlayFabRequestEvent OnServerSetFriendTagsRequestEvent; public event PlayFabResultEvent OnServerSetFriendTagsResultEvent; - public event PlayFabRequestEvent OnServerSetGameServerInstanceDataRequestEvent; - public event PlayFabResultEvent OnServerSetGameServerInstanceDataResultEvent; - public event PlayFabRequestEvent OnServerSetGameServerInstanceStateRequestEvent; - public event PlayFabResultEvent OnServerSetGameServerInstanceStateResultEvent; - public event PlayFabRequestEvent OnServerSetGameServerInstanceTagsRequestEvent; - public event PlayFabResultEvent OnServerSetGameServerInstanceTagsResultEvent; public event PlayFabRequestEvent OnServerSetPlayerSecretRequestEvent; public event PlayFabResultEvent OnServerSetPlayerSecretResultEvent; public event PlayFabRequestEvent OnServerSetPublisherDataRequestEvent; @@ -241,6 +237,8 @@ namespace PlayFab.Events public event PlayFabResultEvent OnServerUnlinkPSNAccountResultEvent; public event PlayFabRequestEvent OnServerUnlinkServerCustomIdRequestEvent; public event PlayFabResultEvent OnServerUnlinkServerCustomIdResultEvent; + public event PlayFabRequestEvent OnServerUnlinkSteamIdRequestEvent; + public event PlayFabResultEvent OnServerUnlinkSteamIdResultEvent; public event PlayFabRequestEvent OnServerUnlinkXboxAccountRequestEvent; public event PlayFabResultEvent OnServerUnlinkXboxAccountResultEvent; public event PlayFabRequestEvent OnServerUnlockContainerInstanceRequestEvent; diff --git a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerAPI.cs b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerAPI.cs index 3ffacd57b..b01c2ee96 100644 --- a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerAPI.cs @@ -26,7 +26,8 @@ namespace PlayFab } /// - /// Increments the character's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the character's balance of the specified virtual currency by the stated amount /// public static void AddCharacterVirtualCurrency(AddCharacterVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -97,7 +98,8 @@ namespace PlayFab } /// - /// Increments the user's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the user's balance of the specified virtual currency by the stated amount /// public static void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -149,7 +151,9 @@ namespace PlayFab } /// - /// Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's + /// inventory. /// public static void ConsumeItem(ConsumeItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -232,22 +236,10 @@ namespace PlayFab } /// - /// Inform the matchmaker that a Game Server Instance is removed. - /// - [Obsolete("No longer available", false)] - public static void DeregisterGame(DeregisterGameRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/DeregisterGame", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would have been - /// added to the player inventory, if the Random Result Table were added via a Bundle or a call to UnlockContainer. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would + /// have been added to the player inventory, if the Random Result Table were added via a Bundle or a call to + /// UnlockContainer. /// public static void EvaluateRandomResultTable(EvaluateRandomResultTableRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -322,7 +314,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public static void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -361,7 +354,8 @@ namespace PlayFab } /// - /// Retrieves the specified character's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified character's current inventory of virtual goods /// public static void GetCharacterInventory(GetCharacterInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -686,6 +680,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromPSNAccountIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. + /// + public static void GetPlayFabIDsFromPSNOnlineIDs(GetPlayFabIDsFromPSNOnlineIDsRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromPSNOnlineIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile /// IDs for the user accounts, available as SteamId in the Steamworks Community API calls. @@ -700,6 +707,20 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona + /// names. + /// + public static void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamNames", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for /// the user accounts, available as "_id" from the Twitch API methods (ex: @@ -742,8 +763,9 @@ namespace PlayFab } /// - /// Retrieves the configuration information for the specified random results tables for the title, including all ItemId - /// values and weights + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the configuration information for the specified random results tables for the title, including all + /// ItemId values and weights /// public static void GetRandomResultTables(GetRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -784,7 +806,9 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined, for the specified player + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined, for the specified + /// player /// public static void GetStoreItems(GetStoreItemsServerRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -901,7 +925,8 @@ namespace PlayFab } /// - /// Retrieves the specified user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified user's current inventory of virtual goods /// public static void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -980,7 +1005,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified character's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified character's inventory /// public static void GrantItemsToCharacter(GrantItemsToCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -993,7 +1019,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user's inventory /// public static void GrantItemsToUser(GrantItemsToUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1006,7 +1033,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user inventories + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user inventories /// public static void GrantItemsToUsers(GrantItemsToUsersRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1031,6 +1059,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkNintendoServiceAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + /// + public static void LinkNintendoServiceAccountSubject(LinkNintendoServiceAccountSubjectRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/LinkNintendoServiceAccountSubject", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Links the NintendoSwitchDeviceId to the user's PlayFab account /// @@ -1057,6 +1098,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkPSNAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Links the PlayStation :tm: Network account associated with the provided user id to the user's PlayFab account + /// + public static void LinkPSNId(LinkPSNIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/LinkPSNId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Links the custom server identifier, generated by the title, to the user's PlayFab account. /// @@ -1070,6 +1124,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkServerCustomId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Links the Steam account associated with the provided Steam ID to the user's PlayFab account + /// + public static void LinkSteamId(LinkSteamIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/LinkSteamId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Links the Xbox Live account associated with the provided access code to the user's PlayFab account /// @@ -1083,6 +1150,20 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkXboxAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can + /// subsequently be used for API calls which require an authenticated user + /// + public static void LoginWithPSN(LoginWithPSNRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/LoginWithPSN", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID /// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account. @@ -1140,7 +1221,8 @@ namespace PlayFab } /// - /// Modifies the number of remaining uses of a player's inventory item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Modifies the number of remaining uses of a player's inventory item /// public static void ModifyItemUses(ModifyItemUsesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1153,7 +1235,8 @@ namespace PlayFab } /// - /// Moves an item from a character's inventory into another of the users's character's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a character's inventory into another of the users's character's inventory. /// public static void MoveItemToCharacterFromCharacter(MoveItemToCharacterFromCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1166,7 +1249,8 @@ namespace PlayFab } /// - /// Moves an item from a user's inventory into their character's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a user's inventory into their character's inventory. /// public static void MoveItemToCharacterFromUser(MoveItemToCharacterFromUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1179,7 +1263,8 @@ namespace PlayFab } /// - /// Moves an item from a character's inventory into the owning user's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a character's inventory into the owning user's inventory. /// public static void MoveItemToUserFromCharacter(MoveItemToUserFromCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1192,21 +1277,8 @@ namespace PlayFab } /// - /// Informs the PlayFab match-making service that the user specified has left the Game Server Instance - /// - [Obsolete("No longer available", false)] - public static void NotifyMatchmakerPlayerLeft(NotifyMatchmakerPlayerLeftRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/NotifyMatchmakerPlayerLeft", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the /// Economy->Catalogs tab in the PlayFab Game Manager. /// public static void RedeemCoupon(RedeemCouponRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1219,48 +1291,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/RedeemCoupon", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Validates a Game Server session ticket and returns details about the user - /// - [Obsolete("No longer available", false)] - public static void RedeemMatchmakerTicket(RedeemMatchmakerTicketRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/RedeemMatchmakerTicket", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - /// - [Obsolete("No longer available", false)] - public static void RefreshGameServerInstanceHeartbeat(RefreshGameServerInstanceHeartbeatRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/RefreshGameServerInstanceHeartbeat", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Inform the matchmaker that a new Game Server Instance is added. - /// - [Obsolete("No longer available", false)] - public static void RegisterGame(RegisterGameRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/RegisterGame", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Removes the specified friend from the the user's friend list /// @@ -1357,7 +1387,8 @@ namespace PlayFab } /// - /// Revokes access to an item in a user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access to an item in a user's inventory /// public static void RevokeInventoryItem(RevokeInventoryItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1370,7 +1401,8 @@ namespace PlayFab } /// - /// Revokes access for up to 25 items across multiple users and characters. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access for up to 25 items across multiple users and characters. /// public static void RevokeInventoryItems(RevokeInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1463,48 +1495,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/SetFriendTags", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } - /// - /// Sets the custom data of the indicated Game Server Instance - /// - [Obsolete("No longer available", false)] - public static void SetGameServerInstanceData(SetGameServerInstanceDataRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceData", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Set the state of the indicated Game Server Instance. - /// - [Obsolete("No longer available", false)] - public static void SetGameServerInstanceState(SetGameServerInstanceStateRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceState", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - - /// - /// Set custom tags for the specified Game Server Instance - /// - [Obsolete("No longer available", false)] - public static void SetGameServerInstanceTags(SetGameServerInstanceTagsRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - - - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceTags", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); - } - /// /// Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's /// secret use the Admin or Server API method SetPlayerSecret. @@ -1559,8 +1549,9 @@ namespace PlayFab } /// - /// Decrements the character's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the character's balance of the specified virtual currency by the stated amount. It is possible to + /// make a VC balance negative with this API. /// public static void SubtractCharacterVirtualCurrency(SubtractCharacterVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1573,8 +1564,9 @@ namespace PlayFab } /// - /// Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make + /// a VC balance negative with this API. /// public static void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1638,6 +1630,19 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/UnlinkServerCustomId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); } + /// + /// Unlinks the Steam account associated with the provided Steam ID to the user's PlayFab account + /// + public static void UnlinkSteamId(UnlinkSteamIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + + + PlayFabHttp.MakeApiCall("/Server/UnlinkSteamId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings); + } + /// /// Unlinks the related Xbox Live account from the user's PlayFab account /// @@ -1652,9 +1657,10 @@ namespace PlayFab } /// - /// Opens a specific container (ContainerItemInstanceId), with a specific key (KeyItemInstanceId, when required), and - /// returns the contents of the opened container. If the container (and key when relevant) are consumable (RemainingUses > - /// 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Opens a specific container (ContainerItemInstanceId), with a specific key (KeyItemInstanceId, when + /// required), and returns the contents of the opened container. If the container (and key when relevant) are consumable + /// (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. /// public static void UnlockContainerInstance(UnlockContainerInstanceRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1667,9 +1673,10 @@ namespace PlayFab } /// - /// Searches Player or Character inventory for any ItemInstance matching the given CatalogItemId, if necessary unlocks it - /// using any appropriate key, and returns the contents of the opened container. If the container (and key when relevant) - /// are consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Searches Player or Character inventory for any ItemInstance matching the given CatalogItemId, if necessary + /// unlocks it using any appropriate key, and returns the contents of the opened container. If the container (and key when + /// relevant) are consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of /// ConsumeItem. /// public static void UnlockContainerItem(UnlockContainerItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1817,7 +1824,8 @@ namespace PlayFab } /// - /// Updates the key-value pair data tagged to the specified item, which is read-only from the client. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the key-value pair data tagged to the specified item, which is read-only from the client. /// public static void UpdateUserInventoryItemCustomData(UpdateUserInventoryItemDataRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerInstanceAPI.cs b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerInstanceAPI.cs index 1a8fa4c91..55a90d895 100644 --- a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerInstanceAPI.cs +++ b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerInstanceAPI.cs @@ -48,7 +48,8 @@ namespace PlayFab } /// - /// Increments the character's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the character's balance of the specified virtual currency by the stated amount /// public void AddCharacterVirtualCurrency(AddCharacterVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -109,7 +110,8 @@ namespace PlayFab } /// - /// Increments the user's balance of the specified virtual currency by the stated amount + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Increments the user's balance of the specified virtual currency by the stated amount /// public void AddUserVirtualCurrency(AddUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -153,7 +155,9 @@ namespace PlayFab } /// - /// Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's + /// inventory. /// public void ConsumeItem(ConsumeItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -224,20 +228,10 @@ namespace PlayFab } /// - /// Inform the matchmaker that a Game Server Instance is removed. - /// - [Obsolete("No longer available", false)] - public void DeregisterGame(DeregisterGameRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/DeregisterGame", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would have been - /// added to the player inventory, if the Random Result Table were added via a Bundle or a call to UnlockContainer. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would + /// have been added to the player inventory, if the Random Result Table were added via a Bundle or a call to + /// UnlockContainer. /// public void EvaluateRandomResultTable(EvaluateRandomResultTableRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -304,7 +298,8 @@ namespace PlayFab } /// - /// Retrieves the specified version of the title's catalog of virtual goods, including all defined properties + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties /// public void GetCatalogItems(GetCatalogItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -337,7 +332,8 @@ namespace PlayFab } /// - /// Retrieves the specified character's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified character's current inventory of virtual goods /// public void GetCharacterInventory(GetCharacterInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -614,6 +610,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromPSNAccountIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. + /// + public void GetPlayFabIDsFromPSNOnlineIDs(GetPlayFabIDsFromPSNOnlineIDsRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromPSNOnlineIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile /// IDs for the user accounts, available as SteamId in the Steamworks Community API calls. @@ -626,6 +633,18 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona + /// names. + /// + public void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamNames", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for /// the user accounts, available as "_id" from the Twitch API methods (ex: @@ -662,8 +681,9 @@ namespace PlayFab } /// - /// Retrieves the configuration information for the specified random results tables for the title, including all ItemId - /// values and weights + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the configuration information for the specified random results tables for the title, including all + /// ItemId values and weights /// public void GetRandomResultTables(GetRandomResultTablesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -698,7 +718,9 @@ namespace PlayFab } /// - /// Retrieves the set of items defined for the specified store, including all prices defined, for the specified player + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the set of items defined for the specified store, including all prices defined, for the specified + /// player /// public void GetStoreItems(GetStoreItemsServerRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -797,7 +819,8 @@ namespace PlayFab } /// - /// Retrieves the specified user's current inventory of virtual goods + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Retrieves the specified user's current inventory of virtual goods /// public void GetUserInventory(GetUserInventoryRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -864,7 +887,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified character's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified character's inventory /// public void GrantItemsToCharacter(GrantItemsToCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -875,7 +899,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user's inventory /// public void GrantItemsToUser(GrantItemsToUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -886,7 +911,8 @@ namespace PlayFab } /// - /// Adds the specified items to the specified user inventories + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the specified items to the specified user inventories /// public void GrantItemsToUsers(GrantItemsToUsersRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -907,6 +933,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkNintendoServiceAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Links the Nintendo account associated with the Nintendo Service Account subject or id to the user's PlayFab account + /// + public void LinkNintendoServiceAccountSubject(LinkNintendoServiceAccountSubjectRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/LinkNintendoServiceAccountSubject", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Links the NintendoSwitchDeviceId to the user's PlayFab account /// @@ -929,6 +966,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkPSNAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Links the PlayStation :tm: Network account associated with the provided user id to the user's PlayFab account + /// + public void LinkPSNId(LinkPSNIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/LinkPSNId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Links the custom server identifier, generated by the title, to the user's PlayFab account. /// @@ -940,6 +988,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkServerCustomId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Links the Steam account associated with the provided Steam ID to the user's PlayFab account + /// + public void LinkSteamId(LinkSteamIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/LinkSteamId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Links the Xbox Live account associated with the provided access code to the user's PlayFab account /// @@ -951,6 +1010,18 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/LinkXboxAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can + /// subsequently be used for API calls which require an authenticated user + /// + public void LoginWithPSN(LoginWithPSNRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/LoginWithPSN", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID /// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account. @@ -1000,7 +1071,8 @@ namespace PlayFab } /// - /// Modifies the number of remaining uses of a player's inventory item + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Modifies the number of remaining uses of a player's inventory item /// public void ModifyItemUses(ModifyItemUsesRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1011,7 +1083,8 @@ namespace PlayFab } /// - /// Moves an item from a character's inventory into another of the users's character's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a character's inventory into another of the users's character's inventory. /// public void MoveItemToCharacterFromCharacter(MoveItemToCharacterFromCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1022,7 +1095,8 @@ namespace PlayFab } /// - /// Moves an item from a user's inventory into their character's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a user's inventory into their character's inventory. /// public void MoveItemToCharacterFromUser(MoveItemToCharacterFromUserRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1033,7 +1107,8 @@ namespace PlayFab } /// - /// Moves an item from a character's inventory into the owning user's inventory. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Moves an item from a character's inventory into the owning user's inventory. /// public void MoveItemToUserFromCharacter(MoveItemToUserFromCharacterRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1044,19 +1119,8 @@ namespace PlayFab } /// - /// Informs the PlayFab match-making service that the user specified has left the Game Server Instance - /// - [Obsolete("No longer available", false)] - public void NotifyMatchmakerPlayerLeft(NotifyMatchmakerPlayerLeftRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/NotifyMatchmakerPlayerLeft", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the /// Economy->Catalogs tab in the PlayFab Game Manager. /// public void RedeemCoupon(RedeemCouponRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1067,42 +1131,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/RedeemCoupon", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Validates a Game Server session ticket and returns details about the user - /// - [Obsolete("No longer available", false)] - public void RedeemMatchmakerTicket(RedeemMatchmakerTicketRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/RedeemMatchmakerTicket", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Set the state of the indicated Game Server Instance. Also update the heartbeat for the instance. - /// - [Obsolete("No longer available", false)] - public void RefreshGameServerInstanceHeartbeat(RefreshGameServerInstanceHeartbeatRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/RefreshGameServerInstanceHeartbeat", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Inform the matchmaker that a new Game Server Instance is added. - /// - [Obsolete("No longer available", false)] - public void RegisterGame(RegisterGameRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/RegisterGame", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Removes the specified friend from the the user's friend list /// @@ -1185,7 +1213,8 @@ namespace PlayFab } /// - /// Revokes access to an item in a user's inventory + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access to an item in a user's inventory /// public void RevokeInventoryItem(RevokeInventoryItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1196,7 +1225,8 @@ namespace PlayFab } /// - /// Revokes access for up to 25 items across multiple users and characters. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Revokes access for up to 25 items across multiple users and characters. /// public void RevokeInventoryItems(RevokeInventoryItemsRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1275,42 +1305,6 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/SetFriendTags", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } - /// - /// Sets the custom data of the indicated Game Server Instance - /// - [Obsolete("No longer available", false)] - public void SetGameServerInstanceData(SetGameServerInstanceDataRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceData", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Set the state of the indicated Game Server Instance. - /// - [Obsolete("No longer available", false)] - public void SetGameServerInstanceState(SetGameServerInstanceStateRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceState", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - - /// - /// Set custom tags for the specified Game Server Instance - /// - [Obsolete("No longer available", false)] - public void SetGameServerInstanceTags(SetGameServerInstanceTagsRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } - PlayFabHttp.MakeApiCall("/Server/SetGameServerInstanceTags", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); - } - /// /// Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's /// secret use the Admin or Server API method SetPlayerSecret. @@ -1357,8 +1351,9 @@ namespace PlayFab } /// - /// Decrements the character's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the character's balance of the specified virtual currency by the stated amount. It is possible to + /// make a VC balance negative with this API. /// public void SubtractCharacterVirtualCurrency(SubtractCharacterVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1369,8 +1364,9 @@ namespace PlayFab } /// - /// Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make a VC - /// balance negative with this API. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make + /// a VC balance negative with this API. /// public void SubtractUserVirtualCurrency(SubtractUserVirtualCurrencyRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1424,6 +1420,17 @@ namespace PlayFab PlayFabHttp.MakeApiCall("/Server/UnlinkServerCustomId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); } + /// + /// Unlinks the Steam account associated with the provided Steam ID to the user's PlayFab account + /// + public void UnlinkSteamId(UnlinkSteamIdRequest 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); } + PlayFabHttp.MakeApiCall("/Server/UnlinkSteamId", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); + } + /// /// Unlinks the related Xbox Live account from the user's PlayFab account /// @@ -1436,9 +1443,10 @@ namespace PlayFab } /// - /// Opens a specific container (ContainerItemInstanceId), with a specific key (KeyItemInstanceId, when required), and - /// returns the contents of the opened container. If the container (and key when relevant) are consumable (RemainingUses > - /// 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Opens a specific container (ContainerItemInstanceId), with a specific key (KeyItemInstanceId, when + /// required), and returns the contents of the opened container. If the container (and key when relevant) are consumable + /// (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem. /// public void UnlockContainerInstance(UnlockContainerInstanceRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { @@ -1449,9 +1457,10 @@ namespace PlayFab } /// - /// Searches Player or Character inventory for any ItemInstance matching the given CatalogItemId, if necessary unlocks it - /// using any appropriate key, and returns the contents of the opened container. If the container (and key when relevant) - /// are consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Searches Player or Character inventory for any ItemInstance matching the given CatalogItemId, if necessary + /// unlocks it using any appropriate key, and returns the contents of the opened container. If the container (and key when + /// relevant) are consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of /// ConsumeItem. /// public void UnlockContainerItem(UnlockContainerItemRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) @@ -1577,7 +1586,8 @@ namespace PlayFab } /// - /// Updates the key-value pair data tagged to the specified item, which is read-only from the client. + /// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for + /// version 2._ Updates the key-value pair data tagged to the specified item, which is read-only from the client. /// public void UpdateUserInventoryItemCustomData(UpdateUserInventoryItemDataRequest request, Action resultCallback, Action errorCallback, object customData = null, Dictionary extraHeaders = null) { diff --git a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerModels.cs b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerModels.cs index 54b78a216..895515247 100644 --- a/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerModels.cs +++ b/Assets/ThirdParty/PlayFabSDK/Server/PlayFabServerModels.cs @@ -284,6 +284,10 @@ namespace PlayFab.ServerModels /// The reason why this ban was applied. /// public string Reason; + /// + /// The family type of the suer that is included in the ban. + /// + public string UserFamilyType; } /// @@ -308,6 +312,10 @@ namespace PlayFab.ServerModels /// The reason for this ban. Maximum 140 characters. /// public string Reason; + /// + /// The family type of the user that should be included in the ban if applicable. May affect multiple players. + /// + public UserFamilyType? UserFamilyType; } /// @@ -650,7 +658,8 @@ namespace PlayFab.ServerModels EU, NA, OC, - SA + SA, + Unknown } public enum CountryCode @@ -903,7 +912,8 @@ namespace PlayFab.ServerModels EH, YE, ZM, - ZW + ZW, + Unknown } /// @@ -1176,24 +1186,6 @@ namespace PlayFab.ServerModels public string SharedGroupId; } - [Serializable] - public class DeregisterGameRequest : PlayFabRequestCommon - { - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// Unique identifier for the Game Server Instance that is being deregistered. - /// - public string LobbyId; - } - - [Serializable] - public class DeregisterGameResponse : PlayFabResultCommon - { - } - public enum EmailVerificationStatus { Unverified, @@ -1398,7 +1390,7 @@ namespace PlayFab.ServerModels 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; /// @@ -1406,7 +1398,8 @@ namespace PlayFab.ServerModels /// 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; /// @@ -1414,12 +1407,12 @@ namespace PlayFab.ServerModels /// 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; /// @@ -1435,17 +1428,11 @@ namespace PlayFab.ServerModels /// 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; } - public enum GameInstanceState - { - Open, - Closed - } - public enum GenericErrorCodes { Success, @@ -1997,6 +1984,42 @@ namespace PlayFab.ServerModels NamespaceMismatch, InvalidServiceConfiguration, InvalidNamespaceMismatch, + LeaderboardColumnLengthMismatch, + InvalidStatisticScore, + LeaderboardColumnsNotSpecified, + LeaderboardMaxSizeTooLarge, + InvalidAttributeStatisticsSpecified, + LeaderboardNotFound, + TokenSigningKeyNotFound, + LeaderboardNameConflict, + LinkedStatisticColumnMismatch, + NoLinkedStatisticToLeaderboard, + StatDefinitionAlreadyLinkedToLeaderboard, + LinkingStatsNotAllowedForEntityType, + LeaderboardCountLimitExceeded, + LeaderboardSizeLimitExceeded, + LeaderboardDefinitionModificationNotAllowedWhileLinked, + StatisticDefinitionModificationNotAllowedWhileLinked, + LeaderboardUpdateNotAllowedWhileLinked, + CloudScriptAzureFunctionsEventHubRequestError, + ExternalEntityNotAllowedForTier, + InvalidBaseTimeForInterval, + EntityTypeMismatchWithStatDefinition, + SpecifiedVersionLeaderboardNotFound, + LeaderboardColumnLengthMismatchWithStatDefinition, + DuplicateColumnNameFound, + LinkedStatisticColumnNotFound, + LinkedStatisticColumnRequired, + MultipleLinkedStatisticsNotAllowed, + DuplicateLinkedStatisticColumnNameFound, + AggregationTypeNotAllowedForMultiColumnStatistic, + MaxQueryableVersionsValueNotAllowedForTier, + StatisticDefinitionHasNullOrEmptyVersionConfiguration, + StatisticColumnLengthMismatch, + InvalidExternalEntityId, + UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier, + TransactionAlreadyApplied, + ReportDataNotRetrievedSuccessfully, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -2040,6 +2063,7 @@ namespace PlayFab.ServerModels CatalogItemTypeInvalid, CatalogBadRequest, CatalogTooManyRequests, + InvalidCatalogItemConfiguration, ExportInvalidStatusUpdate, ExportInvalidPrefix, ExportBlobContainerDoesNotExist, @@ -2086,6 +2110,7 @@ namespace PlayFab.ServerModels MultiplayerServerBuildReferencedByMatchmakingQueue, MultiplayerServerBuildReferencedByBuildAlias, MultiplayerServerBuildAliasReferencedByMatchmakingQueue, + PartySerializationError, ExperimentationExperimentStopped, ExperimentationExperimentRunning, ExperimentationExperimentNotFound, @@ -2125,6 +2150,7 @@ namespace PlayFab.ServerModels AsyncExportNotInFlight, AsyncExportNotFound, AsyncExportRateLimitExceeded, + AnalyticsSegmentCountOverLimit, SnapshotNotFound, InventoryApiNotImplemented, LobbyDoesNotExist, @@ -2139,6 +2165,12 @@ namespace PlayFab.ServerModels LobbyNewOwnerMustBeConnected, LobbyCurrentOwnerStillConnected, LobbyMemberIsNotOwner, + LobbyServerMismatch, + LobbyServerNotFound, + LobbyDifferentServerAlreadyJoined, + LobbyServerAlreadyJoined, + LobbyIsNotClientOwned, + LobbyDoesNotUseConnections, EventSamplingInvalidRatio, EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, @@ -2149,6 +2181,7 @@ namespace PlayFab.ServerModels TelemetryKeyInvalid, TelemetryKeyCountOverLimit, TelemetryKeyDeactivated, + TelemetryKeyLongInsightsRetentionNotAllowed, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2161,9 +2194,121 @@ namespace PlayFab.ServerModels EventSinkTenantNotFound, EventSinkAadNotFound, EventSinkDatabaseNotFound, + EventSinkTitleUnauthorized, + EventSinkInsufficientRoleAssignment, + EventSinkContainerNotFound, + EventSinkTenantIdInvalid, OperationCanceled, InvalidDisplayNameRandomSuffixLength, - AllowNonUniquePlayerDisplayNamesDisableNotAllowed + AllowNonUniquePlayerDisplayNamesDisableNotAllowed, + PartitionedEventInvalid, + PartitionedEventCountOverLimit, + ManageEventNamespaceInvalid, + ManageEventNameInvalid, + ManagedEventNotFound, + ManageEventsInvalidRatio, + ManagedEventInvalid, + PlayerCustomPropertiesPropertyNameTooLong, + PlayerCustomPropertiesPropertyNameIsInvalid, + PlayerCustomPropertiesStringPropertyValueTooLong, + PlayerCustomPropertiesValueIsInvalidType, + PlayerCustomPropertiesVersionMismatch, + PlayerCustomPropertiesPropertyCountTooHigh, + PlayerCustomPropertiesDuplicatePropertyName, + PlayerCustomPropertiesPropertyDoesNotExist, + AddonAlreadyExists, + AddonDoesntExist, + CopilotDisabled, + CopilotInvalidRequest, + TrueSkillUnauthorized, + TrueSkillInvalidTitleId, + TrueSkillInvalidScenarioId, + TrueSkillInvalidModelId, + TrueSkillInvalidModelName, + TrueSkillInvalidPlayerIds, + TrueSkillInvalidEntityKey, + TrueSkillInvalidConditionKey, + TrueSkillInvalidConditionValue, + TrueSkillInvalidConditionAffinityWeight, + TrueSkillInvalidEventName, + TrueSkillMatchResultCreated, + TrueSkillMatchResultAlreadySubmitted, + TrueSkillBadPlayerIdInMatchResult, + TrueSkillInvalidBotIdInMatchResult, + TrueSkillDuplicatePlayerInMatchResult, + TrueSkillNoPlayerInMatchResultTeam, + TrueSkillPlayersInMatchResultExceedingLimit, + TrueSkillInvalidPreMatchPartyInMatchResult, + TrueSkillInvalidTimestampInMatchResult, + TrueSkillStartTimeMissingInMatchResult, + TrueSkillEndTimeMissingInMatchResult, + TrueSkillInvalidPlayerSecondsPlayedInMatchResult, + TrueSkillNoTeamInMatchResult, + TrueSkillNotEnoughTeamsInMatchResult, + TrueSkillInvalidRanksInMatchResult, + TrueSkillNoWinnerInMatchResult, + TrueSkillMissingRequiredCondition, + TrueSkillMissingRequiredEvent, + TrueSkillUnknownEventName, + TrueSkillInvalidEventCount, + TrueSkillUnknownConditionKey, + TrueSkillUnknownConditionValue, + TrueSkillScenarioConfigDoesNotExist, + TrueSkillUnknownModelId, + TrueSkillNoModelInScenario, + TrueSkillNotSupportedForTitle, + TrueSkillModelIsNotActive, + TrueSkillUnauthorizedToQueryOtherPlayerSkills, + TrueSkillInvalidMaxIterations, + TrueSkillEndTimeBeforeStartTime, + TrueSkillInvalidJobId, + TrueSkillInvalidMetadataId, + TrueSkillMissingBuildVerison, + TrueSkillJobAlreadyExists, + TrueSkillJobNotFound, + TrueSkillOperationCanceled, + TrueSkillActiveModelLimitExceeded, + TrueSkillTotalModelLimitExceeded, + TrueSkillUnknownInitialModelId, + TrueSkillUnauthorizedForJob, + TrueSkillInvalidScenarioName, + TrueSkillConditionStateIsRequired, + TrueSkillEventStateIsRequired, + TrueSkillDuplicateEvent, + TrueSkillDuplicateCondition, + TrueSkillInvalidAnomalyThreshold, + TrueSkillConditionKeyLimitExceeded, + TrueSkillConditionValuePerKeyLimitExceeded, + TrueSkillInvalidTimestamp, + TrueSkillEventLimitExceeded, + TrueSkillInvalidPlayers, + TrueSkillTrueSkillPlayerNull, + TrueSkillInvalidPlayerId, + TrueSkillInvalidSquadSize, + TrueSkillConditionSetNotInModel, + TrueSkillModelStateInvalidForOperation, + TrueSkillScenarioContainsActiveModel, + GameSaveManifestNotFound, + GameSaveManifestVersionAlreadyExists, + GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, + GameSaveBadRequest, + GameSaveOperationNotAllowed, + GameSaveDataStorageQuotaExceeded, + GameSaveNewerManifestExists, + StateShareForbidden, + StateShareTitleNotInFlight, + StateShareStateNotFound, + StateShareLinkNotFound, + StateShareStateRedemptionLimitExceeded, + StateShareStateRedemptionLimitNotUpdated, + StateShareCreatedStatesLimitExceeded, + StateShareIdMissingOrMalformed } [Serializable] @@ -2430,16 +2575,6 @@ namespace PlayFab.ServerModels /// public ExternalFriendSources? ExternalPlatformFriends; /// - /// Indicates whether Facebook friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeFacebookFriends; - /// - /// Indicates whether Steam service friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeSteamFriends; - /// /// Maximum number of entries to retrieve. /// public int MaxResultsCount; @@ -2484,16 +2619,6 @@ namespace PlayFab.ServerModels /// public ExternalFriendSources? ExternalPlatformFriends; /// - /// Indicates whether Facebook friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeFacebookFriends; - /// - /// Indicates whether Steam service friends should be included in the response. Default is true. - /// - [Obsolete("Use 'ExternalPlatformFriends' instead", true)] - public bool? IncludeSteamFriends; - /// /// PlayFab identifier of the player whose friend list to get. /// public string PlayFabId; @@ -3189,6 +3314,32 @@ namespace PlayFab.ServerModels public List Data; } + [Serializable] + public class GetPlayFabIDsFromPSNOnlineIDsRequest : PlayFabRequestCommon + { + /// + /// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. + /// + public int? IssuerId; + /// + /// Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array + /// cannot exceed 2,000 in length. + /// + public List PSNOnlineIDs; + } + + /// + /// For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. + /// + [Serializable] + public class GetPlayFabIDsFromPSNOnlineIDsResult : PlayFabResultCommon + { + /// + /// Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. + /// + public List Data; + } + [Serializable] public class GetPlayFabIDsFromSteamIDsRequest : PlayFabRequestCommon { @@ -3211,6 +3362,28 @@ namespace PlayFab.ServerModels public List Data; } + [Serializable] + public class GetPlayFabIDsFromSteamNamesRequest : PlayFabRequestCommon + { + /// + /// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in + /// length. + /// + public List SteamNames; + } + + /// + /// For Steam identifiers which have not been linked to PlayFab accounts, null will be returned. + /// + [Serializable] + public class GetPlayFabIDsFromSteamNamesResult : PlayFabResultCommon + { + /// + /// Mapping of Steam identifiers to PlayFab identifiers. + /// + public List Data; + } + [Serializable] public class GetPlayFabIDsFromTwitchIDsRequest : PlayFabRequestCommon { @@ -4021,6 +4194,27 @@ namespace PlayFab.ServerModels public string PlayFabId; } + [Serializable] + public class LinkNintendoServiceAccountSubjectRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// If another user is already linked to a specific Nintendo Service Account, unlink the other user and re-link. + /// + public bool? ForceLink; + /// + /// Unique PlayFab assigned ID of the user on whom the operation will be performed. + /// + public string PlayFabId; + /// + /// The Nintendo Service Account subject or id to link to the PlayFab user. + /// + public string Subject; + } + [Serializable] public class LinkNintendoSwitchDeviceIdRequest : PlayFabRequestCommon { @@ -4081,6 +4275,36 @@ namespace PlayFab.ServerModels { } + [Serializable] + public class LinkPSNIdRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// If another user is already linked to the account, unlink the other user and re-link. + /// + public bool? ForceLink; + /// + /// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. + /// + public int? IssuerId; + /// + /// Unique PlayFab assigned ID of the user on whom the operation will be performed. + /// + public string PlayFabId; + /// + /// Id of the PlayStation :tm: Network user. Also known as the PSN Account Id. + /// + public string PSNUserId; + } + + [Serializable] + public class LinkPSNIdResponse : PlayFabResultCommon + { + } + [Serializable] public class LinkServerCustomIdRequest : PlayFabRequestCommon { @@ -4107,6 +4331,32 @@ namespace PlayFab.ServerModels { } + [Serializable] + public class LinkSteamIdRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// If another user is already linked to the account, unlink the other user and re-link. + /// + public bool? ForceLink; + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Xbox Live identifier. + /// + public string PlayFabId; + /// + /// Unique Steam identifier for a user. + /// + public string SteamId; + } + + [Serializable] + public class LinkSteamIdResult : PlayFabResultCommon + { + } + [Serializable] public class LinkXboxAccountRequest : PlayFabRequestCommon { @@ -4218,7 +4468,45 @@ namespace PlayFab.ServerModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King + } + + /// + /// If this is the first time a user has signed in with the PlayStation :tm: Network account and CreateAccount is set to + /// true, a new PlayFab account will be created and linked to the PlayStation :tm: Network account. In this case, no email + /// or username will be associated with the PlayFab account. Otherwise, if no PlayFab account is linked to the PlayStation + /// :tm: Network account, an error indicating this will be returned, so that the title can guide the user through creation + /// of a PlayFab account. + /// + [Serializable] + public class LoginWithPSNRequest : PlayFabRequestCommon + { + /// + /// Auth code provided by the PlayStation :tm: Network OAuth provider. + /// + public string AuthCode; + /// + /// Automatically create a PlayFab account if one is not currently linked to this ID. + /// + public bool? CreateAccount; + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Flags for which pieces of info to return for the user. + /// + public GetPlayerCombinedInfoRequestParams InfoRequestParameters; + /// + /// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. + /// + public int? IssuerId; + /// + /// Redirect URI supplied to PlayStation :tm: Network when requesting an auth code + /// + public string RedirectUri; } [Serializable] @@ -4270,7 +4558,7 @@ namespace PlayFab.ServerModels /// public GetPlayerCombinedInfoRequestParams InfoRequestParameters; /// - /// Unique Steam identifier for a user + /// Unique Steam identifier for a user. /// public string SteamId; } @@ -4301,7 +4589,7 @@ namespace PlayFab.ServerModels /// public string Sandbox; /// - /// Unique Xbox identifier for a user + /// Unique Xbox identifier for a user. /// public string XboxId; } @@ -4556,40 +4844,6 @@ namespace PlayFab.ServerModels public string PlayFabId; } - [Serializable] - public class NotifyMatchmakerPlayerLeftRequest : PlayFabRequestCommon - { - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// Unique identifier of the Game Instance the user is leaving. - /// - public string LobbyId; - /// - /// Unique PlayFab assigned ID of the user on whom the operation will be performed. - /// - public string PlayFabId; - } - - [Serializable] - public class NotifyMatchmakerPlayerLeftResult : PlayFabResultCommon - { - /// - /// State of user leaving the Game Server Instance. - /// - public PlayerConnectionState? PlayerState; - } - - public enum PlayerConnectionState - { - Unassigned, - Connecting, - Participating, - Participated - } - [Serializable] public class PlayerLeaderboardEntry : PlayFabBaseModel { @@ -4979,6 +5233,20 @@ namespace PlayFab.ServerModels public string PSNAccountId; } + [Serializable] + public class PSNOnlinePlayFabIdPair : PlayFabBaseModel + { + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + /// identifier. + /// + public string PlayFabId; + /// + /// Unique PlayStation :tm: Network identifier for a user. + /// + public string PSNOnlineId; + } + [Serializable] public class PushNotificationPackage : PlayFabBaseModel { @@ -5096,131 +5364,6 @@ namespace PlayFab.ServerModels public List GrantedItems; } - /// - /// This function is used by a Game Server Instance to validate with the PlayFab service that a user has been registered as - /// connected to the server. The Ticket is provided to the client either as a result of a call to StartGame or Matchmake, - /// each of which return a Ticket specific to the Game Server Instance. This function will fail in any case where the Ticket - /// presented is not valid for the specific Game Server Instance making the call. Note that data returned may be Personally - /// Identifying Information (PII), such as email address, and so care should be taken in how this data is stored and - /// managed. Since this call will always return the relevant information for users who have accessed the title, the - /// recommendation is to not store this data locally. - /// - [Serializable] - public class RedeemMatchmakerTicketRequest : PlayFabRequestCommon - { - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// Unique identifier of the Game Server Instance that is asking for validation of the authorization ticket. - /// - public string LobbyId; - /// - /// Server authorization ticket passed back from a call to Matchmake or StartGame. - /// - public string Ticket; - } - - [Serializable] - public class RedeemMatchmakerTicketResult : PlayFabResultCommon - { - /// - /// Error value if the ticket was not validated. - /// - public string Error; - /// - /// Boolean indicating whether the ticket was validated by the PlayFab service. - /// - public bool TicketIsValid; - /// - /// User account information for the user validated. - /// - public UserAccountInfo UserInfo; - } - - [Serializable] - public class RefreshGameServerInstanceHeartbeatRequest : PlayFabRequestCommon - { - /// - /// Unique identifier of the Game Server Instance for which the heartbeat is updated. - /// - public string LobbyId; - } - - [Serializable] - public class RefreshGameServerInstanceHeartbeatResult : PlayFabResultCommon - { - } - - public enum Region - { - USCentral, - USEast, - EUWest, - Singapore, - Japan, - Brazil, - Australia - } - - [Serializable] - public class RegisterGameRequest : PlayFabRequestCommon - { - /// - /// Unique identifier of the build running on the Game Server Instance. - /// - public string Build; - /// - /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). - /// - public Dictionary CustomTags; - /// - /// Game Mode the Game Server instance is running. Note that this must be defined in the Game Modes tab in the PlayFab Game - /// Manager, along with the Build ID (the same Game Mode can be defined for multiple Build IDs). - /// - public string GameMode; - /// - /// Previous lobby id if re-registering an existing game. - /// - public string LobbyId; - /// - /// Region in which the Game Server Instance is running. For matchmaking using non-AWS region names, set this to any AWS - /// region and use Tags (below) to specify your custom region. - /// - public Region Region; - /// - /// IPV4 address of the game server instance. - /// - public string ServerIPV4Address; - /// - /// IPV6 address (if any) of the game server instance. - /// - public string ServerIPV6Address; - /// - /// Port number for communication with the Game Server Instance. - /// - public string ServerPort; - /// - /// Public DNS name (if any) of the server - /// - public string ServerPublicDNSName; - /// - /// Tags for the Game Server Instance - /// - public Dictionary Tags; - } - - [Serializable] - public class RegisterGameResponse : PlayFabResultCommon - { - /// - /// Unique identifier generated for the Game Server Instance that is registered. If LobbyId is specified in request and the - /// game still exists in PlayFab, the LobbyId in request is returned. Otherwise a new lobby id will be returned. - /// - public string LobbyId; - } - [Serializable] public class RemoveFriendRequest : PlayFabRequestCommon { @@ -5717,61 +5860,6 @@ namespace PlayFab.ServerModels public List Tags; } - [Serializable] - public class SetGameServerInstanceDataRequest : PlayFabRequestCommon - { - /// - /// Custom data to set for the specified game server instance. - /// - public string GameServerData; - /// - /// Unique identifier of the Game Instance to be updated, in decimal format. - /// - public string LobbyId; - } - - [Serializable] - public class SetGameServerInstanceDataResult : PlayFabResultCommon - { - } - - [Serializable] - public class SetGameServerInstanceStateRequest : PlayFabRequestCommon - { - /// - /// Unique identifier of the Game Instance to be updated, in decimal format. - /// - public string LobbyId; - /// - /// State to set for the specified game server instance. - /// - public GameInstanceState State; - } - - [Serializable] - public class SetGameServerInstanceStateResult : PlayFabResultCommon - { - } - - [Serializable] - public class SetGameServerInstanceTagsRequest : PlayFabRequestCommon - { - /// - /// Unique identifier of the Game Server Instance to be updated. - /// - public string LobbyId; - /// - /// Tags to set for the specified Game Server Instance. Note that this is the complete list of tags to be associated with - /// the Game Server Instance. - /// - public Dictionary Tags; - } - - [Serializable] - public class SetGameServerInstanceTagsResult : PlayFabResultCommon - { - } - /// /// APIs that require signatures require that the player have a configured Player Secret Key that is used to sign all /// requests. Players that don't have a secret will be blocked from making API calls until it is configured. To create a @@ -5947,6 +6035,19 @@ namespace PlayFab.ServerModels public uint Version; } + [Serializable] + public class SteamNamePlayFabIdPair : PlayFabBaseModel + { + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier. + /// + public string PlayFabId; + /// + /// Unique Steam identifier for a user, also known as Steam persona name. + /// + public string SteamName; + } + [Serializable] public class SteamPlayFabIdPair : PlayFabBaseModel { @@ -6240,6 +6341,24 @@ namespace PlayFab.ServerModels { } + [Serializable] + public class UnlinkSteamIdRequest : PlayFabRequestCommon + { + /// + /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + /// + public Dictionary CustomTags; + /// + /// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam account. + /// + public string PlayFabId; + } + + [Serializable] + public class UnlinkSteamIdResult : PlayFabResultCommon + { + } + [Serializable] public class UnlinkXboxAccountRequest : PlayFabRequestCommon { @@ -6388,6 +6507,10 @@ namespace PlayFab.ServerModels /// The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. /// public string Reason; + /// + /// The updated family type of the user that should be included in the ban. Null for no change. + /// + public UserFamilyType? UserFamilyType; } /// @@ -6737,6 +6860,10 @@ namespace PlayFab.ServerModels /// public UserPsnInfo PsnInfo; /// + /// Server Custom ID information, if a server custom ID has been assigned + /// + public UserServerCustomIdInfo ServerCustomIdInfo; + /// /// User Steam information, if a Steam account has been linked /// public UserSteamInfo SteamInfo; @@ -6835,6 +6962,13 @@ namespace PlayFab.ServerModels public string FacebookInstantGamesId; } + public enum UserFamilyType + { + None, + Xbox, + Steam + } + [Serializable] public class UserGameCenterInfo : PlayFabBaseModel { @@ -6968,7 +7102,9 @@ namespace PlayFab.ServerModels OpenIdConnect, Apple, NintendoSwitchAccount, - GooglePlayGames + GooglePlayGames, + XboxMobileStore, + King } [Serializable] @@ -6993,6 +7129,15 @@ namespace PlayFab.ServerModels public string PsnOnlineId; } + [Serializable] + public class UserServerCustomIdInfo : PlayFabBaseModel + { + /// + /// Custom ID + /// + public string CustomId; + } + [Serializable] public class UserSettings : PlayFabBaseModel { diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabErrors.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabErrors.cs index 49b756b51..0a5bf1614 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabErrors.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabErrors.cs @@ -561,6 +561,42 @@ namespace PlayFab NamespaceMismatch = 1559, InvalidServiceConfiguration = 1560, InvalidNamespaceMismatch = 1561, + LeaderboardColumnLengthMismatch = 1562, + InvalidStatisticScore = 1563, + LeaderboardColumnsNotSpecified = 1564, + LeaderboardMaxSizeTooLarge = 1565, + InvalidAttributeStatisticsSpecified = 1566, + LeaderboardNotFound = 1567, + TokenSigningKeyNotFound = 1568, + LeaderboardNameConflict = 1569, + LinkedStatisticColumnMismatch = 1570, + NoLinkedStatisticToLeaderboard = 1571, + StatDefinitionAlreadyLinkedToLeaderboard = 1572, + LinkingStatsNotAllowedForEntityType = 1573, + LeaderboardCountLimitExceeded = 1574, + LeaderboardSizeLimitExceeded = 1575, + LeaderboardDefinitionModificationNotAllowedWhileLinked = 1576, + StatisticDefinitionModificationNotAllowedWhileLinked = 1577, + LeaderboardUpdateNotAllowedWhileLinked = 1578, + CloudScriptAzureFunctionsEventHubRequestError = 1579, + ExternalEntityNotAllowedForTier = 1580, + InvalidBaseTimeForInterval = 1581, + EntityTypeMismatchWithStatDefinition = 1582, + SpecifiedVersionLeaderboardNotFound = 1583, + LeaderboardColumnLengthMismatchWithStatDefinition = 1584, + DuplicateColumnNameFound = 1585, + LinkedStatisticColumnNotFound = 1586, + LinkedStatisticColumnRequired = 1587, + MultipleLinkedStatisticsNotAllowed = 1588, + DuplicateLinkedStatisticColumnNameFound = 1589, + AggregationTypeNotAllowedForMultiColumnStatistic = 1590, + MaxQueryableVersionsValueNotAllowedForTier = 1591, + StatisticDefinitionHasNullOrEmptyVersionConfiguration = 1592, + StatisticColumnLengthMismatch = 1593, + InvalidExternalEntityId = 1594, + UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier = 1595, + TransactionAlreadyApplied = 1596, + ReportDataNotRetrievedSuccessfully = 1597, MatchmakingEntityInvalid = 2001, MatchmakingPlayerAttributesInvalid = 2002, MatchmakingQueueNotFound = 2016, @@ -604,6 +640,7 @@ namespace PlayFab CatalogItemTypeInvalid = 4012, CatalogBadRequest = 4013, CatalogTooManyRequests = 4014, + InvalidCatalogItemConfiguration = 4015, ExportInvalidStatusUpdate = 5000, ExportInvalidPrefix = 5001, ExportBlobContainerDoesNotExist = 5002, @@ -650,6 +687,7 @@ namespace PlayFab MultiplayerServerBuildReferencedByMatchmakingQueue = 6002, MultiplayerServerBuildReferencedByBuildAlias = 6003, MultiplayerServerBuildAliasReferencedByMatchmakingQueue = 6004, + PartySerializationError = 6005, ExperimentationExperimentStopped = 7000, ExperimentationExperimentRunning = 7001, ExperimentationExperimentNotFound = 7002, @@ -689,6 +727,7 @@ namespace PlayFab AsyncExportNotInFlight = 10011, AsyncExportNotFound = 10012, AsyncExportRateLimitExceeded = 10013, + AnalyticsSegmentCountOverLimit = 10014, SnapshotNotFound = 11000, InventoryApiNotImplemented = 12000, LobbyDoesNotExist = 13000, @@ -703,6 +742,12 @@ namespace PlayFab LobbyNewOwnerMustBeConnected = 13009, LobbyCurrentOwnerStillConnected = 13010, LobbyMemberIsNotOwner = 13011, + LobbyServerMismatch = 13012, + LobbyServerNotFound = 13013, + LobbyDifferentServerAlreadyJoined = 13014, + LobbyServerAlreadyJoined = 13015, + LobbyIsNotClientOwned = 13016, + LobbyDoesNotUseConnections = 13017, EventSamplingInvalidRatio = 14000, EventSamplingInvalidEventNamespace = 14001, EventSamplingInvalidEventName = 14002, @@ -713,6 +758,7 @@ namespace PlayFab TelemetryKeyInvalid = 14203, TelemetryKeyCountOverLimit = 14204, TelemetryKeyDeactivated = 14205, + TelemetryKeyLongInsightsRetentionNotAllowed = 14206, EventSinkConnectionInvalid = 15000, EventSinkConnectionUnauthorized = 15001, EventSinkRegionInvalid = 15002, @@ -725,9 +771,121 @@ namespace PlayFab EventSinkTenantNotFound = 15009, EventSinkAadNotFound = 15010, EventSinkDatabaseNotFound = 15011, + EventSinkTitleUnauthorized = 15012, + EventSinkInsufficientRoleAssignment = 15013, + EventSinkContainerNotFound = 15014, + EventSinkTenantIdInvalid = 15015, OperationCanceled = 16000, InvalidDisplayNameRandomSuffixLength = 17000, - AllowNonUniquePlayerDisplayNamesDisableNotAllowed = 17001 + AllowNonUniquePlayerDisplayNamesDisableNotAllowed = 17001, + PartitionedEventInvalid = 18000, + PartitionedEventCountOverLimit = 18001, + ManageEventNamespaceInvalid = 18002, + ManageEventNameInvalid = 18003, + ManagedEventNotFound = 18004, + ManageEventsInvalidRatio = 18005, + ManagedEventInvalid = 18006, + PlayerCustomPropertiesPropertyNameTooLong = 19000, + PlayerCustomPropertiesPropertyNameIsInvalid = 19001, + PlayerCustomPropertiesStringPropertyValueTooLong = 19002, + PlayerCustomPropertiesValueIsInvalidType = 19003, + PlayerCustomPropertiesVersionMismatch = 19004, + PlayerCustomPropertiesPropertyCountTooHigh = 19005, + PlayerCustomPropertiesDuplicatePropertyName = 19006, + PlayerCustomPropertiesPropertyDoesNotExist = 19007, + AddonAlreadyExists = 19008, + AddonDoesntExist = 19009, + CopilotDisabled = 19100, + CopilotInvalidRequest = 19101, + TrueSkillUnauthorized = 20000, + TrueSkillInvalidTitleId = 20001, + TrueSkillInvalidScenarioId = 20002, + TrueSkillInvalidModelId = 20003, + TrueSkillInvalidModelName = 20004, + TrueSkillInvalidPlayerIds = 20005, + TrueSkillInvalidEntityKey = 20006, + TrueSkillInvalidConditionKey = 20007, + TrueSkillInvalidConditionValue = 20008, + TrueSkillInvalidConditionAffinityWeight = 20009, + TrueSkillInvalidEventName = 20010, + TrueSkillMatchResultCreated = 20011, + TrueSkillMatchResultAlreadySubmitted = 20012, + TrueSkillBadPlayerIdInMatchResult = 20013, + TrueSkillInvalidBotIdInMatchResult = 20014, + TrueSkillDuplicatePlayerInMatchResult = 20015, + TrueSkillNoPlayerInMatchResultTeam = 20016, + TrueSkillPlayersInMatchResultExceedingLimit = 20017, + TrueSkillInvalidPreMatchPartyInMatchResult = 20018, + TrueSkillInvalidTimestampInMatchResult = 20019, + TrueSkillStartTimeMissingInMatchResult = 20020, + TrueSkillEndTimeMissingInMatchResult = 20021, + TrueSkillInvalidPlayerSecondsPlayedInMatchResult = 20022, + TrueSkillNoTeamInMatchResult = 20023, + TrueSkillNotEnoughTeamsInMatchResult = 20024, + TrueSkillInvalidRanksInMatchResult = 20025, + TrueSkillNoWinnerInMatchResult = 20026, + TrueSkillMissingRequiredCondition = 20027, + TrueSkillMissingRequiredEvent = 20028, + TrueSkillUnknownEventName = 20029, + TrueSkillInvalidEventCount = 20030, + TrueSkillUnknownConditionKey = 20031, + TrueSkillUnknownConditionValue = 20032, + TrueSkillScenarioConfigDoesNotExist = 20033, + TrueSkillUnknownModelId = 20034, + TrueSkillNoModelInScenario = 20035, + TrueSkillNotSupportedForTitle = 20036, + TrueSkillModelIsNotActive = 20037, + TrueSkillUnauthorizedToQueryOtherPlayerSkills = 20038, + TrueSkillInvalidMaxIterations = 20039, + TrueSkillEndTimeBeforeStartTime = 20040, + TrueSkillInvalidJobId = 20041, + TrueSkillInvalidMetadataId = 20042, + TrueSkillMissingBuildVerison = 20043, + TrueSkillJobAlreadyExists = 20044, + TrueSkillJobNotFound = 20045, + TrueSkillOperationCanceled = 20046, + TrueSkillActiveModelLimitExceeded = 20047, + TrueSkillTotalModelLimitExceeded = 20048, + TrueSkillUnknownInitialModelId = 20049, + TrueSkillUnauthorizedForJob = 20050, + TrueSkillInvalidScenarioName = 20051, + TrueSkillConditionStateIsRequired = 20052, + TrueSkillEventStateIsRequired = 20053, + TrueSkillDuplicateEvent = 20054, + TrueSkillDuplicateCondition = 20055, + TrueSkillInvalidAnomalyThreshold = 20056, + TrueSkillConditionKeyLimitExceeded = 20057, + TrueSkillConditionValuePerKeyLimitExceeded = 20058, + TrueSkillInvalidTimestamp = 20059, + TrueSkillEventLimitExceeded = 20060, + TrueSkillInvalidPlayers = 20061, + TrueSkillTrueSkillPlayerNull = 20062, + TrueSkillInvalidPlayerId = 20063, + TrueSkillInvalidSquadSize = 20064, + TrueSkillConditionSetNotInModel = 20065, + TrueSkillModelStateInvalidForOperation = 20066, + TrueSkillScenarioContainsActiveModel = 20067, + GameSaveManifestNotFound = 20300, + GameSaveManifestVersionAlreadyExists = 20301, + GameSaveConflictUpdatingManifest = 20302, + GameSaveManifestUpdatesNotAllowed = 20303, + GameSaveFileAlreadyExists = 20304, + GameSaveManifestVersionNotFinalized = 20305, + GameSaveUnknownFileInManifest = 20306, + GameSaveFileExceededReportedSize = 20307, + GameSaveFileNotUploaded = 20308, + GameSaveBadRequest = 20309, + GameSaveOperationNotAllowed = 20310, + GameSaveDataStorageQuotaExceeded = 20311, + GameSaveNewerManifestExists = 20312, + StateShareForbidden = 21000, + StateShareTitleNotInFlight = 21001, + StateShareStateNotFound = 21002, + StateShareLinkNotFound = 21003, + StateShareStateRedemptionLimitExceeded = 21004, + StateShareStateRedemptionLimitNotUpdated = 21005, + StateShareCreatedStatesLimitExceeded = 21006, + StateShareIdMissingOrMalformed = 21007 } public class PlayFabError diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs new file mode 100644 index 000000000..a9e6368fe --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs @@ -0,0 +1,57 @@ +using PlayFab; +using System.Diagnostics; +using System.IO; +using System.IO.Compression; +using UnityEngine.Networking; + +public class GzipDownloadHandler : DownloadHandlerScript +{ + private byte[] _data; + public byte[] Data { get { return _data; } } + + public GzipDownloadHandler() : base() + { + } + + protected override byte[] GetData() { return _data; } + + protected override bool ReceiveData(byte[] data, int dataLength) + { + if (_data == null) + _data = data; + else + { + byte[] newData = new byte[_data.Length + dataLength]; + _data.CopyTo(newData, 0); + data.CopyTo(newData, _data.Length); + _data = newData; + } + return true; + } + + protected override void CompleteContent() + { + try + { + using MemoryStream stream = new MemoryStream(_data); + using GZipStream gZipStream = new GZipStream(stream, CompressionMode.Decompress, true); + + byte[] buffer = new byte[4096]; + using MemoryStream resultStream = new MemoryStream(); + + int read; + while ((read = gZipStream.Read(buffer, 0, buffer.Length)) > 0) + { + resultStream.Write(buffer, 0, read); + } + + _data = resultStream.ToArray(); + } + catch (IOException) + { + // If we fail to decompress, it should be because Unity silently decompressed already, so we should disable this custom handler. + // There is no info on which platforms Unity decompresses on, so we have to assume this is needed until we reach this. + PlayFabSettings.staticSettings.DecompressWithDownloadHandler = false; + } + } +} diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs.meta b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs.meta new file mode 100644 index 000000000..e51896e56 --- /dev/null +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/GzipDownloadHandler.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40479a6315f18a54a9db2c924e0af5ae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/IPlayFabHttp.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/IPlayFabHttp.cs index 59f79e135..2977de039 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/IPlayFabHttp.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/IPlayFabHttp.cs @@ -11,6 +11,7 @@ namespace PlayFab.Internal LoginSession, // "X-Authorization" DevSecretKey, // "X-SecretKey" EntityToken, // "X-EntityToken" + TelemetryKey // "X-TelemetryKey" } public enum HttpRequestState diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs index 3f5e7bc26..23894d906 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs @@ -201,6 +201,10 @@ namespace PlayFab.Internal reqContainer.RequestHeaders["X-EntityToken"] = authenticationContext.EntityToken; break; #endif + case AuthType.TelemetryKey: + if (authenticationContext != null) + reqContainer.RequestHeaders["X-TelemetryKey"] = authenticationContext.TelemetryKey; + break; } // These closures preserve the TResult generic information in a way that's safe for all the devices diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs index ff24ef960..98d2c4c9f 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs @@ -43,6 +43,16 @@ namespace PlayFab.Internal { using (UnityWebRequest www = UnityWebRequest.Get(fullUrl)) { + if (PlayFabSettings.staticSettings.CompressResponses) + { + www.SetRequestHeader("Accept-Encoding", "gzip"); + + if (PlayFabSettings.staticSettings.DecompressWithDownloadHandler) + { + www.downloadHandler = new GzipDownloadHandler(); + } + } + #if UNITY_2017_2_OR_NEWER yield return www.SendWebRequest(); #else @@ -67,8 +77,18 @@ namespace PlayFab.Internal { request = new UnityWebRequest(fullUrl, "POST"); request.uploadHandler = (UploadHandler)new UploadHandlerRaw(payload); - request.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer(); request.SetRequestHeader("Content-Type", "application/json"); + + if (PlayFabSettings.staticSettings.CompressResponses) + { + request.SetRequestHeader("Accept-Encoding", "gzip"); + request.downloadHandler = PlayFabSettings.staticSettings.DecompressWithDownloadHandler ? new GzipDownloadHandler() + : new DownloadHandlerBuffer(); + } + else + { + request.downloadHandler = new DownloadHandlerBuffer(); + } } @@ -117,10 +137,20 @@ namespace PlayFab.Internal using var www = new UnityWebRequest(reqContainer.FullUrl) { uploadHandler = new UploadHandlerRaw(reqContainer.Payload), - downloadHandler = new DownloadHandlerBuffer(), method = "POST" }; + if (reqContainer.settings.CompressResponses) + { + www.SetRequestHeader("Accept-Encoding", "gzip"); + www.downloadHandler = reqContainer.settings.DecompressWithDownloadHandler ? new GzipDownloadHandler() + : new DownloadHandlerBuffer(); + } + else + { + www.downloadHandler = new DownloadHandlerBuffer(); + } + foreach (var headerPair in reqContainer.RequestHeaders) { if (!string.IsNullOrEmpty(headerPair.Key) && !string.IsNullOrEmpty(headerPair.Value)) diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Models/PlayFabSharedSettings.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Models/PlayFabSharedSettings.cs index c185e10eb..8067a1260 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Models/PlayFabSharedSettings.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Models/PlayFabSharedSettings.cs @@ -25,6 +25,8 @@ public class PlayFabSharedSettings : ScriptableObject public int RequestTimeout = 2000; public bool RequestKeepAlive = true; + public bool CompressResponses = false; + public bool DecompressWithDownloadHandler = true; public PlayFabLogLevel LogLevel = PlayFabLogLevel.Warning | PlayFabLogLevel.Error; public string LoggerHost = ""; diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs index 3c64af376..d9e3c72f8 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs @@ -28,6 +28,12 @@ namespace PlayFab /// Set this to true to prevent focus change information from leaving the device public virtual bool DisableFocusTimeCollection { get; set; } + /// Set to enable Gzip compression on all responses. Defaults to false. + public virtual bool CompressResponses { get; set; } + + /// Enables the custom Gzip DownloadHandler on all responses. Defaults to true. + internal virtual bool DecompressWithDownloadHandler { get; set; } = true; + public virtual string GetFullUrl(string apiCall, Dictionary getParams) { @@ -80,5 +86,17 @@ namespace PlayFab get { var so = GetSO(); return so == null ? base.DisableFocusTimeCollection : so.DisableFocusTimeCollection; } set { var so = GetSO(); if (so != null) so.DisableFocusTimeCollection = value; base.DisableFocusTimeCollection = value; } } + + public override bool CompressResponses + { + get { var so = GetSO(); return so == null ? base.CompressResponses : so.CompressResponses; } + set { var so = GetSO(); if (so != null) so.CompressResponses = value; base.CompressResponses = value; } + } + + internal override bool DecompressWithDownloadHandler + { + get { var so = GetSO(); return so == null ? base.DecompressWithDownloadHandler : so.DecompressWithDownloadHandler; } + set { var so = GetSO(); if (so != null) so.DecompressWithDownloadHandler = value; base.DecompressWithDownloadHandler = value; } + } } } diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabAuthenticationContext.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabAuthenticationContext.cs index cd9066d85..cf951449c 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabAuthenticationContext.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabAuthenticationContext.cs @@ -6,7 +6,7 @@ namespace PlayFab { } - public PlayFabAuthenticationContext(string clientSessionTicket, string entityToken, string playFabId, string entityId, string entityType) : this() + public PlayFabAuthenticationContext(string clientSessionTicket, string entityToken, string playFabId, string entityId, string entityType, string telemetryKey = null) : this() { #if !DISABLE_PLAYFABCLIENT_API ClientSessionTicket = clientSessionTicket; @@ -17,6 +17,7 @@ namespace PlayFab EntityId = entityId; EntityType = entityType; #endif + TelemetryKey = telemetryKey; } public void CopyFrom(PlayFabAuthenticationContext other) @@ -30,6 +31,7 @@ namespace PlayFab EntityId = other.EntityId; EntityType = other.EntityType; #endif + TelemetryKey = other.TelemetryKey; } #if !DISABLE_PLAYFABCLIENT_API @@ -61,6 +63,13 @@ namespace PlayFab } #endif + public string TelemetryKey; + + public bool IsTelemetryKeyProvided() + { + return !string.IsNullOrEmpty(TelemetryKey); + } + public void ForgetAllCredentials() { #if !DISABLE_PLAYFABCLIENT_API @@ -72,6 +81,7 @@ namespace PlayFab EntityId = null; EntityType = null; #endif + TelemetryKey = null; } } } diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabEvents.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabEvents.cs index 86cd52350..50f55e603 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabEvents.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabEvents.cs @@ -84,6 +84,9 @@ namespace PlayFab.Events if (OnAdminDeleteMasterPlayerAccountRequestEvent != null) { foreach (var each in OnAdminDeleteMasterPlayerAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMasterPlayerAccountRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminDeleteMasterPlayerAccountResultEvent != null) { foreach (var each in OnAdminDeleteMasterPlayerAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMasterPlayerAccountResultEvent -= (PlayFabResultEvent)each; } } } + if (OnAdminDeleteMasterPlayerEventDataRequestEvent != null) { foreach (var each in OnAdminDeleteMasterPlayerEventDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMasterPlayerEventDataRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAdminDeleteMasterPlayerEventDataResultEvent != null) { foreach (var each in OnAdminDeleteMasterPlayerEventDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMasterPlayerEventDataResultEvent -= (PlayFabResultEvent)each; } } } + if (OnAdminDeleteMembershipSubscriptionRequestEvent != null) { foreach (var each in OnAdminDeleteMembershipSubscriptionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMembershipSubscriptionRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminDeleteMembershipSubscriptionResultEvent != null) { foreach (var each in OnAdminDeleteMembershipSubscriptionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteMembershipSubscriptionResultEvent -= (PlayFabResultEvent)each; } } } @@ -144,12 +147,6 @@ namespace PlayFab.Events if (OnAdminGetDataReportRequestEvent != null) { foreach (var each in OnAdminGetDataReportRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetDataReportRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminGetDataReportResultEvent != null) { foreach (var each in OnAdminGetDataReportResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetDataReportResultEvent -= (PlayFabResultEvent)each; } } } - if (OnAdminGetMatchmakerGameInfoRequestEvent != null) { foreach (var each in OnAdminGetMatchmakerGameInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameInfoRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnAdminGetMatchmakerGameInfoResultEvent != null) { foreach (var each in OnAdminGetMatchmakerGameInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameInfoResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnAdminGetMatchmakerGameModesRequestEvent != null) { foreach (var each in OnAdminGetMatchmakerGameModesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameModesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnAdminGetMatchmakerGameModesResultEvent != null) { foreach (var each in OnAdminGetMatchmakerGameModesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameModesResultEvent -= (PlayFabResultEvent)each; } } } - if (OnAdminGetPlayedTitleListRequestEvent != null) { foreach (var each in OnAdminGetPlayedTitleListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayedTitleListRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminGetPlayedTitleListResultEvent != null) { foreach (var each in OnAdminGetPlayedTitleListResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayedTitleListResultEvent -= (PlayFabResultEvent)each; } } } @@ -249,9 +246,6 @@ namespace PlayFab.Events if (OnAdminListVirtualCurrencyTypesRequestEvent != null) { foreach (var each in OnAdminListVirtualCurrencyTypesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListVirtualCurrencyTypesRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminListVirtualCurrencyTypesResultEvent != null) { foreach (var each in OnAdminListVirtualCurrencyTypesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListVirtualCurrencyTypesResultEvent -= (PlayFabResultEvent)each; } } } - if (OnAdminModifyServerBuildRequestEvent != null) { foreach (var each in OnAdminModifyServerBuildRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyServerBuildRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnAdminModifyServerBuildResultEvent != null) { foreach (var each in OnAdminModifyServerBuildResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyServerBuildResultEvent -= (PlayFabResultEvent)each; } } } - if (OnAdminRefundPurchaseRequestEvent != null) { foreach (var each in OnAdminRefundPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRefundPurchaseRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnAdminRefundPurchaseResultEvent != null) { foreach (var each in OnAdminRefundPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRefundPurchaseResultEvent -= (PlayFabResultEvent)each; } } } @@ -464,9 +458,6 @@ namespace PlayFab.Events if (OnGetContentDownloadUrlRequestEvent != null) { foreach (var each in OnGetContentDownloadUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetContentDownloadUrlRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetContentDownloadUrlResultEvent != null) { foreach (var each in OnGetContentDownloadUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetContentDownloadUrlResultEvent -= (PlayFabResultEvent)each; } } } - if (OnGetCurrentGamesRequestEvent != null) { foreach (var each in OnGetCurrentGamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCurrentGamesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnGetCurrentGamesResultEvent != null) { foreach (var each in OnGetCurrentGamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCurrentGamesResultEvent -= (PlayFabResultEvent)each; } } } - if (OnGetFriendLeaderboardRequestEvent != null) { foreach (var each in OnGetFriendLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetFriendLeaderboardResultEvent != null) { foreach (var each in OnGetFriendLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardResultEvent -= (PlayFabResultEvent)each; } } } @@ -476,9 +467,6 @@ namespace PlayFab.Events if (OnGetFriendsListRequestEvent != null) { foreach (var each in OnGetFriendsListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendsListRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetFriendsListResultEvent != null) { foreach (var each in OnGetFriendsListResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendsListResultEvent -= (PlayFabResultEvent)each; } } } - if (OnGetGameServerRegionsRequestEvent != null) { foreach (var each in OnGetGameServerRegionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetGameServerRegionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnGetGameServerRegionsResultEvent != null) { foreach (var each in OnGetGameServerRegionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetGameServerRegionsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnGetLeaderboardRequestEvent != null) { foreach (var each in OnGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetLeaderboardResultEvent != null) { foreach (var each in OnGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardResultEvent -= (PlayFabResultEvent)each; } } } @@ -548,9 +536,15 @@ namespace PlayFab.Events if (OnGetPlayFabIDsFromPSNAccountIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromPSNAccountIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromPSNAccountIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetPlayFabIDsFromPSNAccountIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromPSNAccountIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromPSNAccountIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnGetPlayFabIDsFromPSNOnlineIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromPSNOnlineIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromPSNOnlineIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnGetPlayFabIDsFromSteamIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetPlayFabIDsFromSteamIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnGetPlayFabIDsFromSteamNamesRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamNamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamNamesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnGetPlayFabIDsFromSteamNamesResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamNamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamNamesResultEvent -= (PlayFabResultEvent)each; } } } + if (OnGetPlayFabIDsFromTwitchIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromTwitchIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromTwitchIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGetPlayFabIDsFromTwitchIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromTwitchIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromTwitchIDsResultEvent -= (PlayFabResultEvent)each; } } } @@ -691,9 +685,6 @@ namespace PlayFab.Events if (OnLoginWithXboxRequestEvent != null) { foreach (var each in OnLoginWithXboxRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithXboxRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakeRequestEvent != null) { foreach (var each in OnMatchmakeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakeRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakeResultEvent != null) { foreach (var each in OnMatchmakeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakeResultEvent -= (PlayFabResultEvent)each; } } } - if (OnOpenTradeRequestEvent != null) { foreach (var each in OnOpenTradeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnOpenTradeRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnOpenTradeResultEvent != null) { foreach (var each in OnOpenTradeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnOpenTradeResultEvent -= (PlayFabResultEvent)each; } } } @@ -859,20 +850,6 @@ namespace PlayFab.Events if (OnWriteTitleEventRequestEvent != null) { foreach (var each in OnWriteTitleEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteTitleEventRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnWriteTitleEventResultEvent != null) { foreach (var each in OnWriteTitleEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteTitleEventResultEvent -= (PlayFabResultEvent)each; } } } -#endif -#if ENABLE_PLAYFABSERVER_API - if (OnMatchmakerAuthUserRequestEvent != null) { foreach (var each in OnMatchmakerAuthUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerAuthUserRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakerAuthUserResultEvent != null) { foreach (var each in OnMatchmakerAuthUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerAuthUserResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnMatchmakerPlayerJoinedRequestEvent != null) { foreach (var each in OnMatchmakerPlayerJoinedRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerJoinedRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakerPlayerJoinedResultEvent != null) { foreach (var each in OnMatchmakerPlayerJoinedResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerJoinedResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnMatchmakerPlayerLeftRequestEvent != null) { foreach (var each in OnMatchmakerPlayerLeftRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerLeftRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakerPlayerLeftResultEvent != null) { foreach (var each in OnMatchmakerPlayerLeftResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerLeftResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnMatchmakerUserInfoRequestEvent != null) { foreach (var each in OnMatchmakerUserInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerUserInfoRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnMatchmakerUserInfoResultEvent != null) { foreach (var each in OnMatchmakerUserInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerUserInfoResultEvent -= (PlayFabResultEvent)each; } } } - #endif #if ENABLE_PLAYFABSERVER_API if (OnServerAddCharacterVirtualCurrencyRequestEvent != null) { foreach (var each in OnServerAddCharacterVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddCharacterVirtualCurrencyRequestEvent -= (PlayFabRequestEvent)each; } } } @@ -920,9 +897,6 @@ namespace PlayFab.Events if (OnServerDeleteSharedGroupRequestEvent != null) { foreach (var each in OnServerDeleteSharedGroupRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteSharedGroupRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerDeleteSharedGroupResultEvent != null) { foreach (var each in OnServerDeleteSharedGroupResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteSharedGroupResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerDeregisterGameRequestEvent != null) { foreach (var each in OnServerDeregisterGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeregisterGameRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerDeregisterGameResultEvent != null) { foreach (var each in OnServerDeregisterGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeregisterGameResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerEvaluateRandomResultTableRequestEvent != null) { foreach (var each in OnServerEvaluateRandomResultTableRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerEvaluateRandomResultTableRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerEvaluateRandomResultTableResultEvent != null) { foreach (var each in OnServerEvaluateRandomResultTableResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerEvaluateRandomResultTableResultEvent -= (PlayFabResultEvent)each; } } } @@ -1016,9 +990,15 @@ namespace PlayFab.Events if (OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerGetPlayFabIDsFromSteamIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerGetPlayFabIDsFromSteamIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamIDsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerGetPlayFabIDsFromSteamNamesRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamNamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamNamesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerGetPlayFabIDsFromSteamNamesResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamNamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamNamesResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerGetPlayFabIDsFromTwitchIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromTwitchIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromTwitchIDsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerGetPlayFabIDsFromTwitchIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromTwitchIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromTwitchIDsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1094,18 +1074,30 @@ namespace PlayFab.Events if (OnServerLinkNintendoServiceAccountRequestEvent != null) { foreach (var each in OnServerLinkNintendoServiceAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoServiceAccountRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLinkNintendoServiceAccountResultEvent != null) { foreach (var each in OnServerLinkNintendoServiceAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoServiceAccountResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkNintendoServiceAccountSubjectRequestEvent != null) { foreach (var each in OnServerLinkNintendoServiceAccountSubjectRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoServiceAccountSubjectRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerLinkNintendoServiceAccountSubjectResultEvent != null) { foreach (var each in OnServerLinkNintendoServiceAccountSubjectResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoServiceAccountSubjectResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkNintendoSwitchDeviceIdRequestEvent != null) { foreach (var each in OnServerLinkNintendoSwitchDeviceIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoSwitchDeviceIdRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLinkNintendoSwitchDeviceIdResultEvent != null) { foreach (var each in OnServerLinkNintendoSwitchDeviceIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkNintendoSwitchDeviceIdResultEvent -= (PlayFabResultEvent)each; } } } if (OnServerLinkPSNAccountRequestEvent != null) { foreach (var each in OnServerLinkPSNAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkPSNAccountRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLinkPSNAccountResultEvent != null) { foreach (var each in OnServerLinkPSNAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkPSNAccountResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkPSNIdRequestEvent != null) { foreach (var each in OnServerLinkPSNIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkPSNIdRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerLinkPSNIdResultEvent != null) { foreach (var each in OnServerLinkPSNIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkPSNIdResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkServerCustomIdRequestEvent != null) { foreach (var each in OnServerLinkServerCustomIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkServerCustomIdRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLinkServerCustomIdResultEvent != null) { foreach (var each in OnServerLinkServerCustomIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkServerCustomIdResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkSteamIdRequestEvent != null) { foreach (var each in OnServerLinkSteamIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkSteamIdRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerLinkSteamIdResultEvent != null) { foreach (var each in OnServerLinkSteamIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkSteamIdResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLinkXboxAccountRequestEvent != null) { foreach (var each in OnServerLinkXboxAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkXboxAccountRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLinkXboxAccountResultEvent != null) { foreach (var each in OnServerLinkXboxAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkXboxAccountResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLoginWithPSNRequestEvent != null) { foreach (var each in OnServerLoginWithPSNRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithPSNRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerLoginWithPSNResultEvent != null) { foreach (var each in OnServerLoginWithPSNResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithPSNResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerLoginWithServerCustomIdRequestEvent != null) { foreach (var each in OnServerLoginWithServerCustomIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithServerCustomIdRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerLoginWithServerCustomIdResultEvent != null) { foreach (var each in OnServerLoginWithServerCustomIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithServerCustomIdResultEvent -= (PlayFabResultEvent)each; } } } @@ -1130,21 +1122,9 @@ namespace PlayFab.Events if (OnServerMoveItemToUserFromCharacterRequestEvent != null) { foreach (var each in OnServerMoveItemToUserFromCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToUserFromCharacterRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerMoveItemToUserFromCharacterResultEvent != null) { foreach (var each in OnServerMoveItemToUserFromCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToUserFromCharacterResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerNotifyMatchmakerPlayerLeftRequestEvent != null) { foreach (var each in OnServerNotifyMatchmakerPlayerLeftRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerNotifyMatchmakerPlayerLeftRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerNotifyMatchmakerPlayerLeftResultEvent != null) { foreach (var each in OnServerNotifyMatchmakerPlayerLeftResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerNotifyMatchmakerPlayerLeftResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerRedeemCouponRequestEvent != null) { foreach (var each in OnServerRedeemCouponRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemCouponRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerRedeemCouponResultEvent != null) { foreach (var each in OnServerRedeemCouponResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemCouponResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerRedeemMatchmakerTicketRequestEvent != null) { foreach (var each in OnServerRedeemMatchmakerTicketRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemMatchmakerTicketRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerRedeemMatchmakerTicketResultEvent != null) { foreach (var each in OnServerRedeemMatchmakerTicketResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemMatchmakerTicketResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnServerRefreshGameServerInstanceHeartbeatRequestEvent != null) { foreach (var each in OnServerRefreshGameServerInstanceHeartbeatRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRefreshGameServerInstanceHeartbeatRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerRefreshGameServerInstanceHeartbeatResultEvent != null) { foreach (var each in OnServerRefreshGameServerInstanceHeartbeatResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRefreshGameServerInstanceHeartbeatResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnServerRegisterGameRequestEvent != null) { foreach (var each in OnServerRegisterGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRegisterGameRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerRegisterGameResultEvent != null) { foreach (var each in OnServerRegisterGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRegisterGameResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerRemoveFriendRequestEvent != null) { foreach (var each in OnServerRemoveFriendRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveFriendRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerRemoveFriendResultEvent != null) { foreach (var each in OnServerRemoveFriendResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveFriendResultEvent -= (PlayFabResultEvent)each; } } } @@ -1190,15 +1170,6 @@ namespace PlayFab.Events if (OnServerSetFriendTagsRequestEvent != null) { foreach (var each in OnServerSetFriendTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetFriendTagsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerSetFriendTagsResultEvent != null) { foreach (var each in OnServerSetFriendTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetFriendTagsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerSetGameServerInstanceDataRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceDataRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerSetGameServerInstanceDataResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceDataResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnServerSetGameServerInstanceStateRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceStateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceStateRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerSetGameServerInstanceStateResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceStateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceStateResultEvent -= (PlayFabResultEvent)each; } } } - - if (OnServerSetGameServerInstanceTagsRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceTagsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnServerSetGameServerInstanceTagsResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceTagsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnServerSetPlayerSecretRequestEvent != null) { foreach (var each in OnServerSetPlayerSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPlayerSecretRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerSetPlayerSecretResultEvent != null) { foreach (var each in OnServerSetPlayerSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPlayerSecretResultEvent -= (PlayFabResultEvent)each; } } } @@ -1229,6 +1200,9 @@ namespace PlayFab.Events if (OnServerUnlinkServerCustomIdRequestEvent != null) { foreach (var each in OnServerUnlinkServerCustomIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkServerCustomIdRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerUnlinkServerCustomIdResultEvent != null) { foreach (var each in OnServerUnlinkServerCustomIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkServerCustomIdResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerUnlinkSteamIdRequestEvent != null) { foreach (var each in OnServerUnlinkSteamIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkSteamIdRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnServerUnlinkSteamIdResultEvent != null) { foreach (var each in OnServerUnlinkSteamIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkSteamIdResultEvent -= (PlayFabResultEvent)each; } } } + if (OnServerUnlinkXboxAccountRequestEvent != null) { foreach (var each in OnServerUnlinkXboxAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkXboxAccountRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnServerUnlinkXboxAccountResultEvent != null) { foreach (var each in OnServerUnlinkXboxAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlinkXboxAccountResultEvent -= (PlayFabResultEvent)each; } } } @@ -1317,6 +1291,9 @@ namespace PlayFab.Events if (OnCloudScriptGetFunctionRequestEvent != null) { foreach (var each in OnCloudScriptGetFunctionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptGetFunctionRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnCloudScriptGetFunctionResultEvent != null) { foreach (var each in OnCloudScriptGetFunctionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptGetFunctionResultEvent -= (PlayFabResultEvent)each; } } } + if (OnCloudScriptListEventHubFunctionsRequestEvent != null) { foreach (var each in OnCloudScriptListEventHubFunctionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptListEventHubFunctionsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnCloudScriptListEventHubFunctionsResultEvent != null) { foreach (var each in OnCloudScriptListEventHubFunctionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptListEventHubFunctionsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnCloudScriptListFunctionsRequestEvent != null) { foreach (var each in OnCloudScriptListFunctionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptListFunctionsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnCloudScriptListFunctionsResultEvent != null) { foreach (var each in OnCloudScriptListFunctionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptListFunctionsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1338,6 +1315,9 @@ namespace PlayFab.Events if (OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent != null) { foreach (var each in OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnCloudScriptPostFunctionResultForScheduledTaskResultEvent != null) { foreach (var each in OnCloudScriptPostFunctionResultForScheduledTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptPostFunctionResultForScheduledTaskResultEvent -= (PlayFabResultEvent)each; } } } + if (OnCloudScriptRegisterEventHubFunctionRequestEvent != null) { foreach (var each in OnCloudScriptRegisterEventHubFunctionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptRegisterEventHubFunctionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnCloudScriptRegisterEventHubFunctionResultEvent != null) { foreach (var each in OnCloudScriptRegisterEventHubFunctionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptRegisterEventHubFunctionResultEvent -= (PlayFabResultEvent)each; } } } + if (OnCloudScriptRegisterHttpFunctionRequestEvent != null) { foreach (var each in OnCloudScriptRegisterHttpFunctionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptRegisterHttpFunctionRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnCloudScriptRegisterHttpFunctionResultEvent != null) { foreach (var each in OnCloudScriptRegisterHttpFunctionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCloudScriptRegisterHttpFunctionResultEvent -= (PlayFabResultEvent)each; } } } @@ -1396,6 +1376,9 @@ namespace PlayFab.Events if (OnEconomyExecuteInventoryOperationsRequestEvent != null) { foreach (var each in OnEconomyExecuteInventoryOperationsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyExecuteInventoryOperationsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnEconomyExecuteInventoryOperationsResultEvent != null) { foreach (var each in OnEconomyExecuteInventoryOperationsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyExecuteInventoryOperationsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnEconomyExecuteTransferOperationsRequestEvent != null) { foreach (var each in OnEconomyExecuteTransferOperationsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyExecuteTransferOperationsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEconomyExecuteTransferOperationsResultEvent != null) { foreach (var each in OnEconomyExecuteTransferOperationsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyExecuteTransferOperationsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnEconomyGetCatalogConfigRequestEvent != null) { foreach (var each in OnEconomyGetCatalogConfigRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetCatalogConfigRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnEconomyGetCatalogConfigResultEvent != null) { foreach (var each in OnEconomyGetCatalogConfigResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetCatalogConfigResultEvent -= (PlayFabResultEvent)each; } } } @@ -1417,6 +1400,9 @@ namespace PlayFab.Events if (OnEconomyGetInventoryItemsRequestEvent != null) { foreach (var each in OnEconomyGetInventoryItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetInventoryItemsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnEconomyGetInventoryItemsResultEvent != null) { foreach (var each in OnEconomyGetInventoryItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetInventoryItemsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnEconomyGetInventoryOperationStatusRequestEvent != null) { foreach (var each in OnEconomyGetInventoryOperationStatusRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetInventoryOperationStatusRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEconomyGetInventoryOperationStatusResultEvent != null) { foreach (var each in OnEconomyGetInventoryOperationStatusResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetInventoryOperationStatusResultEvent -= (PlayFabResultEvent)each; } } } + if (OnEconomyGetItemRequestEvent != null) { foreach (var each in OnEconomyGetItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetItemRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnEconomyGetItemResultEvent != null) { foreach (var each in OnEconomyGetItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyGetItemResultEvent -= (PlayFabResultEvent)each; } } } @@ -1506,6 +1492,21 @@ namespace PlayFab.Events #endif #if !DISABLE_PLAYFABENTITY_API + if (OnEventsCreateTelemetryKeyRequestEvent != null) { foreach (var each in OnEventsCreateTelemetryKeyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsCreateTelemetryKeyRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEventsCreateTelemetryKeyResultEvent != null) { foreach (var each in OnEventsCreateTelemetryKeyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsCreateTelemetryKeyResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnEventsDeleteTelemetryKeyRequestEvent != null) { foreach (var each in OnEventsDeleteTelemetryKeyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsDeleteTelemetryKeyRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEventsDeleteTelemetryKeyResultEvent != null) { foreach (var each in OnEventsDeleteTelemetryKeyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsDeleteTelemetryKeyResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnEventsGetTelemetryKeyRequestEvent != null) { foreach (var each in OnEventsGetTelemetryKeyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsGetTelemetryKeyRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEventsGetTelemetryKeyResultEvent != null) { foreach (var each in OnEventsGetTelemetryKeyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsGetTelemetryKeyResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnEventsListTelemetryKeysRequestEvent != null) { foreach (var each in OnEventsListTelemetryKeysRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsListTelemetryKeysRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEventsListTelemetryKeysResultEvent != null) { foreach (var each in OnEventsListTelemetryKeysResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsListTelemetryKeysResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnEventsSetTelemetryKeyActiveRequestEvent != null) { foreach (var each in OnEventsSetTelemetryKeyActiveRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsSetTelemetryKeyActiveRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnEventsSetTelemetryKeyActiveResultEvent != null) { foreach (var each in OnEventsSetTelemetryKeyActiveResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsSetTelemetryKeyActiveResultEvent -= (PlayFabResultEvent)each; } } } + if (OnEventsWriteEventsRequestEvent != null) { foreach (var each in OnEventsWriteEventsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsWriteEventsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnEventsWriteEventsResultEvent != null) { foreach (var each in OnEventsWriteEventsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEventsWriteEventsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1650,6 +1651,71 @@ namespace PlayFab.Events if (OnGroupsUpdateRoleRequestEvent != null) { foreach (var each in OnGroupsUpdateRoleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGroupsUpdateRoleRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnGroupsUpdateRoleResultEvent != null) { foreach (var each in OnGroupsUpdateRoleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGroupsUpdateRoleResultEvent -= (PlayFabResultEvent)each; } } } +#endif +#if !DISABLE_PLAYFABENTITY_API + if (OnProgressionCreateLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnProgressionCreateLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionCreateLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionCreateLeaderboardDefinitionResultEvent != null) { foreach (var each in OnProgressionCreateLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionCreateLeaderboardDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionCreateStatisticDefinitionRequestEvent != null) { foreach (var each in OnProgressionCreateStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionCreateStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionCreateStatisticDefinitionResultEvent != null) { foreach (var each in OnProgressionCreateStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionCreateStatisticDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionDeleteLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnProgressionDeleteLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionDeleteLeaderboardDefinitionResultEvent != null) { foreach (var each in OnProgressionDeleteLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteLeaderboardDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionDeleteLeaderboardEntriesRequestEvent != null) { foreach (var each in OnProgressionDeleteLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionDeleteLeaderboardEntriesResultEvent != null) { foreach (var each in OnProgressionDeleteLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteLeaderboardEntriesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionDeleteStatisticDefinitionRequestEvent != null) { foreach (var each in OnProgressionDeleteStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionDeleteStatisticDefinitionResultEvent != null) { foreach (var each in OnProgressionDeleteStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteStatisticDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionDeleteStatisticsRequestEvent != null) { foreach (var each in OnProgressionDeleteStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionDeleteStatisticsResultEvent != null) { foreach (var each in OnProgressionDeleteStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionDeleteStatisticsResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionGetFriendLeaderboardForEntityRequestEvent != null) { foreach (var each in OnProgressionGetFriendLeaderboardForEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetFriendLeaderboardForEntityRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetFriendLeaderboardForEntityResultEvent != null) { foreach (var each in OnProgressionGetFriendLeaderboardForEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetFriendLeaderboardForEntityResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionGetLeaderboardRequestEvent != null) { foreach (var each in OnProgressionGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetLeaderboardResultEvent != null) { foreach (var each in OnProgressionGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionGetLeaderboardAroundEntityRequestEvent != null) { foreach (var each in OnProgressionGetLeaderboardAroundEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardAroundEntityRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetLeaderboardAroundEntityResultEvent != null) { foreach (var each in OnProgressionGetLeaderboardAroundEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardAroundEntityResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionGetLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnProgressionGetLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetLeaderboardDefinitionResultEvent != null) { foreach (var each in OnProgressionGetLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionGetLeaderboardForEntitiesRequestEvent != null) { foreach (var each in OnProgressionGetLeaderboardForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetLeaderboardForEntitiesResultEvent != null) { foreach (var each in OnProgressionGetLeaderboardForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetLeaderboardForEntitiesResultEvent -= (PlayFabResultEvent)each; } } } + + 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 (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; } } } + + if (OnProgressionGetStatisticsForEntitiesRequestEvent != null) { foreach (var each in OnProgressionGetStatisticsForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetStatisticsForEntitiesResultEvent != null) { foreach (var each in OnProgressionGetStatisticsForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticsForEntitiesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionIncrementLeaderboardVersionRequestEvent != null) { foreach (var each in OnProgressionIncrementLeaderboardVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionIncrementLeaderboardVersionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionIncrementLeaderboardVersionResultEvent != null) { foreach (var each in OnProgressionIncrementLeaderboardVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionIncrementLeaderboardVersionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionIncrementStatisticVersionRequestEvent != null) { foreach (var each in OnProgressionIncrementStatisticVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionIncrementStatisticVersionRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionIncrementStatisticVersionResultEvent != null) { foreach (var each in OnProgressionIncrementStatisticVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionIncrementStatisticVersionResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionListLeaderboardDefinitionsRequestEvent != null) { foreach (var each in OnProgressionListLeaderboardDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionListLeaderboardDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionListLeaderboardDefinitionsResultEvent != null) { foreach (var each in OnProgressionListLeaderboardDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionListLeaderboardDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionListStatisticDefinitionsRequestEvent != null) { foreach (var each in OnProgressionListStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionListStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionListStatisticDefinitionsResultEvent != null) { foreach (var each in OnProgressionListStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionListStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionUnlinkLeaderboardFromStatisticRequestEvent != null) { foreach (var each in OnProgressionUnlinkLeaderboardFromStatisticRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUnlinkLeaderboardFromStatisticRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionUnlinkLeaderboardFromStatisticResultEvent != null) { foreach (var each in OnProgressionUnlinkLeaderboardFromStatisticResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUnlinkLeaderboardFromStatisticResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionUpdateLeaderboardEntriesRequestEvent != null) { foreach (var each in OnProgressionUpdateLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUpdateLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionUpdateLeaderboardEntriesResultEvent != null) { foreach (var each in OnProgressionUpdateLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUpdateLeaderboardEntriesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnProgressionUpdateStatisticsRequestEvent != null) { foreach (var each in OnProgressionUpdateStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUpdateStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionUpdateStatisticsResultEvent != null) { foreach (var each in OnProgressionUpdateStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionUpdateStatisticsResultEvent -= (PlayFabResultEvent)each; } } } + #endif #if !DISABLE_PLAYFABENTITY_API if (OnLocalizationGetLanguageListRequestEvent != null) { foreach (var each in OnLocalizationGetLanguageListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLocalizationGetLanguageListRequestEvent -= (PlayFabRequestEvent)each; } } } @@ -1723,6 +1789,9 @@ namespace PlayFab.Events if (OnMultiplayerDeleteRemoteUserRequestEvent != null) { foreach (var each in OnMultiplayerDeleteRemoteUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerDeleteRemoteUserRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerDeleteRemoteUserResultEvent != null) { foreach (var each in OnMultiplayerDeleteRemoteUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerDeleteRemoteUserResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerDeleteSecretRequestEvent != null) { foreach (var each in OnMultiplayerDeleteSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerDeleteSecretRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerDeleteSecretResultEvent != null) { foreach (var each in OnMultiplayerDeleteSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerDeleteSecretResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerEnableMultiplayerServersForTitleRequestEvent != null) { foreach (var each in OnMultiplayerEnableMultiplayerServersForTitleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerEnableMultiplayerServersForTitleRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerEnableMultiplayerServersForTitleResultEvent != null) { foreach (var each in OnMultiplayerEnableMultiplayerServersForTitleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerEnableMultiplayerServersForTitleResultEvent -= (PlayFabResultEvent)each; } } } @@ -1795,12 +1864,18 @@ namespace PlayFab.Events if (OnMultiplayerJoinLobbyRequestEvent != null) { foreach (var each in OnMultiplayerJoinLobbyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinLobbyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerJoinLobbyResultEvent != null) { foreach (var each in OnMultiplayerJoinLobbyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinLobbyResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerJoinLobbyAsServerRequestEvent != null) { foreach (var each in OnMultiplayerJoinLobbyAsServerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinLobbyAsServerRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerJoinLobbyAsServerResultEvent != null) { foreach (var each in OnMultiplayerJoinLobbyAsServerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinLobbyAsServerResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerJoinMatchmakingTicketRequestEvent != null) { foreach (var each in OnMultiplayerJoinMatchmakingTicketRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinMatchmakingTicketRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerJoinMatchmakingTicketResultEvent != null) { foreach (var each in OnMultiplayerJoinMatchmakingTicketResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerJoinMatchmakingTicketResultEvent -= (PlayFabResultEvent)each; } } } if (OnMultiplayerLeaveLobbyRequestEvent != null) { foreach (var each in OnMultiplayerLeaveLobbyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerLeaveLobbyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerLeaveLobbyResultEvent != null) { foreach (var each in OnMultiplayerLeaveLobbyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerLeaveLobbyResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerLeaveLobbyAsServerRequestEvent != null) { foreach (var each in OnMultiplayerLeaveLobbyAsServerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerLeaveLobbyAsServerRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerLeaveLobbyAsServerResultEvent != null) { foreach (var each in OnMultiplayerLeaveLobbyAsServerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerLeaveLobbyAsServerResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerListArchivedMultiplayerServersRequestEvent != null) { foreach (var each in OnMultiplayerListArchivedMultiplayerServersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListArchivedMultiplayerServersRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerListArchivedMultiplayerServersResultEvent != null) { foreach (var each in OnMultiplayerListArchivedMultiplayerServersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListArchivedMultiplayerServersResultEvent -= (PlayFabResultEvent)each; } } } @@ -1837,6 +1912,9 @@ namespace PlayFab.Events if (OnMultiplayerListQosServersForTitleRequestEvent != null) { foreach (var each in OnMultiplayerListQosServersForTitleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListQosServersForTitleRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerListQosServersForTitleResultEvent != null) { foreach (var each in OnMultiplayerListQosServersForTitleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListQosServersForTitleResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerListSecretSummariesRequestEvent != null) { foreach (var each in OnMultiplayerListSecretSummariesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListSecretSummariesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerListSecretSummariesResultEvent != null) { foreach (var each in OnMultiplayerListSecretSummariesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListSecretSummariesResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent != null) { foreach (var each in OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerListServerBackfillTicketsForPlayerResultEvent != null) { foreach (var each in OnMultiplayerListServerBackfillTicketsForPlayerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerListServerBackfillTicketsForPlayerResultEvent -= (PlayFabResultEvent)each; } } } @@ -1855,6 +1933,9 @@ namespace PlayFab.Events if (OnMultiplayerRequestMultiplayerServerRequestEvent != null) { foreach (var each in OnMultiplayerRequestMultiplayerServerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRequestMultiplayerServerRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerRequestMultiplayerServerResultEvent != null) { foreach (var each in OnMultiplayerRequestMultiplayerServerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRequestMultiplayerServerResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerRequestPartyServiceRequestEvent != null) { foreach (var each in OnMultiplayerRequestPartyServiceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRequestPartyServiceRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerRequestPartyServiceResultEvent != null) { foreach (var each in OnMultiplayerRequestPartyServiceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRequestPartyServiceResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent != null) { foreach (var each in OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerRolloverContainerRegistryCredentialsResultEvent != null) { foreach (var each in OnMultiplayerRolloverContainerRegistryCredentialsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerRolloverContainerRegistryCredentialsResultEvent -= (PlayFabResultEvent)each; } } } @@ -1894,9 +1975,15 @@ namespace PlayFab.Events if (OnMultiplayerUpdateLobbyRequestEvent != null) { foreach (var each in OnMultiplayerUpdateLobbyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUpdateLobbyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerUpdateLobbyResultEvent != null) { foreach (var each in OnMultiplayerUpdateLobbyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUpdateLobbyResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerUpdateLobbyAsServerRequestEvent != null) { foreach (var each in OnMultiplayerUpdateLobbyAsServerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUpdateLobbyAsServerRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerUpdateLobbyAsServerResultEvent != null) { foreach (var each in OnMultiplayerUpdateLobbyAsServerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUpdateLobbyAsServerResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerUploadCertificateRequestEvent != null) { foreach (var each in OnMultiplayerUploadCertificateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUploadCertificateRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnMultiplayerUploadCertificateResultEvent != null) { foreach (var each in OnMultiplayerUploadCertificateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUploadCertificateResultEvent -= (PlayFabResultEvent)each; } } } + if (OnMultiplayerUploadSecretRequestEvent != null) { foreach (var each in OnMultiplayerUploadSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUploadSecretRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnMultiplayerUploadSecretResultEvent != null) { foreach (var each in OnMultiplayerUploadSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMultiplayerUploadSecretResultEvent -= (PlayFabResultEvent)each; } } } + #endif #if !DISABLE_PLAYFABENTITY_API if (OnProfilesGetGlobalPolicyRequestEvent != null) { foreach (var each in OnProfilesGetGlobalPolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetGlobalPolicyRequestEvent -= (PlayFabRequestEvent)each; } } } @@ -1911,6 +1998,12 @@ namespace PlayFab.Events if (OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent != null) { foreach (var each in OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent -= (PlayFabResultEvent)each; } } } + 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; } } } @@ -1920,6 +2013,91 @@ namespace PlayFab.Events if (OnProfilesSetProfilePolicyRequestEvent != null) { foreach (var each in OnProfilesSetProfilePolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetProfilePolicyRequestEvent -= (PlayFabRequestEvent)each; } } } if (OnProfilesSetProfilePolicyResultEvent != null) { foreach (var each in OnProfilesSetProfilePolicyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProfilesSetProfilePolicyResultEvent -= (PlayFabResultEvent)each; } } } +#endif +#if ENABLE_PLAYFABSERVER_API +#endif +#if !DISABLE_PLAYFABENTITY_API + if (OnAddonCreateOrUpdateAppleRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateAppleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateAppleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateAppleResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateAppleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateAppleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateFacebookRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateFacebookRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateFacebookRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateFacebookResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateFacebookResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateFacebookResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateFacebookInstantGamesResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateFacebookInstantGamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateFacebookInstantGamesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateGoogleRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateGoogleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateGoogleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateGoogleResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateGoogleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateGoogleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateKongregateRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateKongregateRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateKongregateResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateKongregateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateKongregateResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateNintendoRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateNintendoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateNintendoRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateNintendoResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateNintendoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateNintendoResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdatePSNRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdatePSNRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdatePSNRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdatePSNResultEvent != null) { foreach (var each in OnAddonCreateOrUpdatePSNResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdatePSNResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateSteamRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateSteamRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateSteamRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateSteamResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateSteamResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateSteamResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonCreateOrUpdateTwitchRequestEvent != null) { foreach (var each in OnAddonCreateOrUpdateTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateTwitchRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonCreateOrUpdateTwitchResultEvent != null) { foreach (var each in OnAddonCreateOrUpdateTwitchResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonCreateOrUpdateTwitchResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteAppleRequestEvent != null) { foreach (var each in OnAddonDeleteAppleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteAppleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteAppleResultEvent != null) { foreach (var each in OnAddonDeleteAppleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteAppleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteFacebookRequestEvent != null) { foreach (var each in OnAddonDeleteFacebookRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteFacebookRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteFacebookResultEvent != null) { foreach (var each in OnAddonDeleteFacebookResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteFacebookResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteFacebookInstantGamesRequestEvent != null) { foreach (var each in OnAddonDeleteFacebookInstantGamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteFacebookInstantGamesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteFacebookInstantGamesResultEvent != null) { foreach (var each in OnAddonDeleteFacebookInstantGamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteFacebookInstantGamesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteGoogleRequestEvent != null) { foreach (var each in OnAddonDeleteGoogleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteGoogleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteGoogleResultEvent != null) { foreach (var each in OnAddonDeleteGoogleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteGoogleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteKongregateRequestEvent != null) { foreach (var each in OnAddonDeleteKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteKongregateRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteKongregateResultEvent != null) { foreach (var each in OnAddonDeleteKongregateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteKongregateResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteNintendoRequestEvent != null) { foreach (var each in OnAddonDeleteNintendoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteNintendoRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteNintendoResultEvent != null) { foreach (var each in OnAddonDeleteNintendoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteNintendoResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeletePSNRequestEvent != null) { foreach (var each in OnAddonDeletePSNRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeletePSNRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeletePSNResultEvent != null) { foreach (var each in OnAddonDeletePSNResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeletePSNResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteSteamRequestEvent != null) { foreach (var each in OnAddonDeleteSteamRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteSteamRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteSteamResultEvent != null) { foreach (var each in OnAddonDeleteSteamResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteSteamResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonDeleteTwitchRequestEvent != null) { foreach (var each in OnAddonDeleteTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteTwitchRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonDeleteTwitchResultEvent != null) { foreach (var each in OnAddonDeleteTwitchResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonDeleteTwitchResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetAppleRequestEvent != null) { foreach (var each in OnAddonGetAppleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetAppleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetAppleResultEvent != null) { foreach (var each in OnAddonGetAppleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetAppleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetFacebookRequestEvent != null) { foreach (var each in OnAddonGetFacebookRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetFacebookRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetFacebookResultEvent != null) { foreach (var each in OnAddonGetFacebookResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetFacebookResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetFacebookInstantGamesRequestEvent != null) { foreach (var each in OnAddonGetFacebookInstantGamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetFacebookInstantGamesRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetFacebookInstantGamesResultEvent != null) { foreach (var each in OnAddonGetFacebookInstantGamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetFacebookInstantGamesResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetGoogleRequestEvent != null) { foreach (var each in OnAddonGetGoogleRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetGoogleRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetGoogleResultEvent != null) { foreach (var each in OnAddonGetGoogleResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetGoogleResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetKongregateRequestEvent != null) { foreach (var each in OnAddonGetKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetKongregateRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetKongregateResultEvent != null) { foreach (var each in OnAddonGetKongregateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetKongregateResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetNintendoRequestEvent != null) { foreach (var each in OnAddonGetNintendoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetNintendoRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetNintendoResultEvent != null) { foreach (var each in OnAddonGetNintendoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetNintendoResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetPSNRequestEvent != null) { foreach (var each in OnAddonGetPSNRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetPSNRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetPSNResultEvent != null) { foreach (var each in OnAddonGetPSNResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetPSNResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetSteamRequestEvent != null) { foreach (var each in OnAddonGetSteamRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetSteamRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetSteamResultEvent != null) { foreach (var each in OnAddonGetSteamResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetSteamResultEvent -= (PlayFabResultEvent)each; } } } + + if (OnAddonGetTwitchRequestEvent != null) { foreach (var each in OnAddonGetTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetTwitchRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnAddonGetTwitchResultEvent != null) { foreach (var each in OnAddonGetTwitchResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddonGetTwitchResultEvent -= (PlayFabResultEvent)each; } } } + #endif } @@ -1957,6 +2135,7 @@ namespace PlayFab.Events if (type == typeof(AdminModels.CreateSegmentRequest)) { if (_instance.OnAdminCreateSegmentRequestEvent != null) { _instance.OnAdminCreateSegmentRequestEvent((AdminModels.CreateSegmentRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteContentRequest)) { if (_instance.OnAdminDeleteContentRequestEvent != null) { _instance.OnAdminDeleteContentRequestEvent((AdminModels.DeleteContentRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteMasterPlayerAccountRequest)) { if (_instance.OnAdminDeleteMasterPlayerAccountRequestEvent != null) { _instance.OnAdminDeleteMasterPlayerAccountRequestEvent((AdminModels.DeleteMasterPlayerAccountRequest)e.Request); return; } } + if (type == typeof(AdminModels.DeleteMasterPlayerEventDataRequest)) { if (_instance.OnAdminDeleteMasterPlayerEventDataRequestEvent != null) { _instance.OnAdminDeleteMasterPlayerEventDataRequestEvent((AdminModels.DeleteMasterPlayerEventDataRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteMembershipSubscriptionRequest)) { if (_instance.OnAdminDeleteMembershipSubscriptionRequestEvent != null) { _instance.OnAdminDeleteMembershipSubscriptionRequestEvent((AdminModels.DeleteMembershipSubscriptionRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteOpenIdConnectionRequest)) { if (_instance.OnAdminDeleteOpenIdConnectionRequestEvent != null) { _instance.OnAdminDeleteOpenIdConnectionRequestEvent((AdminModels.DeleteOpenIdConnectionRequest)e.Request); return; } } if (type == typeof(AdminModels.DeletePlayerRequest)) { if (_instance.OnAdminDeletePlayerRequestEvent != null) { _instance.OnAdminDeletePlayerRequestEvent((AdminModels.DeletePlayerRequest)e.Request); return; } } @@ -1977,8 +2156,6 @@ namespace PlayFab.Events if (type == typeof(AdminModels.GetContentListRequest)) { if (_instance.OnAdminGetContentListRequestEvent != null) { _instance.OnAdminGetContentListRequestEvent((AdminModels.GetContentListRequest)e.Request); return; } } if (type == typeof(AdminModels.GetContentUploadUrlRequest)) { if (_instance.OnAdminGetContentUploadUrlRequestEvent != null) { _instance.OnAdminGetContentUploadUrlRequestEvent((AdminModels.GetContentUploadUrlRequest)e.Request); return; } } if (type == typeof(AdminModels.GetDataReportRequest)) { if (_instance.OnAdminGetDataReportRequestEvent != null) { _instance.OnAdminGetDataReportRequestEvent((AdminModels.GetDataReportRequest)e.Request); return; } } - if (type == typeof(AdminModels.GetMatchmakerGameInfoRequest)) { if (_instance.OnAdminGetMatchmakerGameInfoRequestEvent != null) { _instance.OnAdminGetMatchmakerGameInfoRequestEvent((AdminModels.GetMatchmakerGameInfoRequest)e.Request); return; } } - if (type == typeof(AdminModels.GetMatchmakerGameModesRequest)) { if (_instance.OnAdminGetMatchmakerGameModesRequestEvent != null) { _instance.OnAdminGetMatchmakerGameModesRequestEvent((AdminModels.GetMatchmakerGameModesRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayedTitleListRequest)) { if (_instance.OnAdminGetPlayedTitleListRequestEvent != null) { _instance.OnAdminGetPlayedTitleListRequestEvent((AdminModels.GetPlayedTitleListRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerIdFromAuthTokenRequest)) { if (_instance.OnAdminGetPlayerIdFromAuthTokenRequestEvent != null) { _instance.OnAdminGetPlayerIdFromAuthTokenRequestEvent((AdminModels.GetPlayerIdFromAuthTokenRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerProfileRequest)) { if (_instance.OnAdminGetPlayerProfileRequestEvent != null) { _instance.OnAdminGetPlayerProfileRequestEvent((AdminModels.GetPlayerProfileRequest)e.Request); return; } } @@ -2012,7 +2189,6 @@ namespace PlayFab.Events if (type == typeof(AdminModels.IncrementPlayerStatisticVersionRequest)) { if (_instance.OnAdminIncrementPlayerStatisticVersionRequestEvent != null) { _instance.OnAdminIncrementPlayerStatisticVersionRequestEvent((AdminModels.IncrementPlayerStatisticVersionRequest)e.Request); return; } } if (type == typeof(AdminModels.ListOpenIdConnectionRequest)) { if (_instance.OnAdminListOpenIdConnectionRequestEvent != null) { _instance.OnAdminListOpenIdConnectionRequestEvent((AdminModels.ListOpenIdConnectionRequest)e.Request); return; } } if (type == typeof(AdminModels.ListVirtualCurrencyTypesRequest)) { if (_instance.OnAdminListVirtualCurrencyTypesRequestEvent != null) { _instance.OnAdminListVirtualCurrencyTypesRequestEvent((AdminModels.ListVirtualCurrencyTypesRequest)e.Request); return; } } - if (type == typeof(AdminModels.ModifyServerBuildRequest)) { if (_instance.OnAdminModifyServerBuildRequestEvent != null) { _instance.OnAdminModifyServerBuildRequestEvent((AdminModels.ModifyServerBuildRequest)e.Request); return; } } if (type == typeof(AdminModels.RefundPurchaseRequest)) { if (_instance.OnAdminRefundPurchaseRequestEvent != null) { _instance.OnAdminRefundPurchaseRequestEvent((AdminModels.RefundPurchaseRequest)e.Request); return; } } if (type == typeof(AdminModels.RemovePlayerTagRequest)) { if (_instance.OnAdminRemovePlayerTagRequestEvent != null) { _instance.OnAdminRemovePlayerTagRequestEvent((AdminModels.RemovePlayerTagRequest)e.Request); return; } } if (type == typeof(AdminModels.RemoveVirtualCurrencyTypesRequest)) { if (_instance.OnAdminRemoveVirtualCurrencyTypesRequestEvent != null) { _instance.OnAdminRemoveVirtualCurrencyTypesRequestEvent((AdminModels.RemoveVirtualCurrencyTypesRequest)e.Request); return; } } @@ -2085,11 +2261,9 @@ namespace PlayFab.Events if (type == typeof(ClientModels.GetCharacterDataRequest)) { if (_instance.OnGetCharacterReadOnlyDataRequestEvent != null) { _instance.OnGetCharacterReadOnlyDataRequestEvent((ClientModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterStatisticsRequest)) { if (_instance.OnGetCharacterStatisticsRequestEvent != null) { _instance.OnGetCharacterStatisticsRequestEvent((ClientModels.GetCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetContentDownloadUrlRequest)) { if (_instance.OnGetContentDownloadUrlRequestEvent != null) { _instance.OnGetContentDownloadUrlRequestEvent((ClientModels.GetContentDownloadUrlRequest)e.Request); return; } } - if (type == typeof(ClientModels.CurrentGamesRequest)) { if (_instance.OnGetCurrentGamesRequestEvent != null) { _instance.OnGetCurrentGamesRequestEvent((ClientModels.CurrentGamesRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardRequest)) { if (_instance.OnGetFriendLeaderboardRequestEvent != null) { _instance.OnGetFriendLeaderboardRequestEvent((ClientModels.GetFriendLeaderboardRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardAroundPlayerRequest)) { if (_instance.OnGetFriendLeaderboardAroundPlayerRequestEvent != null) { _instance.OnGetFriendLeaderboardAroundPlayerRequestEvent((ClientModels.GetFriendLeaderboardAroundPlayerRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendsListRequest)) { if (_instance.OnGetFriendsListRequestEvent != null) { _instance.OnGetFriendsListRequestEvent((ClientModels.GetFriendsListRequest)e.Request); return; } } - if (type == typeof(ClientModels.GameServerRegionsRequest)) { if (_instance.OnGetGameServerRegionsRequestEvent != null) { _instance.OnGetGameServerRegionsRequestEvent((ClientModels.GameServerRegionsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardRequest)) { if (_instance.OnGetLeaderboardRequestEvent != null) { _instance.OnGetLeaderboardRequestEvent((ClientModels.GetLeaderboardRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundCharacterRequest)) { if (_instance.OnGetLeaderboardAroundCharacterRequestEvent != null) { _instance.OnGetLeaderboardAroundCharacterRequestEvent((ClientModels.GetLeaderboardAroundCharacterRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundPlayerRequest)) { if (_instance.OnGetLeaderboardAroundPlayerRequestEvent != null) { _instance.OnGetLeaderboardAroundPlayerRequestEvent((ClientModels.GetLeaderboardAroundPlayerRequest)e.Request); return; } } @@ -2113,7 +2287,9 @@ namespace PlayFab.Events if (type == typeof(ClientModels.GetPlayFabIDsFromNintendoServiceAccountIdsRequest)) { if (_instance.OnGetPlayFabIDsFromNintendoServiceAccountIdsRequestEvent != null) { _instance.OnGetPlayFabIDsFromNintendoServiceAccountIdsRequestEvent((ClientModels.GetPlayFabIDsFromNintendoServiceAccountIdsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest)) { if (_instance.OnGetPlayFabIDsFromNintendoSwitchDeviceIdsRequestEvent != null) { _instance.OnGetPlayFabIDsFromNintendoSwitchDeviceIdsRequestEvent((ClientModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromPSNAccountIDsRequest)) { if (_instance.OnGetPlayFabIDsFromPSNAccountIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromPSNAccountIDsRequestEvent((ClientModels.GetPlayFabIDsFromPSNAccountIDsRequest)e.Request); return; } } + if (type == typeof(ClientModels.GetPlayFabIDsFromPSNOnlineIDsRequest)) { if (_instance.OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromPSNOnlineIDsRequestEvent((ClientModels.GetPlayFabIDsFromPSNOnlineIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromSteamIDsRequest)) { if (_instance.OnGetPlayFabIDsFromSteamIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromSteamIDsRequestEvent((ClientModels.GetPlayFabIDsFromSteamIDsRequest)e.Request); return; } } + if (type == typeof(ClientModels.GetPlayFabIDsFromSteamNamesRequest)) { if (_instance.OnGetPlayFabIDsFromSteamNamesRequestEvent != null) { _instance.OnGetPlayFabIDsFromSteamNamesRequestEvent((ClientModels.GetPlayFabIDsFromSteamNamesRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromTwitchIDsRequest)) { if (_instance.OnGetPlayFabIDsFromTwitchIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromTwitchIDsRequestEvent((ClientModels.GetPlayFabIDsFromTwitchIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromXboxLiveIDsRequest)) { if (_instance.OnGetPlayFabIDsFromXboxLiveIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromXboxLiveIDsRequestEvent((ClientModels.GetPlayFabIDsFromXboxLiveIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPublisherDataRequest)) { if (_instance.OnGetPublisherDataRequestEvent != null) { _instance.OnGetPublisherDataRequestEvent((ClientModels.GetPublisherDataRequest)e.Request); return; } } @@ -2167,7 +2343,6 @@ namespace PlayFab.Events if (type == typeof(ClientModels.LoginWithSteamRequest)) { if (_instance.OnLoginWithSteamRequestEvent != null) { _instance.OnLoginWithSteamRequestEvent((ClientModels.LoginWithSteamRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithTwitchRequest)) { if (_instance.OnLoginWithTwitchRequestEvent != null) { _instance.OnLoginWithTwitchRequestEvent((ClientModels.LoginWithTwitchRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithXboxRequest)) { if (_instance.OnLoginWithXboxRequestEvent != null) { _instance.OnLoginWithXboxRequestEvent((ClientModels.LoginWithXboxRequest)e.Request); return; } } - if (type == typeof(ClientModels.MatchmakeRequest)) { if (_instance.OnMatchmakeRequestEvent != null) { _instance.OnMatchmakeRequestEvent((ClientModels.MatchmakeRequest)e.Request); return; } } if (type == typeof(ClientModels.OpenTradeRequest)) { if (_instance.OnOpenTradeRequestEvent != null) { _instance.OnOpenTradeRequestEvent((ClientModels.OpenTradeRequest)e.Request); return; } } if (type == typeof(ClientModels.PayForPurchaseRequest)) { if (_instance.OnPayForPurchaseRequestEvent != null) { _instance.OnPayForPurchaseRequestEvent((ClientModels.PayForPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.PurchaseItemRequest)) { if (_instance.OnPurchaseItemRequestEvent != null) { _instance.OnPurchaseItemRequestEvent((ClientModels.PurchaseItemRequest)e.Request); return; } } @@ -2224,12 +2399,6 @@ namespace PlayFab.Events if (type == typeof(ClientModels.WriteClientPlayerEventRequest)) { if (_instance.OnWritePlayerEventRequestEvent != null) { _instance.OnWritePlayerEventRequestEvent((ClientModels.WriteClientPlayerEventRequest)e.Request); return; } } if (type == typeof(ClientModels.WriteTitleEventRequest)) { if (_instance.OnWriteTitleEventRequestEvent != null) { _instance.OnWriteTitleEventRequestEvent((ClientModels.WriteTitleEventRequest)e.Request); return; } } #endif -#if ENABLE_PLAYFABSERVER_API - if (type == typeof(MatchmakerModels.AuthUserRequest)) { if (_instance.OnMatchmakerAuthUserRequestEvent != null) { _instance.OnMatchmakerAuthUserRequestEvent((MatchmakerModels.AuthUserRequest)e.Request); return; } } - if (type == typeof(MatchmakerModels.PlayerJoinedRequest)) { if (_instance.OnMatchmakerPlayerJoinedRequestEvent != null) { _instance.OnMatchmakerPlayerJoinedRequestEvent((MatchmakerModels.PlayerJoinedRequest)e.Request); return; } } - if (type == typeof(MatchmakerModels.PlayerLeftRequest)) { if (_instance.OnMatchmakerPlayerLeftRequestEvent != null) { _instance.OnMatchmakerPlayerLeftRequestEvent((MatchmakerModels.PlayerLeftRequest)e.Request); return; } } - if (type == typeof(MatchmakerModels.UserInfoRequest)) { if (_instance.OnMatchmakerUserInfoRequestEvent != null) { _instance.OnMatchmakerUserInfoRequestEvent((MatchmakerModels.UserInfoRequest)e.Request); return; } } -#endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(ServerModels.AddCharacterVirtualCurrencyRequest)) { if (_instance.OnServerAddCharacterVirtualCurrencyRequestEvent != null) { _instance.OnServerAddCharacterVirtualCurrencyRequestEvent((ServerModels.AddCharacterVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ServerModels.AddFriendRequest)) { if (_instance.OnServerAddFriendRequestEvent != null) { _instance.OnServerAddFriendRequestEvent((ServerModels.AddFriendRequest)e.Request); return; } } @@ -2246,7 +2415,6 @@ namespace PlayFab.Events if (type == typeof(ServerModels.DeletePlayerRequest)) { if (_instance.OnServerDeletePlayerRequestEvent != null) { _instance.OnServerDeletePlayerRequestEvent((ServerModels.DeletePlayerRequest)e.Request); return; } } if (type == typeof(ServerModels.DeletePushNotificationTemplateRequest)) { if (_instance.OnServerDeletePushNotificationTemplateRequestEvent != null) { _instance.OnServerDeletePushNotificationTemplateRequestEvent((ServerModels.DeletePushNotificationTemplateRequest)e.Request); return; } } if (type == typeof(ServerModels.DeleteSharedGroupRequest)) { if (_instance.OnServerDeleteSharedGroupRequestEvent != null) { _instance.OnServerDeleteSharedGroupRequestEvent((ServerModels.DeleteSharedGroupRequest)e.Request); return; } } - if (type == typeof(ServerModels.DeregisterGameRequest)) { if (_instance.OnServerDeregisterGameRequestEvent != null) { _instance.OnServerDeregisterGameRequestEvent((ServerModels.DeregisterGameRequest)e.Request); return; } } if (type == typeof(ServerModels.EvaluateRandomResultTableRequest)) { if (_instance.OnServerEvaluateRandomResultTableRequestEvent != null) { _instance.OnServerEvaluateRandomResultTableRequestEvent((ServerModels.EvaluateRandomResultTableRequest)e.Request); return; } } if (type == typeof(ServerModels.ExecuteCloudScriptServerRequest)) { if (_instance.OnServerExecuteCloudScriptRequestEvent != null) { _instance.OnServerExecuteCloudScriptRequestEvent((ServerModels.ExecuteCloudScriptServerRequest)e.Request); return; } } if (type == typeof(ServerModels.GetAllSegmentsRequest)) { if (_instance.OnServerGetAllSegmentsRequestEvent != null) { _instance.OnServerGetAllSegmentsRequestEvent((ServerModels.GetAllSegmentsRequest)e.Request); return; } } @@ -2278,7 +2446,9 @@ namespace PlayFab.Events if (type == typeof(ServerModels.GetPlayFabIDsFromNintendoServiceAccountIdsRequest)) { if (_instance.OnServerGetPlayFabIDsFromNintendoServiceAccountIdsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromNintendoServiceAccountIdsRequestEvent((ServerModels.GetPlayFabIDsFromNintendoServiceAccountIdsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest)) { if (_instance.OnServerGetPlayFabIDsFromNintendoSwitchDeviceIdsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromNintendoSwitchDeviceIdsRequestEvent((ServerModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromPSNAccountIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromPSNAccountIDsRequestEvent((ServerModels.GetPlayFabIDsFromPSNAccountIDsRequest)e.Request); return; } } + if (type == typeof(ServerModels.GetPlayFabIDsFromPSNOnlineIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromPSNOnlineIDsRequestEvent((ServerModels.GetPlayFabIDsFromPSNOnlineIDsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromSteamIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromSteamIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamIDsRequestEvent((ServerModels.GetPlayFabIDsFromSteamIDsRequest)e.Request); return; } } + if (type == typeof(ServerModels.GetPlayFabIDsFromSteamNamesRequest)) { if (_instance.OnServerGetPlayFabIDsFromSteamNamesRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamNamesRequestEvent((ServerModels.GetPlayFabIDsFromSteamNamesRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromTwitchIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromTwitchIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromTwitchIDsRequestEvent((ServerModels.GetPlayFabIDsFromTwitchIDsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromXboxLiveIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromXboxLiveIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromXboxLiveIDsRequestEvent((ServerModels.GetPlayFabIDsFromXboxLiveIDsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPublisherDataRequest)) { if (_instance.OnServerGetPublisherDataRequestEvent != null) { _instance.OnServerGetPublisherDataRequestEvent((ServerModels.GetPublisherDataRequest)e.Request); return; } } @@ -2304,10 +2474,14 @@ namespace PlayFab.Events if (type == typeof(ServerModels.GrantItemsToUserRequest)) { if (_instance.OnServerGrantItemsToUserRequestEvent != null) { _instance.OnServerGrantItemsToUserRequestEvent((ServerModels.GrantItemsToUserRequest)e.Request); return; } } if (type == typeof(ServerModels.GrantItemsToUsersRequest)) { if (_instance.OnServerGrantItemsToUsersRequestEvent != null) { _instance.OnServerGrantItemsToUsersRequestEvent((ServerModels.GrantItemsToUsersRequest)e.Request); return; } } if (type == typeof(ServerModels.LinkNintendoServiceAccountRequest)) { if (_instance.OnServerLinkNintendoServiceAccountRequestEvent != null) { _instance.OnServerLinkNintendoServiceAccountRequestEvent((ServerModels.LinkNintendoServiceAccountRequest)e.Request); return; } } + if (type == typeof(ServerModels.LinkNintendoServiceAccountSubjectRequest)) { if (_instance.OnServerLinkNintendoServiceAccountSubjectRequestEvent != null) { _instance.OnServerLinkNintendoServiceAccountSubjectRequestEvent((ServerModels.LinkNintendoServiceAccountSubjectRequest)e.Request); return; } } if (type == typeof(ServerModels.LinkNintendoSwitchDeviceIdRequest)) { if (_instance.OnServerLinkNintendoSwitchDeviceIdRequestEvent != null) { _instance.OnServerLinkNintendoSwitchDeviceIdRequestEvent((ServerModels.LinkNintendoSwitchDeviceIdRequest)e.Request); return; } } if (type == typeof(ServerModels.LinkPSNAccountRequest)) { if (_instance.OnServerLinkPSNAccountRequestEvent != null) { _instance.OnServerLinkPSNAccountRequestEvent((ServerModels.LinkPSNAccountRequest)e.Request); return; } } + if (type == typeof(ServerModels.LinkPSNIdRequest)) { if (_instance.OnServerLinkPSNIdRequestEvent != null) { _instance.OnServerLinkPSNIdRequestEvent((ServerModels.LinkPSNIdRequest)e.Request); return; } } if (type == typeof(ServerModels.LinkServerCustomIdRequest)) { if (_instance.OnServerLinkServerCustomIdRequestEvent != null) { _instance.OnServerLinkServerCustomIdRequestEvent((ServerModels.LinkServerCustomIdRequest)e.Request); return; } } + if (type == typeof(ServerModels.LinkSteamIdRequest)) { if (_instance.OnServerLinkSteamIdRequestEvent != null) { _instance.OnServerLinkSteamIdRequestEvent((ServerModels.LinkSteamIdRequest)e.Request); return; } } if (type == typeof(ServerModels.LinkXboxAccountRequest)) { if (_instance.OnServerLinkXboxAccountRequestEvent != null) { _instance.OnServerLinkXboxAccountRequestEvent((ServerModels.LinkXboxAccountRequest)e.Request); return; } } + if (type == typeof(ServerModels.LoginWithPSNRequest)) { if (_instance.OnServerLoginWithPSNRequestEvent != null) { _instance.OnServerLoginWithPSNRequestEvent((ServerModels.LoginWithPSNRequest)e.Request); return; } } if (type == typeof(ServerModels.LoginWithServerCustomIdRequest)) { if (_instance.OnServerLoginWithServerCustomIdRequestEvent != null) { _instance.OnServerLoginWithServerCustomIdRequestEvent((ServerModels.LoginWithServerCustomIdRequest)e.Request); return; } } if (type == typeof(ServerModels.LoginWithSteamIdRequest)) { if (_instance.OnServerLoginWithSteamIdRequestEvent != null) { _instance.OnServerLoginWithSteamIdRequestEvent((ServerModels.LoginWithSteamIdRequest)e.Request); return; } } if (type == typeof(ServerModels.LoginWithXboxRequest)) { if (_instance.OnServerLoginWithXboxRequestEvent != null) { _instance.OnServerLoginWithXboxRequestEvent((ServerModels.LoginWithXboxRequest)e.Request); return; } } @@ -2316,11 +2490,7 @@ namespace PlayFab.Events if (type == typeof(ServerModels.MoveItemToCharacterFromCharacterRequest)) { if (_instance.OnServerMoveItemToCharacterFromCharacterRequestEvent != null) { _instance.OnServerMoveItemToCharacterFromCharacterRequestEvent((ServerModels.MoveItemToCharacterFromCharacterRequest)e.Request); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromUserRequest)) { if (_instance.OnServerMoveItemToCharacterFromUserRequestEvent != null) { _instance.OnServerMoveItemToCharacterFromUserRequestEvent((ServerModels.MoveItemToCharacterFromUserRequest)e.Request); return; } } if (type == typeof(ServerModels.MoveItemToUserFromCharacterRequest)) { if (_instance.OnServerMoveItemToUserFromCharacterRequestEvent != null) { _instance.OnServerMoveItemToUserFromCharacterRequestEvent((ServerModels.MoveItemToUserFromCharacterRequest)e.Request); return; } } - if (type == typeof(ServerModels.NotifyMatchmakerPlayerLeftRequest)) { if (_instance.OnServerNotifyMatchmakerPlayerLeftRequestEvent != null) { _instance.OnServerNotifyMatchmakerPlayerLeftRequestEvent((ServerModels.NotifyMatchmakerPlayerLeftRequest)e.Request); return; } } if (type == typeof(ServerModels.RedeemCouponRequest)) { if (_instance.OnServerRedeemCouponRequestEvent != null) { _instance.OnServerRedeemCouponRequestEvent((ServerModels.RedeemCouponRequest)e.Request); return; } } - if (type == typeof(ServerModels.RedeemMatchmakerTicketRequest)) { if (_instance.OnServerRedeemMatchmakerTicketRequestEvent != null) { _instance.OnServerRedeemMatchmakerTicketRequestEvent((ServerModels.RedeemMatchmakerTicketRequest)e.Request); return; } } - if (type == typeof(ServerModels.RefreshGameServerInstanceHeartbeatRequest)) { if (_instance.OnServerRefreshGameServerInstanceHeartbeatRequestEvent != null) { _instance.OnServerRefreshGameServerInstanceHeartbeatRequestEvent((ServerModels.RefreshGameServerInstanceHeartbeatRequest)e.Request); return; } } - if (type == typeof(ServerModels.RegisterGameRequest)) { if (_instance.OnServerRegisterGameRequestEvent != null) { _instance.OnServerRegisterGameRequestEvent((ServerModels.RegisterGameRequest)e.Request); return; } } if (type == typeof(ServerModels.RemoveFriendRequest)) { if (_instance.OnServerRemoveFriendRequestEvent != null) { _instance.OnServerRemoveFriendRequestEvent((ServerModels.RemoveFriendRequest)e.Request); return; } } if (type == typeof(ServerModels.RemoveGenericIDRequest)) { if (_instance.OnServerRemoveGenericIDRequestEvent != null) { _instance.OnServerRemoveGenericIDRequestEvent((ServerModels.RemoveGenericIDRequest)e.Request); return; } } if (type == typeof(ServerModels.RemovePlayerTagRequest)) { if (_instance.OnServerRemovePlayerTagRequestEvent != null) { _instance.OnServerRemovePlayerTagRequestEvent((ServerModels.RemovePlayerTagRequest)e.Request); return; } } @@ -2336,9 +2506,6 @@ namespace PlayFab.Events if (type == typeof(ServerModels.SendPushNotificationRequest)) { if (_instance.OnServerSendPushNotificationRequestEvent != null) { _instance.OnServerSendPushNotificationRequestEvent((ServerModels.SendPushNotificationRequest)e.Request); return; } } if (type == typeof(ServerModels.SendPushNotificationFromTemplateRequest)) { if (_instance.OnServerSendPushNotificationFromTemplateRequestEvent != null) { _instance.OnServerSendPushNotificationFromTemplateRequestEvent((ServerModels.SendPushNotificationFromTemplateRequest)e.Request); return; } } if (type == typeof(ServerModels.SetFriendTagsRequest)) { if (_instance.OnServerSetFriendTagsRequestEvent != null) { _instance.OnServerSetFriendTagsRequestEvent((ServerModels.SetFriendTagsRequest)e.Request); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceDataRequest)) { if (_instance.OnServerSetGameServerInstanceDataRequestEvent != null) { _instance.OnServerSetGameServerInstanceDataRequestEvent((ServerModels.SetGameServerInstanceDataRequest)e.Request); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceStateRequest)) { if (_instance.OnServerSetGameServerInstanceStateRequestEvent != null) { _instance.OnServerSetGameServerInstanceStateRequestEvent((ServerModels.SetGameServerInstanceStateRequest)e.Request); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceTagsRequest)) { if (_instance.OnServerSetGameServerInstanceTagsRequestEvent != null) { _instance.OnServerSetGameServerInstanceTagsRequestEvent((ServerModels.SetGameServerInstanceTagsRequest)e.Request); return; } } if (type == typeof(ServerModels.SetPlayerSecretRequest)) { if (_instance.OnServerSetPlayerSecretRequestEvent != null) { _instance.OnServerSetPlayerSecretRequestEvent((ServerModels.SetPlayerSecretRequest)e.Request); return; } } if (type == typeof(ServerModels.SetPublisherDataRequest)) { if (_instance.OnServerSetPublisherDataRequestEvent != null) { _instance.OnServerSetPublisherDataRequestEvent((ServerModels.SetPublisherDataRequest)e.Request); return; } } if (type == typeof(ServerModels.SetTitleDataRequest)) { if (_instance.OnServerSetTitleDataRequestEvent != null) { _instance.OnServerSetTitleDataRequestEvent((ServerModels.SetTitleDataRequest)e.Request); return; } } @@ -2349,6 +2516,7 @@ namespace PlayFab.Events if (type == typeof(ServerModels.UnlinkNintendoSwitchDeviceIdRequest)) { if (_instance.OnServerUnlinkNintendoSwitchDeviceIdRequestEvent != null) { _instance.OnServerUnlinkNintendoSwitchDeviceIdRequestEvent((ServerModels.UnlinkNintendoSwitchDeviceIdRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlinkPSNAccountRequest)) { if (_instance.OnServerUnlinkPSNAccountRequestEvent != null) { _instance.OnServerUnlinkPSNAccountRequestEvent((ServerModels.UnlinkPSNAccountRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlinkServerCustomIdRequest)) { if (_instance.OnServerUnlinkServerCustomIdRequestEvent != null) { _instance.OnServerUnlinkServerCustomIdRequestEvent((ServerModels.UnlinkServerCustomIdRequest)e.Request); return; } } + if (type == typeof(ServerModels.UnlinkSteamIdRequest)) { if (_instance.OnServerUnlinkSteamIdRequestEvent != null) { _instance.OnServerUnlinkSteamIdRequestEvent((ServerModels.UnlinkSteamIdRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlinkXboxAccountRequest)) { if (_instance.OnServerUnlinkXboxAccountRequestEvent != null) { _instance.OnServerUnlinkXboxAccountRequestEvent((ServerModels.UnlinkXboxAccountRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlockContainerInstanceRequest)) { if (_instance.OnServerUnlockContainerInstanceRequestEvent != null) { _instance.OnServerUnlockContainerInstanceRequestEvent((ServerModels.UnlockContainerInstanceRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlockContainerItemRequest)) { if (_instance.OnServerUnlockContainerItemRequestEvent != null) { _instance.OnServerUnlockContainerItemRequestEvent((ServerModels.UnlockContainerItemRequest)e.Request); return; } } @@ -2381,6 +2549,7 @@ namespace PlayFab.Events if (type == typeof(CloudScriptModels.ExecuteEntityCloudScriptRequest)) { if (_instance.OnCloudScriptExecuteEntityCloudScriptRequestEvent != null) { _instance.OnCloudScriptExecuteEntityCloudScriptRequestEvent((CloudScriptModels.ExecuteEntityCloudScriptRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.ExecuteFunctionRequest)) { if (_instance.OnCloudScriptExecuteFunctionRequestEvent != null) { _instance.OnCloudScriptExecuteFunctionRequestEvent((CloudScriptModels.ExecuteFunctionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.GetFunctionRequest)) { if (_instance.OnCloudScriptGetFunctionRequestEvent != null) { _instance.OnCloudScriptGetFunctionRequestEvent((CloudScriptModels.GetFunctionRequest)e.Request); return; } } + if (type == typeof(CloudScriptModels.ListFunctionsRequest)) { if (_instance.OnCloudScriptListEventHubFunctionsRequestEvent != null) { _instance.OnCloudScriptListEventHubFunctionsRequestEvent((CloudScriptModels.ListFunctionsRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.ListFunctionsRequest)) { if (_instance.OnCloudScriptListFunctionsRequestEvent != null) { _instance.OnCloudScriptListFunctionsRequestEvent((CloudScriptModels.ListFunctionsRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.ListFunctionsRequest)) { if (_instance.OnCloudScriptListHttpFunctionsRequestEvent != null) { _instance.OnCloudScriptListHttpFunctionsRequestEvent((CloudScriptModels.ListFunctionsRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.ListFunctionsRequest)) { if (_instance.OnCloudScriptListQueuedFunctionsRequestEvent != null) { _instance.OnCloudScriptListQueuedFunctionsRequestEvent((CloudScriptModels.ListFunctionsRequest)e.Request); return; } } @@ -2388,6 +2557,7 @@ namespace PlayFab.Events if (type == typeof(CloudScriptModels.PostFunctionResultForFunctionExecutionRequest)) { if (_instance.OnCloudScriptPostFunctionResultForFunctionExecutionRequestEvent != null) { _instance.OnCloudScriptPostFunctionResultForFunctionExecutionRequestEvent((CloudScriptModels.PostFunctionResultForFunctionExecutionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.PostFunctionResultForPlayerTriggeredActionRequest)) { if (_instance.OnCloudScriptPostFunctionResultForPlayerTriggeredActionRequestEvent != null) { _instance.OnCloudScriptPostFunctionResultForPlayerTriggeredActionRequestEvent((CloudScriptModels.PostFunctionResultForPlayerTriggeredActionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.PostFunctionResultForScheduledTaskRequest)) { if (_instance.OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent != null) { _instance.OnCloudScriptPostFunctionResultForScheduledTaskRequestEvent((CloudScriptModels.PostFunctionResultForScheduledTaskRequest)e.Request); return; } } + if (type == typeof(CloudScriptModels.RegisterEventHubFunctionRequest)) { if (_instance.OnCloudScriptRegisterEventHubFunctionRequestEvent != null) { _instance.OnCloudScriptRegisterEventHubFunctionRequestEvent((CloudScriptModels.RegisterEventHubFunctionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.RegisterHttpFunctionRequest)) { if (_instance.OnCloudScriptRegisterHttpFunctionRequestEvent != null) { _instance.OnCloudScriptRegisterHttpFunctionRequestEvent((CloudScriptModels.RegisterHttpFunctionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.RegisterQueuedFunctionRequest)) { if (_instance.OnCloudScriptRegisterQueuedFunctionRequestEvent != null) { _instance.OnCloudScriptRegisterQueuedFunctionRequestEvent((CloudScriptModels.RegisterQueuedFunctionRequest)e.Request); return; } } if (type == typeof(CloudScriptModels.UnregisterFunctionRequest)) { if (_instance.OnCloudScriptUnregisterFunctionRequestEvent != null) { _instance.OnCloudScriptUnregisterFunctionRequestEvent((CloudScriptModels.UnregisterFunctionRequest)e.Request); return; } } @@ -2410,6 +2580,7 @@ namespace PlayFab.Events if (type == typeof(EconomyModels.DeleteInventoryItemsRequest)) { if (_instance.OnEconomyDeleteInventoryItemsRequestEvent != null) { _instance.OnEconomyDeleteInventoryItemsRequestEvent((EconomyModels.DeleteInventoryItemsRequest)e.Request); return; } } if (type == typeof(EconomyModels.DeleteItemRequest)) { if (_instance.OnEconomyDeleteItemRequestEvent != null) { _instance.OnEconomyDeleteItemRequestEvent((EconomyModels.DeleteItemRequest)e.Request); return; } } if (type == typeof(EconomyModels.ExecuteInventoryOperationsRequest)) { if (_instance.OnEconomyExecuteInventoryOperationsRequestEvent != null) { _instance.OnEconomyExecuteInventoryOperationsRequestEvent((EconomyModels.ExecuteInventoryOperationsRequest)e.Request); return; } } + if (type == typeof(EconomyModels.ExecuteTransferOperationsRequest)) { if (_instance.OnEconomyExecuteTransferOperationsRequestEvent != null) { _instance.OnEconomyExecuteTransferOperationsRequestEvent((EconomyModels.ExecuteTransferOperationsRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetCatalogConfigRequest)) { if (_instance.OnEconomyGetCatalogConfigRequestEvent != null) { _instance.OnEconomyGetCatalogConfigRequestEvent((EconomyModels.GetCatalogConfigRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetDraftItemRequest)) { if (_instance.OnEconomyGetDraftItemRequestEvent != null) { _instance.OnEconomyGetDraftItemRequestEvent((EconomyModels.GetDraftItemRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetDraftItemsRequest)) { if (_instance.OnEconomyGetDraftItemsRequestEvent != null) { _instance.OnEconomyGetDraftItemsRequestEvent((EconomyModels.GetDraftItemsRequest)e.Request); return; } } @@ -2417,6 +2588,7 @@ namespace PlayFab.Events if (type == typeof(EconomyModels.GetEntityItemReviewRequest)) { if (_instance.OnEconomyGetEntityItemReviewRequestEvent != null) { _instance.OnEconomyGetEntityItemReviewRequestEvent((EconomyModels.GetEntityItemReviewRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetInventoryCollectionIdsRequest)) { if (_instance.OnEconomyGetInventoryCollectionIdsRequestEvent != null) { _instance.OnEconomyGetInventoryCollectionIdsRequestEvent((EconomyModels.GetInventoryCollectionIdsRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetInventoryItemsRequest)) { if (_instance.OnEconomyGetInventoryItemsRequestEvent != null) { _instance.OnEconomyGetInventoryItemsRequestEvent((EconomyModels.GetInventoryItemsRequest)e.Request); return; } } + if (type == typeof(EconomyModels.GetInventoryOperationStatusRequest)) { if (_instance.OnEconomyGetInventoryOperationStatusRequestEvent != null) { _instance.OnEconomyGetInventoryOperationStatusRequestEvent((EconomyModels.GetInventoryOperationStatusRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetItemRequest)) { if (_instance.OnEconomyGetItemRequestEvent != null) { _instance.OnEconomyGetItemRequestEvent((EconomyModels.GetItemRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetItemContainersRequest)) { if (_instance.OnEconomyGetItemContainersRequestEvent != null) { _instance.OnEconomyGetItemContainersRequestEvent((EconomyModels.GetItemContainersRequest)e.Request); return; } } if (type == typeof(EconomyModels.GetItemModerationStateRequest)) { if (_instance.OnEconomyGetItemModerationStateRequestEvent != null) { _instance.OnEconomyGetItemModerationStateRequestEvent((EconomyModels.GetItemModerationStateRequest)e.Request); return; } } @@ -2448,6 +2620,11 @@ namespace PlayFab.Events if (type == typeof(EconomyModels.UpdateInventoryItemsRequest)) { if (_instance.OnEconomyUpdateInventoryItemsRequestEvent != null) { _instance.OnEconomyUpdateInventoryItemsRequestEvent((EconomyModels.UpdateInventoryItemsRequest)e.Request); return; } } #endif #if !DISABLE_PLAYFABENTITY_API + if (type == typeof(EventsModels.CreateTelemetryKeyRequest)) { if (_instance.OnEventsCreateTelemetryKeyRequestEvent != null) { _instance.OnEventsCreateTelemetryKeyRequestEvent((EventsModels.CreateTelemetryKeyRequest)e.Request); return; } } + if (type == typeof(EventsModels.DeleteTelemetryKeyRequest)) { if (_instance.OnEventsDeleteTelemetryKeyRequestEvent != null) { _instance.OnEventsDeleteTelemetryKeyRequestEvent((EventsModels.DeleteTelemetryKeyRequest)e.Request); return; } } + if (type == typeof(EventsModels.GetTelemetryKeyRequest)) { if (_instance.OnEventsGetTelemetryKeyRequestEvent != null) { _instance.OnEventsGetTelemetryKeyRequestEvent((EventsModels.GetTelemetryKeyRequest)e.Request); return; } } + if (type == typeof(EventsModels.ListTelemetryKeysRequest)) { if (_instance.OnEventsListTelemetryKeysRequestEvent != null) { _instance.OnEventsListTelemetryKeysRequestEvent((EventsModels.ListTelemetryKeysRequest)e.Request); return; } } + if (type == typeof(EventsModels.SetTelemetryKeyActiveRequest)) { if (_instance.OnEventsSetTelemetryKeyActiveRequestEvent != null) { _instance.OnEventsSetTelemetryKeyActiveRequestEvent((EventsModels.SetTelemetryKeyActiveRequest)e.Request); return; } } if (type == typeof(EventsModels.WriteEventsRequest)) { if (_instance.OnEventsWriteEventsRequestEvent != null) { _instance.OnEventsWriteEventsRequestEvent((EventsModels.WriteEventsRequest)e.Request); return; } } if (type == typeof(EventsModels.WriteEventsRequest)) { if (_instance.OnEventsWriteTelemetryEventsRequestEvent != null) { _instance.OnEventsWriteTelemetryEventsRequestEvent((EventsModels.WriteEventsRequest)e.Request); return; } } #endif @@ -2501,6 +2678,29 @@ namespace PlayFab.Events if (type == typeof(GroupsModels.UpdateGroupRequest)) { if (_instance.OnGroupsUpdateGroupRequestEvent != null) { _instance.OnGroupsUpdateGroupRequestEvent((GroupsModels.UpdateGroupRequest)e.Request); return; } } if (type == typeof(GroupsModels.UpdateGroupRoleRequest)) { if (_instance.OnGroupsUpdateRoleRequestEvent != null) { _instance.OnGroupsUpdateRoleRequestEvent((GroupsModels.UpdateGroupRoleRequest)e.Request); return; } } #endif +#if !DISABLE_PLAYFABENTITY_API + if (type == typeof(ProgressionModels.CreateLeaderboardDefinitionRequest)) { if (_instance.OnProgressionCreateLeaderboardDefinitionRequestEvent != null) { _instance.OnProgressionCreateLeaderboardDefinitionRequestEvent((ProgressionModels.CreateLeaderboardDefinitionRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.CreateStatisticDefinitionRequest)) { if (_instance.OnProgressionCreateStatisticDefinitionRequestEvent != null) { _instance.OnProgressionCreateStatisticDefinitionRequestEvent((ProgressionModels.CreateStatisticDefinitionRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.DeleteLeaderboardDefinitionRequest)) { if (_instance.OnProgressionDeleteLeaderboardDefinitionRequestEvent != null) { _instance.OnProgressionDeleteLeaderboardDefinitionRequestEvent((ProgressionModels.DeleteLeaderboardDefinitionRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.DeleteLeaderboardEntriesRequest)) { if (_instance.OnProgressionDeleteLeaderboardEntriesRequestEvent != null) { _instance.OnProgressionDeleteLeaderboardEntriesRequestEvent((ProgressionModels.DeleteLeaderboardEntriesRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.DeleteStatisticDefinitionRequest)) { if (_instance.OnProgressionDeleteStatisticDefinitionRequestEvent != null) { _instance.OnProgressionDeleteStatisticDefinitionRequestEvent((ProgressionModels.DeleteStatisticDefinitionRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.DeleteStatisticsRequest)) { if (_instance.OnProgressionDeleteStatisticsRequestEvent != null) { _instance.OnProgressionDeleteStatisticsRequestEvent((ProgressionModels.DeleteStatisticsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetFriendLeaderboardForEntityRequest)) { if (_instance.OnProgressionGetFriendLeaderboardForEntityRequestEvent != null) { _instance.OnProgressionGetFriendLeaderboardForEntityRequestEvent((ProgressionModels.GetFriendLeaderboardForEntityRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetEntityLeaderboardRequest)) { if (_instance.OnProgressionGetLeaderboardRequestEvent != null) { _instance.OnProgressionGetLeaderboardRequestEvent((ProgressionModels.GetEntityLeaderboardRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetLeaderboardAroundEntityRequest)) { if (_instance.OnProgressionGetLeaderboardAroundEntityRequestEvent != null) { _instance.OnProgressionGetLeaderboardAroundEntityRequestEvent((ProgressionModels.GetLeaderboardAroundEntityRequest)e.Request); return; } } + 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.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; } } + if (type == typeof(ProgressionModels.IncrementStatisticVersionRequest)) { if (_instance.OnProgressionIncrementStatisticVersionRequestEvent != null) { _instance.OnProgressionIncrementStatisticVersionRequestEvent((ProgressionModels.IncrementStatisticVersionRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.ListLeaderboardDefinitionsRequest)) { if (_instance.OnProgressionListLeaderboardDefinitionsRequestEvent != null) { _instance.OnProgressionListLeaderboardDefinitionsRequestEvent((ProgressionModels.ListLeaderboardDefinitionsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.ListStatisticDefinitionsRequest)) { if (_instance.OnProgressionListStatisticDefinitionsRequestEvent != null) { _instance.OnProgressionListStatisticDefinitionsRequestEvent((ProgressionModels.ListStatisticDefinitionsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.UnlinkLeaderboardFromStatisticRequest)) { if (_instance.OnProgressionUnlinkLeaderboardFromStatisticRequestEvent != null) { _instance.OnProgressionUnlinkLeaderboardFromStatisticRequestEvent((ProgressionModels.UnlinkLeaderboardFromStatisticRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.UpdateLeaderboardEntriesRequest)) { if (_instance.OnProgressionUpdateLeaderboardEntriesRequestEvent != null) { _instance.OnProgressionUpdateLeaderboardEntriesRequestEvent((ProgressionModels.UpdateLeaderboardEntriesRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.UpdateStatisticsRequest)) { if (_instance.OnProgressionUpdateStatisticsRequestEvent != null) { _instance.OnProgressionUpdateStatisticsRequestEvent((ProgressionModels.UpdateStatisticsRequest)e.Request); return; } } +#endif #if !DISABLE_PLAYFABENTITY_API if (type == typeof(LocalizationModels.GetLanguageListRequest)) { if (_instance.OnLocalizationGetLanguageListRequestEvent != null) { _instance.OnLocalizationGetLanguageListRequestEvent((LocalizationModels.GetLanguageListRequest)e.Request); return; } } #endif @@ -2527,6 +2727,7 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.DeleteContainerImageRequest)) { if (_instance.OnMultiplayerDeleteContainerImageRepositoryRequestEvent != null) { _instance.OnMultiplayerDeleteContainerImageRepositoryRequestEvent((MultiplayerModels.DeleteContainerImageRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.DeleteLobbyRequest)) { if (_instance.OnMultiplayerDeleteLobbyRequestEvent != null) { _instance.OnMultiplayerDeleteLobbyRequestEvent((MultiplayerModels.DeleteLobbyRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.DeleteRemoteUserRequest)) { if (_instance.OnMultiplayerDeleteRemoteUserRequestEvent != null) { _instance.OnMultiplayerDeleteRemoteUserRequestEvent((MultiplayerModels.DeleteRemoteUserRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.DeleteSecretRequest)) { if (_instance.OnMultiplayerDeleteSecretRequestEvent != null) { _instance.OnMultiplayerDeleteSecretRequestEvent((MultiplayerModels.DeleteSecretRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.EnableMultiplayerServersForTitleRequest)) { if (_instance.OnMultiplayerEnableMultiplayerServersForTitleRequestEvent != null) { _instance.OnMultiplayerEnableMultiplayerServersForTitleRequestEvent((MultiplayerModels.EnableMultiplayerServersForTitleRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.FindFriendLobbiesRequest)) { if (_instance.OnMultiplayerFindFriendLobbiesRequestEvent != null) { _instance.OnMultiplayerFindFriendLobbiesRequestEvent((MultiplayerModels.FindFriendLobbiesRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.FindLobbiesRequest)) { if (_instance.OnMultiplayerFindLobbiesRequestEvent != null) { _instance.OnMultiplayerFindLobbiesRequestEvent((MultiplayerModels.FindLobbiesRequest)e.Request); return; } } @@ -2551,8 +2752,10 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.InviteToLobbyRequest)) { if (_instance.OnMultiplayerInviteToLobbyRequestEvent != null) { _instance.OnMultiplayerInviteToLobbyRequestEvent((MultiplayerModels.InviteToLobbyRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.JoinArrangedLobbyRequest)) { if (_instance.OnMultiplayerJoinArrangedLobbyRequestEvent != null) { _instance.OnMultiplayerJoinArrangedLobbyRequestEvent((MultiplayerModels.JoinArrangedLobbyRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.JoinLobbyRequest)) { if (_instance.OnMultiplayerJoinLobbyRequestEvent != null) { _instance.OnMultiplayerJoinLobbyRequestEvent((MultiplayerModels.JoinLobbyRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.JoinLobbyAsServerRequest)) { if (_instance.OnMultiplayerJoinLobbyAsServerRequestEvent != null) { _instance.OnMultiplayerJoinLobbyAsServerRequestEvent((MultiplayerModels.JoinLobbyAsServerRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.JoinMatchmakingTicketRequest)) { if (_instance.OnMultiplayerJoinMatchmakingTicketRequestEvent != null) { _instance.OnMultiplayerJoinMatchmakingTicketRequestEvent((MultiplayerModels.JoinMatchmakingTicketRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.LeaveLobbyRequest)) { if (_instance.OnMultiplayerLeaveLobbyRequestEvent != null) { _instance.OnMultiplayerLeaveLobbyRequestEvent((MultiplayerModels.LeaveLobbyRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.LeaveLobbyAsServerRequest)) { if (_instance.OnMultiplayerLeaveLobbyAsServerRequestEvent != null) { _instance.OnMultiplayerLeaveLobbyAsServerRequestEvent((MultiplayerModels.LeaveLobbyAsServerRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListMultiplayerServersRequest)) { if (_instance.OnMultiplayerListArchivedMultiplayerServersRequestEvent != null) { _instance.OnMultiplayerListArchivedMultiplayerServersRequestEvent((MultiplayerModels.ListMultiplayerServersRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListAssetSummariesRequest)) { if (_instance.OnMultiplayerListAssetSummariesRequestEvent != null) { _instance.OnMultiplayerListAssetSummariesRequestEvent((MultiplayerModels.ListAssetSummariesRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListBuildAliasesRequest)) { if (_instance.OnMultiplayerListBuildAliasesRequestEvent != null) { _instance.OnMultiplayerListBuildAliasesRequestEvent((MultiplayerModels.ListBuildAliasesRequest)e.Request); return; } } @@ -2565,12 +2768,14 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.ListMultiplayerServersRequest)) { if (_instance.OnMultiplayerListMultiplayerServersRequestEvent != null) { _instance.OnMultiplayerListMultiplayerServersRequestEvent((MultiplayerModels.ListMultiplayerServersRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListPartyQosServersRequest)) { if (_instance.OnMultiplayerListPartyQosServersRequestEvent != null) { _instance.OnMultiplayerListPartyQosServersRequestEvent((MultiplayerModels.ListPartyQosServersRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListQosServersForTitleRequest)) { if (_instance.OnMultiplayerListQosServersForTitleRequestEvent != null) { _instance.OnMultiplayerListQosServersForTitleRequestEvent((MultiplayerModels.ListQosServersForTitleRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.ListSecretSummariesRequest)) { if (_instance.OnMultiplayerListSecretSummariesRequestEvent != null) { _instance.OnMultiplayerListSecretSummariesRequestEvent((MultiplayerModels.ListSecretSummariesRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListServerBackfillTicketsForPlayerRequest)) { if (_instance.OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent != null) { _instance.OnMultiplayerListServerBackfillTicketsForPlayerRequestEvent((MultiplayerModels.ListServerBackfillTicketsForPlayerRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListTitleMultiplayerServersQuotaChangesRequest)) { if (_instance.OnMultiplayerListTitleMultiplayerServersQuotaChangesRequestEvent != null) { _instance.OnMultiplayerListTitleMultiplayerServersQuotaChangesRequestEvent((MultiplayerModels.ListTitleMultiplayerServersQuotaChangesRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ListVirtualMachineSummariesRequest)) { if (_instance.OnMultiplayerListVirtualMachineSummariesRequestEvent != null) { _instance.OnMultiplayerListVirtualMachineSummariesRequestEvent((MultiplayerModels.ListVirtualMachineSummariesRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.RemoveMatchmakingQueueRequest)) { if (_instance.OnMultiplayerRemoveMatchmakingQueueRequestEvent != null) { _instance.OnMultiplayerRemoveMatchmakingQueueRequestEvent((MultiplayerModels.RemoveMatchmakingQueueRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.RemoveMemberFromLobbyRequest)) { if (_instance.OnMultiplayerRemoveMemberRequestEvent != null) { _instance.OnMultiplayerRemoveMemberRequestEvent((MultiplayerModels.RemoveMemberFromLobbyRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.RequestMultiplayerServerRequest)) { if (_instance.OnMultiplayerRequestMultiplayerServerRequestEvent != null) { _instance.OnMultiplayerRequestMultiplayerServerRequestEvent((MultiplayerModels.RequestMultiplayerServerRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.RequestPartyServiceRequest)) { if (_instance.OnMultiplayerRequestPartyServiceRequestEvent != null) { _instance.OnMultiplayerRequestPartyServiceRequestEvent((MultiplayerModels.RequestPartyServiceRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.RolloverContainerRegistryCredentialsRequest)) { if (_instance.OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent != null) { _instance.OnMultiplayerRolloverContainerRegistryCredentialsRequestEvent((MultiplayerModels.RolloverContainerRegistryCredentialsRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.SetMatchmakingQueueRequest)) { if (_instance.OnMultiplayerSetMatchmakingQueueRequestEvent != null) { _instance.OnMultiplayerSetMatchmakingQueueRequestEvent((MultiplayerModels.SetMatchmakingQueueRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.ShutdownMultiplayerServerRequest)) { if (_instance.OnMultiplayerShutdownMultiplayerServerRequestEvent != null) { _instance.OnMultiplayerShutdownMultiplayerServerRequestEvent((MultiplayerModels.ShutdownMultiplayerServerRequest)e.Request); return; } } @@ -2584,17 +2789,52 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.UpdateBuildRegionRequest)) { if (_instance.OnMultiplayerUpdateBuildRegionRequestEvent != null) { _instance.OnMultiplayerUpdateBuildRegionRequestEvent((MultiplayerModels.UpdateBuildRegionRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.UpdateBuildRegionsRequest)) { if (_instance.OnMultiplayerUpdateBuildRegionsRequestEvent != null) { _instance.OnMultiplayerUpdateBuildRegionsRequestEvent((MultiplayerModels.UpdateBuildRegionsRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.UpdateLobbyRequest)) { if (_instance.OnMultiplayerUpdateLobbyRequestEvent != null) { _instance.OnMultiplayerUpdateLobbyRequestEvent((MultiplayerModels.UpdateLobbyRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.UpdateLobbyAsServerRequest)) { if (_instance.OnMultiplayerUpdateLobbyAsServerRequestEvent != null) { _instance.OnMultiplayerUpdateLobbyAsServerRequestEvent((MultiplayerModels.UpdateLobbyAsServerRequest)e.Request); return; } } if (type == typeof(MultiplayerModels.UploadCertificateRequest)) { if (_instance.OnMultiplayerUploadCertificateRequestEvent != null) { _instance.OnMultiplayerUploadCertificateRequestEvent((MultiplayerModels.UploadCertificateRequest)e.Request); return; } } + if (type == typeof(MultiplayerModels.UploadSecretRequest)) { if (_instance.OnMultiplayerUploadSecretRequestEvent != null) { _instance.OnMultiplayerUploadSecretRequestEvent((MultiplayerModels.UploadSecretRequest)e.Request); return; } } #endif #if !DISABLE_PLAYFABENTITY_API if (type == typeof(ProfilesModels.GetGlobalPolicyRequest)) { if (_instance.OnProfilesGetGlobalPolicyRequestEvent != null) { _instance.OnProfilesGetGlobalPolicyRequestEvent((ProfilesModels.GetGlobalPolicyRequest)e.Request); return; } } if (type == typeof(ProfilesModels.GetEntityProfileRequest)) { if (_instance.OnProfilesGetProfileRequestEvent != null) { _instance.OnProfilesGetProfileRequestEvent((ProfilesModels.GetEntityProfileRequest)e.Request); return; } } 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; } } #endif +#if ENABLE_PLAYFABSERVER_API +#endif +#if !DISABLE_PLAYFABENTITY_API + if (type == typeof(AddonModels.CreateOrUpdateAppleRequest)) { if (_instance.OnAddonCreateOrUpdateAppleRequestEvent != null) { _instance.OnAddonCreateOrUpdateAppleRequestEvent((AddonModels.CreateOrUpdateAppleRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateFacebookRequest)) { if (_instance.OnAddonCreateOrUpdateFacebookRequestEvent != null) { _instance.OnAddonCreateOrUpdateFacebookRequestEvent((AddonModels.CreateOrUpdateFacebookRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateFacebookInstantGamesRequest)) { if (_instance.OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent != null) { _instance.OnAddonCreateOrUpdateFacebookInstantGamesRequestEvent((AddonModels.CreateOrUpdateFacebookInstantGamesRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateGoogleRequest)) { if (_instance.OnAddonCreateOrUpdateGoogleRequestEvent != null) { _instance.OnAddonCreateOrUpdateGoogleRequestEvent((AddonModels.CreateOrUpdateGoogleRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateKongregateRequest)) { if (_instance.OnAddonCreateOrUpdateKongregateRequestEvent != null) { _instance.OnAddonCreateOrUpdateKongregateRequestEvent((AddonModels.CreateOrUpdateKongregateRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateNintendoRequest)) { if (_instance.OnAddonCreateOrUpdateNintendoRequestEvent != null) { _instance.OnAddonCreateOrUpdateNintendoRequestEvent((AddonModels.CreateOrUpdateNintendoRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdatePSNRequest)) { if (_instance.OnAddonCreateOrUpdatePSNRequestEvent != null) { _instance.OnAddonCreateOrUpdatePSNRequestEvent((AddonModels.CreateOrUpdatePSNRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateSteamRequest)) { if (_instance.OnAddonCreateOrUpdateSteamRequestEvent != null) { _instance.OnAddonCreateOrUpdateSteamRequestEvent((AddonModels.CreateOrUpdateSteamRequest)e.Request); return; } } + if (type == typeof(AddonModels.CreateOrUpdateTwitchRequest)) { if (_instance.OnAddonCreateOrUpdateTwitchRequestEvent != null) { _instance.OnAddonCreateOrUpdateTwitchRequestEvent((AddonModels.CreateOrUpdateTwitchRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteAppleRequest)) { if (_instance.OnAddonDeleteAppleRequestEvent != null) { _instance.OnAddonDeleteAppleRequestEvent((AddonModels.DeleteAppleRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteFacebookRequest)) { if (_instance.OnAddonDeleteFacebookRequestEvent != null) { _instance.OnAddonDeleteFacebookRequestEvent((AddonModels.DeleteFacebookRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteFacebookInstantGamesRequest)) { if (_instance.OnAddonDeleteFacebookInstantGamesRequestEvent != null) { _instance.OnAddonDeleteFacebookInstantGamesRequestEvent((AddonModels.DeleteFacebookInstantGamesRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteGoogleRequest)) { if (_instance.OnAddonDeleteGoogleRequestEvent != null) { _instance.OnAddonDeleteGoogleRequestEvent((AddonModels.DeleteGoogleRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteKongregateRequest)) { if (_instance.OnAddonDeleteKongregateRequestEvent != null) { _instance.OnAddonDeleteKongregateRequestEvent((AddonModels.DeleteKongregateRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteNintendoRequest)) { if (_instance.OnAddonDeleteNintendoRequestEvent != null) { _instance.OnAddonDeleteNintendoRequestEvent((AddonModels.DeleteNintendoRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeletePSNRequest)) { if (_instance.OnAddonDeletePSNRequestEvent != null) { _instance.OnAddonDeletePSNRequestEvent((AddonModels.DeletePSNRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteSteamRequest)) { if (_instance.OnAddonDeleteSteamRequestEvent != null) { _instance.OnAddonDeleteSteamRequestEvent((AddonModels.DeleteSteamRequest)e.Request); return; } } + if (type == typeof(AddonModels.DeleteTwitchRequest)) { if (_instance.OnAddonDeleteTwitchRequestEvent != null) { _instance.OnAddonDeleteTwitchRequestEvent((AddonModels.DeleteTwitchRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetAppleRequest)) { if (_instance.OnAddonGetAppleRequestEvent != null) { _instance.OnAddonGetAppleRequestEvent((AddonModels.GetAppleRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetFacebookRequest)) { if (_instance.OnAddonGetFacebookRequestEvent != null) { _instance.OnAddonGetFacebookRequestEvent((AddonModels.GetFacebookRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetFacebookInstantGamesRequest)) { if (_instance.OnAddonGetFacebookInstantGamesRequestEvent != null) { _instance.OnAddonGetFacebookInstantGamesRequestEvent((AddonModels.GetFacebookInstantGamesRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetGoogleRequest)) { if (_instance.OnAddonGetGoogleRequestEvent != null) { _instance.OnAddonGetGoogleRequestEvent((AddonModels.GetGoogleRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetKongregateRequest)) { if (_instance.OnAddonGetKongregateRequestEvent != null) { _instance.OnAddonGetKongregateRequestEvent((AddonModels.GetKongregateRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetNintendoRequest)) { if (_instance.OnAddonGetNintendoRequestEvent != null) { _instance.OnAddonGetNintendoRequestEvent((AddonModels.GetNintendoRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetPSNRequest)) { if (_instance.OnAddonGetPSNRequestEvent != null) { _instance.OnAddonGetPSNRequestEvent((AddonModels.GetPSNRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetSteamRequest)) { if (_instance.OnAddonGetSteamRequestEvent != null) { _instance.OnAddonGetSteamRequestEvent((AddonModels.GetSteamRequest)e.Request); return; } } + if (type == typeof(AddonModels.GetTwitchRequest)) { if (_instance.OnAddonGetTwitchRequestEvent != null) { _instance.OnAddonGetTwitchRequestEvent((AddonModels.GetTwitchRequest)e.Request); return; } } +#endif } else @@ -2619,6 +2859,7 @@ namespace PlayFab.Events if (type == typeof(AdminModels.CreateSegmentResponse)) { if (_instance.OnAdminCreateSegmentResultEvent != null) { _instance.OnAdminCreateSegmentResultEvent((AdminModels.CreateSegmentResponse)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminDeleteContentResultEvent != null) { _instance.OnAdminDeleteContentResultEvent((AdminModels.BlankResult)e.Result); return; } } if (type == typeof(AdminModels.DeleteMasterPlayerAccountResult)) { if (_instance.OnAdminDeleteMasterPlayerAccountResultEvent != null) { _instance.OnAdminDeleteMasterPlayerAccountResultEvent((AdminModels.DeleteMasterPlayerAccountResult)e.Result); return; } } + if (type == typeof(AdminModels.DeleteMasterPlayerEventDataResult)) { if (_instance.OnAdminDeleteMasterPlayerEventDataResultEvent != null) { _instance.OnAdminDeleteMasterPlayerEventDataResultEvent((AdminModels.DeleteMasterPlayerEventDataResult)e.Result); return; } } if (type == typeof(AdminModels.DeleteMembershipSubscriptionResult)) { if (_instance.OnAdminDeleteMembershipSubscriptionResultEvent != null) { _instance.OnAdminDeleteMembershipSubscriptionResultEvent((AdminModels.DeleteMembershipSubscriptionResult)e.Result); return; } } if (type == typeof(AdminModels.EmptyResponse)) { if (_instance.OnAdminDeleteOpenIdConnectionResultEvent != null) { _instance.OnAdminDeleteOpenIdConnectionResultEvent((AdminModels.EmptyResponse)e.Result); return; } } if (type == typeof(AdminModels.DeletePlayerResult)) { if (_instance.OnAdminDeletePlayerResultEvent != null) { _instance.OnAdminDeletePlayerResultEvent((AdminModels.DeletePlayerResult)e.Result); return; } } @@ -2639,8 +2880,6 @@ namespace PlayFab.Events if (type == typeof(AdminModels.GetContentListResult)) { if (_instance.OnAdminGetContentListResultEvent != null) { _instance.OnAdminGetContentListResultEvent((AdminModels.GetContentListResult)e.Result); return; } } if (type == typeof(AdminModels.GetContentUploadUrlResult)) { if (_instance.OnAdminGetContentUploadUrlResultEvent != null) { _instance.OnAdminGetContentUploadUrlResultEvent((AdminModels.GetContentUploadUrlResult)e.Result); return; } } if (type == typeof(AdminModels.GetDataReportResult)) { if (_instance.OnAdminGetDataReportResultEvent != null) { _instance.OnAdminGetDataReportResultEvent((AdminModels.GetDataReportResult)e.Result); return; } } - if (type == typeof(AdminModels.GetMatchmakerGameInfoResult)) { if (_instance.OnAdminGetMatchmakerGameInfoResultEvent != null) { _instance.OnAdminGetMatchmakerGameInfoResultEvent((AdminModels.GetMatchmakerGameInfoResult)e.Result); return; } } - if (type == typeof(AdminModels.GetMatchmakerGameModesResult)) { if (_instance.OnAdminGetMatchmakerGameModesResultEvent != null) { _instance.OnAdminGetMatchmakerGameModesResultEvent((AdminModels.GetMatchmakerGameModesResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayedTitleListResult)) { if (_instance.OnAdminGetPlayedTitleListResultEvent != null) { _instance.OnAdminGetPlayedTitleListResultEvent((AdminModels.GetPlayedTitleListResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerIdFromAuthTokenResult)) { if (_instance.OnAdminGetPlayerIdFromAuthTokenResultEvent != null) { _instance.OnAdminGetPlayerIdFromAuthTokenResultEvent((AdminModels.GetPlayerIdFromAuthTokenResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerProfileResult)) { if (_instance.OnAdminGetPlayerProfileResultEvent != null) { _instance.OnAdminGetPlayerProfileResultEvent((AdminModels.GetPlayerProfileResult)e.Result); return; } } @@ -2674,7 +2913,6 @@ namespace PlayFab.Events if (type == typeof(AdminModels.IncrementPlayerStatisticVersionResult)) { if (_instance.OnAdminIncrementPlayerStatisticVersionResultEvent != null) { _instance.OnAdminIncrementPlayerStatisticVersionResultEvent((AdminModels.IncrementPlayerStatisticVersionResult)e.Result); return; } } if (type == typeof(AdminModels.ListOpenIdConnectionResponse)) { if (_instance.OnAdminListOpenIdConnectionResultEvent != null) { _instance.OnAdminListOpenIdConnectionResultEvent((AdminModels.ListOpenIdConnectionResponse)e.Result); return; } } if (type == typeof(AdminModels.ListVirtualCurrencyTypesResult)) { if (_instance.OnAdminListVirtualCurrencyTypesResultEvent != null) { _instance.OnAdminListVirtualCurrencyTypesResultEvent((AdminModels.ListVirtualCurrencyTypesResult)e.Result); return; } } - if (type == typeof(AdminModels.ModifyServerBuildResult)) { if (_instance.OnAdminModifyServerBuildResultEvent != null) { _instance.OnAdminModifyServerBuildResultEvent((AdminModels.ModifyServerBuildResult)e.Result); return; } } if (type == typeof(AdminModels.RefundPurchaseResponse)) { if (_instance.OnAdminRefundPurchaseResultEvent != null) { _instance.OnAdminRefundPurchaseResultEvent((AdminModels.RefundPurchaseResponse)e.Result); return; } } if (type == typeof(AdminModels.RemovePlayerTagResult)) { if (_instance.OnAdminRemovePlayerTagResultEvent != null) { _instance.OnAdminRemovePlayerTagResultEvent((AdminModels.RemovePlayerTagResult)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminRemoveVirtualCurrencyTypesResultEvent != null) { _instance.OnAdminRemoveVirtualCurrencyTypesResultEvent((AdminModels.BlankResult)e.Result); return; } } @@ -2749,11 +2987,9 @@ namespace PlayFab.Events if (type == typeof(ClientModels.GetCharacterDataResult)) { if (_instance.OnGetCharacterReadOnlyDataResultEvent != null) { _instance.OnGetCharacterReadOnlyDataResultEvent((ClientModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterStatisticsResult)) { if (_instance.OnGetCharacterStatisticsResultEvent != null) { _instance.OnGetCharacterStatisticsResultEvent((ClientModels.GetCharacterStatisticsResult)e.Result); return; } } if (type == typeof(ClientModels.GetContentDownloadUrlResult)) { if (_instance.OnGetContentDownloadUrlResultEvent != null) { _instance.OnGetContentDownloadUrlResultEvent((ClientModels.GetContentDownloadUrlResult)e.Result); return; } } - if (type == typeof(ClientModels.CurrentGamesResult)) { if (_instance.OnGetCurrentGamesResultEvent != null) { _instance.OnGetCurrentGamesResultEvent((ClientModels.CurrentGamesResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardResult)) { if (_instance.OnGetFriendLeaderboardResultEvent != null) { _instance.OnGetFriendLeaderboardResultEvent((ClientModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardAroundPlayerResult)) { if (_instance.OnGetFriendLeaderboardAroundPlayerResultEvent != null) { _instance.OnGetFriendLeaderboardAroundPlayerResultEvent((ClientModels.GetFriendLeaderboardAroundPlayerResult)e.Result); return; } } if (type == typeof(ClientModels.GetFriendsListResult)) { if (_instance.OnGetFriendsListResultEvent != null) { _instance.OnGetFriendsListResultEvent((ClientModels.GetFriendsListResult)e.Result); return; } } - if (type == typeof(ClientModels.GameServerRegionsResult)) { if (_instance.OnGetGameServerRegionsResultEvent != null) { _instance.OnGetGameServerRegionsResultEvent((ClientModels.GameServerRegionsResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardResult)) { if (_instance.OnGetLeaderboardResultEvent != null) { _instance.OnGetLeaderboardResultEvent((ClientModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundCharacterResult)) { if (_instance.OnGetLeaderboardAroundCharacterResultEvent != null) { _instance.OnGetLeaderboardAroundCharacterResultEvent((ClientModels.GetLeaderboardAroundCharacterResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundPlayerResult)) { if (_instance.OnGetLeaderboardAroundPlayerResultEvent != null) { _instance.OnGetLeaderboardAroundPlayerResultEvent((ClientModels.GetLeaderboardAroundPlayerResult)e.Result); return; } } @@ -2777,7 +3013,9 @@ namespace PlayFab.Events if (type == typeof(ClientModels.GetPlayFabIDsFromNintendoServiceAccountIdsResult)) { if (_instance.OnGetPlayFabIDsFromNintendoServiceAccountIdsResultEvent != null) { _instance.OnGetPlayFabIDsFromNintendoServiceAccountIdsResultEvent((ClientModels.GetPlayFabIDsFromNintendoServiceAccountIdsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsResult)) { if (_instance.OnGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent != null) { _instance.OnGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent((ClientModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromPSNAccountIDsResult)) { if (_instance.OnGetPlayFabIDsFromPSNAccountIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromPSNAccountIDsResultEvent((ClientModels.GetPlayFabIDsFromPSNAccountIDsResult)e.Result); return; } } + if (type == typeof(ClientModels.GetPlayFabIDsFromPSNOnlineIDsResult)) { if (_instance.OnGetPlayFabIDsFromPSNOnlineIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromPSNOnlineIDsResultEvent((ClientModels.GetPlayFabIDsFromPSNOnlineIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromSteamIDsResult)) { if (_instance.OnGetPlayFabIDsFromSteamIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromSteamIDsResultEvent((ClientModels.GetPlayFabIDsFromSteamIDsResult)e.Result); return; } } + if (type == typeof(ClientModels.GetPlayFabIDsFromSteamNamesResult)) { if (_instance.OnGetPlayFabIDsFromSteamNamesResultEvent != null) { _instance.OnGetPlayFabIDsFromSteamNamesResultEvent((ClientModels.GetPlayFabIDsFromSteamNamesResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromTwitchIDsResult)) { if (_instance.OnGetPlayFabIDsFromTwitchIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromTwitchIDsResultEvent((ClientModels.GetPlayFabIDsFromTwitchIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromXboxLiveIDsResult)) { if (_instance.OnGetPlayFabIDsFromXboxLiveIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromXboxLiveIDsResultEvent((ClientModels.GetPlayFabIDsFromXboxLiveIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPublisherDataResult)) { if (_instance.OnGetPublisherDataResultEvent != null) { _instance.OnGetPublisherDataResultEvent((ClientModels.GetPublisherDataResult)e.Result); return; } } @@ -2812,7 +3050,6 @@ namespace PlayFab.Events if (type == typeof(ClientModels.LinkSteamAccountResult)) { if (_instance.OnLinkSteamAccountResultEvent != null) { _instance.OnLinkSteamAccountResultEvent((ClientModels.LinkSteamAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkTwitchAccountResult)) { if (_instance.OnLinkTwitchResultEvent != null) { _instance.OnLinkTwitchResultEvent((ClientModels.LinkTwitchAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkXboxAccountResult)) { if (_instance.OnLinkXboxAccountResultEvent != null) { _instance.OnLinkXboxAccountResultEvent((ClientModels.LinkXboxAccountResult)e.Result); return; } } - if (type == typeof(ClientModels.MatchmakeResult)) { if (_instance.OnMatchmakeResultEvent != null) { _instance.OnMatchmakeResultEvent((ClientModels.MatchmakeResult)e.Result); return; } } if (type == typeof(ClientModels.OpenTradeResponse)) { if (_instance.OnOpenTradeResultEvent != null) { _instance.OnOpenTradeResultEvent((ClientModels.OpenTradeResponse)e.Result); return; } } if (type == typeof(ClientModels.PayForPurchaseResult)) { if (_instance.OnPayForPurchaseResultEvent != null) { _instance.OnPayForPurchaseResultEvent((ClientModels.PayForPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.PurchaseItemResult)) { if (_instance.OnPurchaseItemResultEvent != null) { _instance.OnPurchaseItemResultEvent((ClientModels.PurchaseItemResult)e.Result); return; } } @@ -2869,13 +3106,6 @@ namespace PlayFab.Events if (type == typeof(ClientModels.WriteEventResponse)) { if (_instance.OnWritePlayerEventResultEvent != null) { _instance.OnWritePlayerEventResultEvent((ClientModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ClientModels.WriteEventResponse)) { if (_instance.OnWriteTitleEventResultEvent != null) { _instance.OnWriteTitleEventResultEvent((ClientModels.WriteEventResponse)e.Result); return; } } #endif -#if ENABLE_PLAYFABSERVER_API - - if (type == typeof(MatchmakerModels.AuthUserResponse)) { if (_instance.OnMatchmakerAuthUserResultEvent != null) { _instance.OnMatchmakerAuthUserResultEvent((MatchmakerModels.AuthUserResponse)e.Result); return; } } - if (type == typeof(MatchmakerModels.PlayerJoinedResponse)) { if (_instance.OnMatchmakerPlayerJoinedResultEvent != null) { _instance.OnMatchmakerPlayerJoinedResultEvent((MatchmakerModels.PlayerJoinedResponse)e.Result); return; } } - if (type == typeof(MatchmakerModels.PlayerLeftResponse)) { if (_instance.OnMatchmakerPlayerLeftResultEvent != null) { _instance.OnMatchmakerPlayerLeftResultEvent((MatchmakerModels.PlayerLeftResponse)e.Result); return; } } - if (type == typeof(MatchmakerModels.UserInfoResponse)) { if (_instance.OnMatchmakerUserInfoResultEvent != null) { _instance.OnMatchmakerUserInfoResultEvent((MatchmakerModels.UserInfoResponse)e.Result); return; } } -#endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(ServerModels.ModifyCharacterVirtualCurrencyResult)) { if (_instance.OnServerAddCharacterVirtualCurrencyResultEvent != null) { _instance.OnServerAddCharacterVirtualCurrencyResultEvent((ServerModels.ModifyCharacterVirtualCurrencyResult)e.Result); return; } } @@ -2893,7 +3123,6 @@ namespace PlayFab.Events if (type == typeof(ServerModels.DeletePlayerResult)) { if (_instance.OnServerDeletePlayerResultEvent != null) { _instance.OnServerDeletePlayerResultEvent((ServerModels.DeletePlayerResult)e.Result); return; } } if (type == typeof(ServerModels.DeletePushNotificationTemplateResult)) { if (_instance.OnServerDeletePushNotificationTemplateResultEvent != null) { _instance.OnServerDeletePushNotificationTemplateResultEvent((ServerModels.DeletePushNotificationTemplateResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResponse)) { if (_instance.OnServerDeleteSharedGroupResultEvent != null) { _instance.OnServerDeleteSharedGroupResultEvent((ServerModels.EmptyResponse)e.Result); return; } } - if (type == typeof(ServerModels.DeregisterGameResponse)) { if (_instance.OnServerDeregisterGameResultEvent != null) { _instance.OnServerDeregisterGameResultEvent((ServerModels.DeregisterGameResponse)e.Result); return; } } if (type == typeof(ServerModels.EvaluateRandomResultTableResult)) { if (_instance.OnServerEvaluateRandomResultTableResultEvent != null) { _instance.OnServerEvaluateRandomResultTableResultEvent((ServerModels.EvaluateRandomResultTableResult)e.Result); return; } } if (type == typeof(ServerModels.ExecuteCloudScriptResult)) { if (_instance.OnServerExecuteCloudScriptResultEvent != null) { _instance.OnServerExecuteCloudScriptResultEvent((ServerModels.ExecuteCloudScriptResult)e.Result); return; } } if (type == typeof(ServerModels.GetAllSegmentsResult)) { if (_instance.OnServerGetAllSegmentsResultEvent != null) { _instance.OnServerGetAllSegmentsResultEvent((ServerModels.GetAllSegmentsResult)e.Result); return; } } @@ -2925,7 +3154,9 @@ namespace PlayFab.Events if (type == typeof(ServerModels.GetPlayFabIDsFromNintendoServiceAccountIdsResult)) { if (_instance.OnServerGetPlayFabIDsFromNintendoServiceAccountIdsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromNintendoServiceAccountIdsResultEvent((ServerModels.GetPlayFabIDsFromNintendoServiceAccountIdsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsResult)) { if (_instance.OnServerGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromNintendoSwitchDeviceIdsResultEvent((ServerModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromPSNAccountIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromPSNAccountIDsResultEvent((ServerModels.GetPlayFabIDsFromPSNAccountIDsResult)e.Result); return; } } + if (type == typeof(ServerModels.GetPlayFabIDsFromPSNOnlineIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent((ServerModels.GetPlayFabIDsFromPSNOnlineIDsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromSteamIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromSteamIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamIDsResultEvent((ServerModels.GetPlayFabIDsFromSteamIDsResult)e.Result); return; } } + if (type == typeof(ServerModels.GetPlayFabIDsFromSteamNamesResult)) { if (_instance.OnServerGetPlayFabIDsFromSteamNamesResultEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamNamesResultEvent((ServerModels.GetPlayFabIDsFromSteamNamesResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromTwitchIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromTwitchIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromTwitchIDsResultEvent((ServerModels.GetPlayFabIDsFromTwitchIDsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromXboxLiveIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromXboxLiveIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromXboxLiveIDsResultEvent((ServerModels.GetPlayFabIDsFromXboxLiveIDsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPublisherDataResult)) { if (_instance.OnServerGetPublisherDataResultEvent != null) { _instance.OnServerGetPublisherDataResultEvent((ServerModels.GetPublisherDataResult)e.Result); return; } } @@ -2951,10 +3182,14 @@ namespace PlayFab.Events if (type == typeof(ServerModels.GrantItemsToUserResult)) { if (_instance.OnServerGrantItemsToUserResultEvent != null) { _instance.OnServerGrantItemsToUserResultEvent((ServerModels.GrantItemsToUserResult)e.Result); return; } } if (type == typeof(ServerModels.GrantItemsToUsersResult)) { if (_instance.OnServerGrantItemsToUsersResultEvent != null) { _instance.OnServerGrantItemsToUsersResultEvent((ServerModels.GrantItemsToUsersResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerLinkNintendoServiceAccountResultEvent != null) { _instance.OnServerLinkNintendoServiceAccountResultEvent((ServerModels.EmptyResult)e.Result); return; } } + if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerLinkNintendoServiceAccountSubjectResultEvent != null) { _instance.OnServerLinkNintendoServiceAccountSubjectResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.LinkNintendoSwitchDeviceIdResult)) { if (_instance.OnServerLinkNintendoSwitchDeviceIdResultEvent != null) { _instance.OnServerLinkNintendoSwitchDeviceIdResultEvent((ServerModels.LinkNintendoSwitchDeviceIdResult)e.Result); return; } } if (type == typeof(ServerModels.LinkPSNAccountResult)) { if (_instance.OnServerLinkPSNAccountResultEvent != null) { _instance.OnServerLinkPSNAccountResultEvent((ServerModels.LinkPSNAccountResult)e.Result); return; } } + if (type == typeof(ServerModels.LinkPSNIdResponse)) { if (_instance.OnServerLinkPSNIdResultEvent != null) { _instance.OnServerLinkPSNIdResultEvent((ServerModels.LinkPSNIdResponse)e.Result); return; } } if (type == typeof(ServerModels.LinkServerCustomIdResult)) { if (_instance.OnServerLinkServerCustomIdResultEvent != null) { _instance.OnServerLinkServerCustomIdResultEvent((ServerModels.LinkServerCustomIdResult)e.Result); return; } } + if (type == typeof(ServerModels.LinkSteamIdResult)) { if (_instance.OnServerLinkSteamIdResultEvent != null) { _instance.OnServerLinkSteamIdResultEvent((ServerModels.LinkSteamIdResult)e.Result); return; } } if (type == typeof(ServerModels.LinkXboxAccountResult)) { if (_instance.OnServerLinkXboxAccountResultEvent != null) { _instance.OnServerLinkXboxAccountResultEvent((ServerModels.LinkXboxAccountResult)e.Result); return; } } + if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithPSNResultEvent != null) { _instance.OnServerLoginWithPSNResultEvent((ServerModels.ServerLoginResult)e.Result); return; } } if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithServerCustomIdResultEvent != null) { _instance.OnServerLoginWithServerCustomIdResultEvent((ServerModels.ServerLoginResult)e.Result); return; } } if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithSteamIdResultEvent != null) { _instance.OnServerLoginWithSteamIdResultEvent((ServerModels.ServerLoginResult)e.Result); return; } } if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithXboxResultEvent != null) { _instance.OnServerLoginWithXboxResultEvent((ServerModels.ServerLoginResult)e.Result); return; } } @@ -2963,11 +3198,7 @@ namespace PlayFab.Events if (type == typeof(ServerModels.MoveItemToCharacterFromCharacterResult)) { if (_instance.OnServerMoveItemToCharacterFromCharacterResultEvent != null) { _instance.OnServerMoveItemToCharacterFromCharacterResultEvent((ServerModels.MoveItemToCharacterFromCharacterResult)e.Result); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromUserResult)) { if (_instance.OnServerMoveItemToCharacterFromUserResultEvent != null) { _instance.OnServerMoveItemToCharacterFromUserResultEvent((ServerModels.MoveItemToCharacterFromUserResult)e.Result); return; } } if (type == typeof(ServerModels.MoveItemToUserFromCharacterResult)) { if (_instance.OnServerMoveItemToUserFromCharacterResultEvent != null) { _instance.OnServerMoveItemToUserFromCharacterResultEvent((ServerModels.MoveItemToUserFromCharacterResult)e.Result); return; } } - if (type == typeof(ServerModels.NotifyMatchmakerPlayerLeftResult)) { if (_instance.OnServerNotifyMatchmakerPlayerLeftResultEvent != null) { _instance.OnServerNotifyMatchmakerPlayerLeftResultEvent((ServerModels.NotifyMatchmakerPlayerLeftResult)e.Result); return; } } if (type == typeof(ServerModels.RedeemCouponResult)) { if (_instance.OnServerRedeemCouponResultEvent != null) { _instance.OnServerRedeemCouponResultEvent((ServerModels.RedeemCouponResult)e.Result); return; } } - if (type == typeof(ServerModels.RedeemMatchmakerTicketResult)) { if (_instance.OnServerRedeemMatchmakerTicketResultEvent != null) { _instance.OnServerRedeemMatchmakerTicketResultEvent((ServerModels.RedeemMatchmakerTicketResult)e.Result); return; } } - if (type == typeof(ServerModels.RefreshGameServerInstanceHeartbeatResult)) { if (_instance.OnServerRefreshGameServerInstanceHeartbeatResultEvent != null) { _instance.OnServerRefreshGameServerInstanceHeartbeatResultEvent((ServerModels.RefreshGameServerInstanceHeartbeatResult)e.Result); return; } } - if (type == typeof(ServerModels.RegisterGameResponse)) { if (_instance.OnServerRegisterGameResultEvent != null) { _instance.OnServerRegisterGameResultEvent((ServerModels.RegisterGameResponse)e.Result); return; } } if (type == typeof(ServerModels.EmptyResponse)) { if (_instance.OnServerRemoveFriendResultEvent != null) { _instance.OnServerRemoveFriendResultEvent((ServerModels.EmptyResponse)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerRemoveGenericIDResultEvent != null) { _instance.OnServerRemoveGenericIDResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.RemovePlayerTagResult)) { if (_instance.OnServerRemovePlayerTagResultEvent != null) { _instance.OnServerRemovePlayerTagResultEvent((ServerModels.RemovePlayerTagResult)e.Result); return; } } @@ -2983,9 +3214,6 @@ namespace PlayFab.Events if (type == typeof(ServerModels.SendPushNotificationResult)) { if (_instance.OnServerSendPushNotificationResultEvent != null) { _instance.OnServerSendPushNotificationResultEvent((ServerModels.SendPushNotificationResult)e.Result); return; } } if (type == typeof(ServerModels.SendPushNotificationResult)) { if (_instance.OnServerSendPushNotificationFromTemplateResultEvent != null) { _instance.OnServerSendPushNotificationFromTemplateResultEvent((ServerModels.SendPushNotificationResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResponse)) { if (_instance.OnServerSetFriendTagsResultEvent != null) { _instance.OnServerSetFriendTagsResultEvent((ServerModels.EmptyResponse)e.Result); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceDataResult)) { if (_instance.OnServerSetGameServerInstanceDataResultEvent != null) { _instance.OnServerSetGameServerInstanceDataResultEvent((ServerModels.SetGameServerInstanceDataResult)e.Result); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceStateResult)) { if (_instance.OnServerSetGameServerInstanceStateResultEvent != null) { _instance.OnServerSetGameServerInstanceStateResultEvent((ServerModels.SetGameServerInstanceStateResult)e.Result); return; } } - if (type == typeof(ServerModels.SetGameServerInstanceTagsResult)) { if (_instance.OnServerSetGameServerInstanceTagsResultEvent != null) { _instance.OnServerSetGameServerInstanceTagsResultEvent((ServerModels.SetGameServerInstanceTagsResult)e.Result); return; } } if (type == typeof(ServerModels.SetPlayerSecretResult)) { if (_instance.OnServerSetPlayerSecretResultEvent != null) { _instance.OnServerSetPlayerSecretResultEvent((ServerModels.SetPlayerSecretResult)e.Result); return; } } if (type == typeof(ServerModels.SetPublisherDataResult)) { if (_instance.OnServerSetPublisherDataResultEvent != null) { _instance.OnServerSetPublisherDataResultEvent((ServerModels.SetPublisherDataResult)e.Result); return; } } if (type == typeof(ServerModels.SetTitleDataResult)) { if (_instance.OnServerSetTitleDataResultEvent != null) { _instance.OnServerSetTitleDataResultEvent((ServerModels.SetTitleDataResult)e.Result); return; } } @@ -2996,6 +3224,7 @@ namespace PlayFab.Events if (type == typeof(ServerModels.UnlinkNintendoSwitchDeviceIdResult)) { if (_instance.OnServerUnlinkNintendoSwitchDeviceIdResultEvent != null) { _instance.OnServerUnlinkNintendoSwitchDeviceIdResultEvent((ServerModels.UnlinkNintendoSwitchDeviceIdResult)e.Result); return; } } if (type == typeof(ServerModels.UnlinkPSNAccountResult)) { if (_instance.OnServerUnlinkPSNAccountResultEvent != null) { _instance.OnServerUnlinkPSNAccountResultEvent((ServerModels.UnlinkPSNAccountResult)e.Result); return; } } if (type == typeof(ServerModels.UnlinkServerCustomIdResult)) { if (_instance.OnServerUnlinkServerCustomIdResultEvent != null) { _instance.OnServerUnlinkServerCustomIdResultEvent((ServerModels.UnlinkServerCustomIdResult)e.Result); return; } } + if (type == typeof(ServerModels.UnlinkSteamIdResult)) { if (_instance.OnServerUnlinkSteamIdResultEvent != null) { _instance.OnServerUnlinkSteamIdResultEvent((ServerModels.UnlinkSteamIdResult)e.Result); return; } } if (type == typeof(ServerModels.UnlinkXboxAccountResult)) { if (_instance.OnServerUnlinkXboxAccountResultEvent != null) { _instance.OnServerUnlinkXboxAccountResultEvent((ServerModels.UnlinkXboxAccountResult)e.Result); return; } } if (type == typeof(ServerModels.UnlockContainerItemResult)) { if (_instance.OnServerUnlockContainerInstanceResultEvent != null) { _instance.OnServerUnlockContainerInstanceResultEvent((ServerModels.UnlockContainerItemResult)e.Result); return; } } if (type == typeof(ServerModels.UnlockContainerItemResult)) { if (_instance.OnServerUnlockContainerItemResultEvent != null) { _instance.OnServerUnlockContainerItemResultEvent((ServerModels.UnlockContainerItemResult)e.Result); return; } } @@ -3030,6 +3259,7 @@ namespace PlayFab.Events if (type == typeof(CloudScriptModels.ExecuteCloudScriptResult)) { if (_instance.OnCloudScriptExecuteEntityCloudScriptResultEvent != null) { _instance.OnCloudScriptExecuteEntityCloudScriptResultEvent((CloudScriptModels.ExecuteCloudScriptResult)e.Result); return; } } if (type == typeof(CloudScriptModels.ExecuteFunctionResult)) { if (_instance.OnCloudScriptExecuteFunctionResultEvent != null) { _instance.OnCloudScriptExecuteFunctionResultEvent((CloudScriptModels.ExecuteFunctionResult)e.Result); return; } } if (type == typeof(CloudScriptModels.GetFunctionResult)) { if (_instance.OnCloudScriptGetFunctionResultEvent != null) { _instance.OnCloudScriptGetFunctionResultEvent((CloudScriptModels.GetFunctionResult)e.Result); return; } } + if (type == typeof(CloudScriptModels.ListEventHubFunctionsResult)) { if (_instance.OnCloudScriptListEventHubFunctionsResultEvent != null) { _instance.OnCloudScriptListEventHubFunctionsResultEvent((CloudScriptModels.ListEventHubFunctionsResult)e.Result); return; } } if (type == typeof(CloudScriptModels.ListFunctionsResult)) { if (_instance.OnCloudScriptListFunctionsResultEvent != null) { _instance.OnCloudScriptListFunctionsResultEvent((CloudScriptModels.ListFunctionsResult)e.Result); return; } } if (type == typeof(CloudScriptModels.ListHttpFunctionsResult)) { if (_instance.OnCloudScriptListHttpFunctionsResultEvent != null) { _instance.OnCloudScriptListHttpFunctionsResultEvent((CloudScriptModels.ListHttpFunctionsResult)e.Result); return; } } if (type == typeof(CloudScriptModels.ListQueuedFunctionsResult)) { if (_instance.OnCloudScriptListQueuedFunctionsResultEvent != null) { _instance.OnCloudScriptListQueuedFunctionsResultEvent((CloudScriptModels.ListQueuedFunctionsResult)e.Result); return; } } @@ -3037,6 +3267,7 @@ namespace PlayFab.Events if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptPostFunctionResultForFunctionExecutionResultEvent != null) { _instance.OnCloudScriptPostFunctionResultForFunctionExecutionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptPostFunctionResultForPlayerTriggeredActionResultEvent != null) { _instance.OnCloudScriptPostFunctionResultForPlayerTriggeredActionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptPostFunctionResultForScheduledTaskResultEvent != null) { _instance.OnCloudScriptPostFunctionResultForScheduledTaskResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } + if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptRegisterEventHubFunctionResultEvent != null) { _instance.OnCloudScriptRegisterEventHubFunctionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptRegisterHttpFunctionResultEvent != null) { _instance.OnCloudScriptRegisterHttpFunctionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptRegisterQueuedFunctionResultEvent != null) { _instance.OnCloudScriptRegisterQueuedFunctionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } if (type == typeof(CloudScriptModels.EmptyResult)) { if (_instance.OnCloudScriptUnregisterFunctionResultEvent != null) { _instance.OnCloudScriptUnregisterFunctionResultEvent((CloudScriptModels.EmptyResult)e.Result); return; } } @@ -3061,6 +3292,7 @@ namespace PlayFab.Events if (type == typeof(EconomyModels.DeleteInventoryItemsResponse)) { if (_instance.OnEconomyDeleteInventoryItemsResultEvent != null) { _instance.OnEconomyDeleteInventoryItemsResultEvent((EconomyModels.DeleteInventoryItemsResponse)e.Result); return; } } if (type == typeof(EconomyModels.DeleteItemResponse)) { if (_instance.OnEconomyDeleteItemResultEvent != null) { _instance.OnEconomyDeleteItemResultEvent((EconomyModels.DeleteItemResponse)e.Result); return; } } if (type == typeof(EconomyModels.ExecuteInventoryOperationsResponse)) { if (_instance.OnEconomyExecuteInventoryOperationsResultEvent != null) { _instance.OnEconomyExecuteInventoryOperationsResultEvent((EconomyModels.ExecuteInventoryOperationsResponse)e.Result); return; } } + if (type == typeof(EconomyModels.ExecuteTransferOperationsResponse)) { if (_instance.OnEconomyExecuteTransferOperationsResultEvent != null) { _instance.OnEconomyExecuteTransferOperationsResultEvent((EconomyModels.ExecuteTransferOperationsResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetCatalogConfigResponse)) { if (_instance.OnEconomyGetCatalogConfigResultEvent != null) { _instance.OnEconomyGetCatalogConfigResultEvent((EconomyModels.GetCatalogConfigResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetDraftItemResponse)) { if (_instance.OnEconomyGetDraftItemResultEvent != null) { _instance.OnEconomyGetDraftItemResultEvent((EconomyModels.GetDraftItemResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetDraftItemsResponse)) { if (_instance.OnEconomyGetDraftItemsResultEvent != null) { _instance.OnEconomyGetDraftItemsResultEvent((EconomyModels.GetDraftItemsResponse)e.Result); return; } } @@ -3068,6 +3300,7 @@ namespace PlayFab.Events if (type == typeof(EconomyModels.GetEntityItemReviewResponse)) { if (_instance.OnEconomyGetEntityItemReviewResultEvent != null) { _instance.OnEconomyGetEntityItemReviewResultEvent((EconomyModels.GetEntityItemReviewResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetInventoryCollectionIdsResponse)) { if (_instance.OnEconomyGetInventoryCollectionIdsResultEvent != null) { _instance.OnEconomyGetInventoryCollectionIdsResultEvent((EconomyModels.GetInventoryCollectionIdsResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetInventoryItemsResponse)) { if (_instance.OnEconomyGetInventoryItemsResultEvent != null) { _instance.OnEconomyGetInventoryItemsResultEvent((EconomyModels.GetInventoryItemsResponse)e.Result); return; } } + if (type == typeof(EconomyModels.GetInventoryOperationStatusResponse)) { if (_instance.OnEconomyGetInventoryOperationStatusResultEvent != null) { _instance.OnEconomyGetInventoryOperationStatusResultEvent((EconomyModels.GetInventoryOperationStatusResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetItemResponse)) { if (_instance.OnEconomyGetItemResultEvent != null) { _instance.OnEconomyGetItemResultEvent((EconomyModels.GetItemResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetItemContainersResponse)) { if (_instance.OnEconomyGetItemContainersResultEvent != null) { _instance.OnEconomyGetItemContainersResultEvent((EconomyModels.GetItemContainersResponse)e.Result); return; } } if (type == typeof(EconomyModels.GetItemModerationStateResponse)) { if (_instance.OnEconomyGetItemModerationStateResultEvent != null) { _instance.OnEconomyGetItemModerationStateResultEvent((EconomyModels.GetItemModerationStateResponse)e.Result); return; } } @@ -3100,6 +3333,11 @@ namespace PlayFab.Events #endif #if !DISABLE_PLAYFABENTITY_API + if (type == typeof(EventsModels.CreateTelemetryKeyResponse)) { if (_instance.OnEventsCreateTelemetryKeyResultEvent != null) { _instance.OnEventsCreateTelemetryKeyResultEvent((EventsModels.CreateTelemetryKeyResponse)e.Result); return; } } + if (type == typeof(EventsModels.DeleteTelemetryKeyResponse)) { if (_instance.OnEventsDeleteTelemetryKeyResultEvent != null) { _instance.OnEventsDeleteTelemetryKeyResultEvent((EventsModels.DeleteTelemetryKeyResponse)e.Result); return; } } + if (type == typeof(EventsModels.GetTelemetryKeyResponse)) { if (_instance.OnEventsGetTelemetryKeyResultEvent != null) { _instance.OnEventsGetTelemetryKeyResultEvent((EventsModels.GetTelemetryKeyResponse)e.Result); return; } } + if (type == typeof(EventsModels.ListTelemetryKeysResponse)) { if (_instance.OnEventsListTelemetryKeysResultEvent != null) { _instance.OnEventsListTelemetryKeysResultEvent((EventsModels.ListTelemetryKeysResponse)e.Result); return; } } + if (type == typeof(EventsModels.SetTelemetryKeyActiveResponse)) { if (_instance.OnEventsSetTelemetryKeyActiveResultEvent != null) { _instance.OnEventsSetTelemetryKeyActiveResultEvent((EventsModels.SetTelemetryKeyActiveResponse)e.Result); return; } } if (type == typeof(EventsModels.WriteEventsResponse)) { if (_instance.OnEventsWriteEventsResultEvent != null) { _instance.OnEventsWriteEventsResultEvent((EventsModels.WriteEventsResponse)e.Result); return; } } if (type == typeof(EventsModels.WriteEventsResponse)) { if (_instance.OnEventsWriteTelemetryEventsResultEvent != null) { _instance.OnEventsWriteTelemetryEventsResultEvent((EventsModels.WriteEventsResponse)e.Result); return; } } #endif @@ -3156,6 +3394,30 @@ namespace PlayFab.Events if (type == typeof(GroupsModels.UpdateGroupResponse)) { if (_instance.OnGroupsUpdateGroupResultEvent != null) { _instance.OnGroupsUpdateGroupResultEvent((GroupsModels.UpdateGroupResponse)e.Result); return; } } if (type == typeof(GroupsModels.UpdateGroupRoleResponse)) { if (_instance.OnGroupsUpdateRoleResultEvent != null) { _instance.OnGroupsUpdateRoleResultEvent((GroupsModels.UpdateGroupRoleResponse)e.Result); return; } } #endif +#if !DISABLE_PLAYFABENTITY_API + + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionCreateLeaderboardDefinitionResultEvent != null) { _instance.OnProgressionCreateLeaderboardDefinitionResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionCreateStatisticDefinitionResultEvent != null) { _instance.OnProgressionCreateStatisticDefinitionResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionDeleteLeaderboardDefinitionResultEvent != null) { _instance.OnProgressionDeleteLeaderboardDefinitionResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionDeleteLeaderboardEntriesResultEvent != null) { _instance.OnProgressionDeleteLeaderboardEntriesResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionDeleteStatisticDefinitionResultEvent != null) { _instance.OnProgressionDeleteStatisticDefinitionResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.DeleteStatisticsResponse)) { if (_instance.OnProgressionDeleteStatisticsResultEvent != null) { _instance.OnProgressionDeleteStatisticsResultEvent((ProgressionModels.DeleteStatisticsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetEntityLeaderboardResponse)) { if (_instance.OnProgressionGetFriendLeaderboardForEntityResultEvent != null) { _instance.OnProgressionGetFriendLeaderboardForEntityResultEvent((ProgressionModels.GetEntityLeaderboardResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetEntityLeaderboardResponse)) { if (_instance.OnProgressionGetLeaderboardResultEvent != null) { _instance.OnProgressionGetLeaderboardResultEvent((ProgressionModels.GetEntityLeaderboardResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetEntityLeaderboardResponse)) { if (_instance.OnProgressionGetLeaderboardAroundEntityResultEvent != null) { _instance.OnProgressionGetLeaderboardAroundEntityResultEvent((ProgressionModels.GetEntityLeaderboardResponse)e.Result); return; } } + 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.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; } } + if (type == typeof(ProgressionModels.IncrementStatisticVersionResponse)) { if (_instance.OnProgressionIncrementStatisticVersionResultEvent != null) { _instance.OnProgressionIncrementStatisticVersionResultEvent((ProgressionModels.IncrementStatisticVersionResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.ListLeaderboardDefinitionsResponse)) { if (_instance.OnProgressionListLeaderboardDefinitionsResultEvent != null) { _instance.OnProgressionListLeaderboardDefinitionsResultEvent((ProgressionModels.ListLeaderboardDefinitionsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.ListStatisticDefinitionsResponse)) { if (_instance.OnProgressionListStatisticDefinitionsResultEvent != null) { _instance.OnProgressionListStatisticDefinitionsResultEvent((ProgressionModels.ListStatisticDefinitionsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionUnlinkLeaderboardFromStatisticResultEvent != null) { _instance.OnProgressionUnlinkLeaderboardFromStatisticResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.EmptyResponse)) { if (_instance.OnProgressionUpdateLeaderboardEntriesResultEvent != null) { _instance.OnProgressionUpdateLeaderboardEntriesResultEvent((ProgressionModels.EmptyResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.UpdateStatisticsResponse)) { if (_instance.OnProgressionUpdateStatisticsResultEvent != null) { _instance.OnProgressionUpdateStatisticsResultEvent((ProgressionModels.UpdateStatisticsResponse)e.Result); return; } } +#endif #if !DISABLE_PLAYFABENTITY_API if (type == typeof(LocalizationModels.GetLanguageListResponse)) { if (_instance.OnLocalizationGetLanguageListResultEvent != null) { _instance.OnLocalizationGetLanguageListResultEvent((LocalizationModels.GetLanguageListResponse)e.Result); return; } } @@ -3184,6 +3446,7 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerDeleteContainerImageRepositoryResultEvent != null) { _instance.OnMultiplayerDeleteContainerImageRepositoryResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerDeleteLobbyResultEvent != null) { _instance.OnMultiplayerDeleteLobbyResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerDeleteRemoteUserResultEvent != null) { _instance.OnMultiplayerDeleteRemoteUserResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } + if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerDeleteSecretResultEvent != null) { _instance.OnMultiplayerDeleteSecretResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.EnableMultiplayerServersForTitleResponse)) { if (_instance.OnMultiplayerEnableMultiplayerServersForTitleResultEvent != null) { _instance.OnMultiplayerEnableMultiplayerServersForTitleResultEvent((MultiplayerModels.EnableMultiplayerServersForTitleResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.FindFriendLobbiesResult)) { if (_instance.OnMultiplayerFindFriendLobbiesResultEvent != null) { _instance.OnMultiplayerFindFriendLobbiesResultEvent((MultiplayerModels.FindFriendLobbiesResult)e.Result); return; } } if (type == typeof(MultiplayerModels.FindLobbiesResult)) { if (_instance.OnMultiplayerFindLobbiesResultEvent != null) { _instance.OnMultiplayerFindLobbiesResultEvent((MultiplayerModels.FindLobbiesResult)e.Result); return; } } @@ -3208,8 +3471,10 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerInviteToLobbyResultEvent != null) { _instance.OnMultiplayerInviteToLobbyResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.JoinLobbyResult)) { if (_instance.OnMultiplayerJoinArrangedLobbyResultEvent != null) { _instance.OnMultiplayerJoinArrangedLobbyResultEvent((MultiplayerModels.JoinLobbyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.JoinLobbyResult)) { if (_instance.OnMultiplayerJoinLobbyResultEvent != null) { _instance.OnMultiplayerJoinLobbyResultEvent((MultiplayerModels.JoinLobbyResult)e.Result); return; } } + if (type == typeof(MultiplayerModels.JoinLobbyAsServerResult)) { if (_instance.OnMultiplayerJoinLobbyAsServerResultEvent != null) { _instance.OnMultiplayerJoinLobbyAsServerResultEvent((MultiplayerModels.JoinLobbyAsServerResult)e.Result); return; } } if (type == typeof(MultiplayerModels.JoinMatchmakingTicketResult)) { if (_instance.OnMultiplayerJoinMatchmakingTicketResultEvent != null) { _instance.OnMultiplayerJoinMatchmakingTicketResultEvent((MultiplayerModels.JoinMatchmakingTicketResult)e.Result); return; } } if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerLeaveLobbyResultEvent != null) { _instance.OnMultiplayerLeaveLobbyResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } + if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerLeaveLobbyAsServerResultEvent != null) { _instance.OnMultiplayerLeaveLobbyAsServerResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.ListMultiplayerServersResponse)) { if (_instance.OnMultiplayerListArchivedMultiplayerServersResultEvent != null) { _instance.OnMultiplayerListArchivedMultiplayerServersResultEvent((MultiplayerModels.ListMultiplayerServersResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListAssetSummariesResponse)) { if (_instance.OnMultiplayerListAssetSummariesResultEvent != null) { _instance.OnMultiplayerListAssetSummariesResultEvent((MultiplayerModels.ListAssetSummariesResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListBuildAliasesResponse)) { if (_instance.OnMultiplayerListBuildAliasesResultEvent != null) { _instance.OnMultiplayerListBuildAliasesResultEvent((MultiplayerModels.ListBuildAliasesResponse)e.Result); return; } } @@ -3222,12 +3487,14 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.ListMultiplayerServersResponse)) { if (_instance.OnMultiplayerListMultiplayerServersResultEvent != null) { _instance.OnMultiplayerListMultiplayerServersResultEvent((MultiplayerModels.ListMultiplayerServersResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListPartyQosServersResponse)) { if (_instance.OnMultiplayerListPartyQosServersResultEvent != null) { _instance.OnMultiplayerListPartyQosServersResultEvent((MultiplayerModels.ListPartyQosServersResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListQosServersForTitleResponse)) { if (_instance.OnMultiplayerListQosServersForTitleResultEvent != null) { _instance.OnMultiplayerListQosServersForTitleResultEvent((MultiplayerModels.ListQosServersForTitleResponse)e.Result); return; } } + if (type == typeof(MultiplayerModels.ListSecretSummariesResponse)) { if (_instance.OnMultiplayerListSecretSummariesResultEvent != null) { _instance.OnMultiplayerListSecretSummariesResultEvent((MultiplayerModels.ListSecretSummariesResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListServerBackfillTicketsForPlayerResult)) { if (_instance.OnMultiplayerListServerBackfillTicketsForPlayerResultEvent != null) { _instance.OnMultiplayerListServerBackfillTicketsForPlayerResultEvent((MultiplayerModels.ListServerBackfillTicketsForPlayerResult)e.Result); return; } } if (type == typeof(MultiplayerModels.ListTitleMultiplayerServersQuotaChangesResponse)) { if (_instance.OnMultiplayerListTitleMultiplayerServersQuotaChangesResultEvent != null) { _instance.OnMultiplayerListTitleMultiplayerServersQuotaChangesResultEvent((MultiplayerModels.ListTitleMultiplayerServersQuotaChangesResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.ListVirtualMachineSummariesResponse)) { if (_instance.OnMultiplayerListVirtualMachineSummariesResultEvent != null) { _instance.OnMultiplayerListVirtualMachineSummariesResultEvent((MultiplayerModels.ListVirtualMachineSummariesResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.RemoveMatchmakingQueueResult)) { if (_instance.OnMultiplayerRemoveMatchmakingQueueResultEvent != null) { _instance.OnMultiplayerRemoveMatchmakingQueueResultEvent((MultiplayerModels.RemoveMatchmakingQueueResult)e.Result); return; } } if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerRemoveMemberResultEvent != null) { _instance.OnMultiplayerRemoveMemberResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.RequestMultiplayerServerResponse)) { if (_instance.OnMultiplayerRequestMultiplayerServerResultEvent != null) { _instance.OnMultiplayerRequestMultiplayerServerResultEvent((MultiplayerModels.RequestMultiplayerServerResponse)e.Result); return; } } + if (type == typeof(MultiplayerModels.RequestPartyServiceResponse)) { if (_instance.OnMultiplayerRequestPartyServiceResultEvent != null) { _instance.OnMultiplayerRequestPartyServiceResultEvent((MultiplayerModels.RequestPartyServiceResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.RolloverContainerRegistryCredentialsResponse)) { if (_instance.OnMultiplayerRolloverContainerRegistryCredentialsResultEvent != null) { _instance.OnMultiplayerRolloverContainerRegistryCredentialsResultEvent((MultiplayerModels.RolloverContainerRegistryCredentialsResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.SetMatchmakingQueueResult)) { if (_instance.OnMultiplayerSetMatchmakingQueueResultEvent != null) { _instance.OnMultiplayerSetMatchmakingQueueResultEvent((MultiplayerModels.SetMatchmakingQueueResult)e.Result); return; } } if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerShutdownMultiplayerServerResultEvent != null) { _instance.OnMultiplayerShutdownMultiplayerServerResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } @@ -3241,7 +3508,9 @@ namespace PlayFab.Events if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerUpdateBuildRegionResultEvent != null) { _instance.OnMultiplayerUpdateBuildRegionResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerUpdateBuildRegionsResultEvent != null) { _instance.OnMultiplayerUpdateBuildRegionsResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerUpdateLobbyResultEvent != null) { _instance.OnMultiplayerUpdateLobbyResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } + if (type == typeof(MultiplayerModels.LobbyEmptyResult)) { if (_instance.OnMultiplayerUpdateLobbyAsServerResultEvent != null) { _instance.OnMultiplayerUpdateLobbyAsServerResultEvent((MultiplayerModels.LobbyEmptyResult)e.Result); return; } } if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerUploadCertificateResultEvent != null) { _instance.OnMultiplayerUploadCertificateResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } + if (type == typeof(MultiplayerModels.EmptyResponse)) { if (_instance.OnMultiplayerUploadSecretResultEvent != null) { _instance.OnMultiplayerUploadSecretResultEvent((MultiplayerModels.EmptyResponse)e.Result); return; } } #endif #if !DISABLE_PLAYFABENTITY_API @@ -3249,10 +3518,45 @@ namespace PlayFab.Events if (type == typeof(ProfilesModels.GetEntityProfileResponse)) { if (_instance.OnProfilesGetProfileResultEvent != null) { _instance.OnProfilesGetProfileResultEvent((ProfilesModels.GetEntityProfileResponse)e.Result); return; } } 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; } } #endif +#if ENABLE_PLAYFABSERVER_API + +#endif +#if !DISABLE_PLAYFABENTITY_API + + if (type == typeof(AddonModels.CreateOrUpdateAppleResponse)) { if (_instance.OnAddonCreateOrUpdateAppleResultEvent != null) { _instance.OnAddonCreateOrUpdateAppleResultEvent((AddonModels.CreateOrUpdateAppleResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateFacebookResponse)) { if (_instance.OnAddonCreateOrUpdateFacebookResultEvent != null) { _instance.OnAddonCreateOrUpdateFacebookResultEvent((AddonModels.CreateOrUpdateFacebookResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateFacebookInstantGamesResponse)) { if (_instance.OnAddonCreateOrUpdateFacebookInstantGamesResultEvent != null) { _instance.OnAddonCreateOrUpdateFacebookInstantGamesResultEvent((AddonModels.CreateOrUpdateFacebookInstantGamesResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateGoogleResponse)) { if (_instance.OnAddonCreateOrUpdateGoogleResultEvent != null) { _instance.OnAddonCreateOrUpdateGoogleResultEvent((AddonModels.CreateOrUpdateGoogleResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateKongregateResponse)) { if (_instance.OnAddonCreateOrUpdateKongregateResultEvent != null) { _instance.OnAddonCreateOrUpdateKongregateResultEvent((AddonModels.CreateOrUpdateKongregateResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateNintendoResponse)) { if (_instance.OnAddonCreateOrUpdateNintendoResultEvent != null) { _instance.OnAddonCreateOrUpdateNintendoResultEvent((AddonModels.CreateOrUpdateNintendoResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdatePSNResponse)) { if (_instance.OnAddonCreateOrUpdatePSNResultEvent != null) { _instance.OnAddonCreateOrUpdatePSNResultEvent((AddonModels.CreateOrUpdatePSNResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateSteamResponse)) { if (_instance.OnAddonCreateOrUpdateSteamResultEvent != null) { _instance.OnAddonCreateOrUpdateSteamResultEvent((AddonModels.CreateOrUpdateSteamResponse)e.Result); return; } } + if (type == typeof(AddonModels.CreateOrUpdateTwitchResponse)) { if (_instance.OnAddonCreateOrUpdateTwitchResultEvent != null) { _instance.OnAddonCreateOrUpdateTwitchResultEvent((AddonModels.CreateOrUpdateTwitchResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteAppleResponse)) { if (_instance.OnAddonDeleteAppleResultEvent != null) { _instance.OnAddonDeleteAppleResultEvent((AddonModels.DeleteAppleResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteFacebookResponse)) { if (_instance.OnAddonDeleteFacebookResultEvent != null) { _instance.OnAddonDeleteFacebookResultEvent((AddonModels.DeleteFacebookResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteFacebookInstantGamesResponse)) { if (_instance.OnAddonDeleteFacebookInstantGamesResultEvent != null) { _instance.OnAddonDeleteFacebookInstantGamesResultEvent((AddonModels.DeleteFacebookInstantGamesResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteGoogleResponse)) { if (_instance.OnAddonDeleteGoogleResultEvent != null) { _instance.OnAddonDeleteGoogleResultEvent((AddonModels.DeleteGoogleResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteKongregateResponse)) { if (_instance.OnAddonDeleteKongregateResultEvent != null) { _instance.OnAddonDeleteKongregateResultEvent((AddonModels.DeleteKongregateResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteNintendoResponse)) { if (_instance.OnAddonDeleteNintendoResultEvent != null) { _instance.OnAddonDeleteNintendoResultEvent((AddonModels.DeleteNintendoResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeletePSNResponse)) { if (_instance.OnAddonDeletePSNResultEvent != null) { _instance.OnAddonDeletePSNResultEvent((AddonModels.DeletePSNResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteSteamResponse)) { if (_instance.OnAddonDeleteSteamResultEvent != null) { _instance.OnAddonDeleteSteamResultEvent((AddonModels.DeleteSteamResponse)e.Result); return; } } + if (type == typeof(AddonModels.DeleteTwitchResponse)) { if (_instance.OnAddonDeleteTwitchResultEvent != null) { _instance.OnAddonDeleteTwitchResultEvent((AddonModels.DeleteTwitchResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetAppleResponse)) { if (_instance.OnAddonGetAppleResultEvent != null) { _instance.OnAddonGetAppleResultEvent((AddonModels.GetAppleResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetFacebookResponse)) { if (_instance.OnAddonGetFacebookResultEvent != null) { _instance.OnAddonGetFacebookResultEvent((AddonModels.GetFacebookResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetFacebookInstantGamesResponse)) { if (_instance.OnAddonGetFacebookInstantGamesResultEvent != null) { _instance.OnAddonGetFacebookInstantGamesResultEvent((AddonModels.GetFacebookInstantGamesResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetGoogleResponse)) { if (_instance.OnAddonGetGoogleResultEvent != null) { _instance.OnAddonGetGoogleResultEvent((AddonModels.GetGoogleResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetKongregateResponse)) { if (_instance.OnAddonGetKongregateResultEvent != null) { _instance.OnAddonGetKongregateResultEvent((AddonModels.GetKongregateResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetNintendoResponse)) { if (_instance.OnAddonGetNintendoResultEvent != null) { _instance.OnAddonGetNintendoResultEvent((AddonModels.GetNintendoResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetPSNResponse)) { if (_instance.OnAddonGetPSNResultEvent != null) { _instance.OnAddonGetPSNResultEvent((AddonModels.GetPSNResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetSteamResponse)) { if (_instance.OnAddonGetSteamResultEvent != null) { _instance.OnAddonGetSteamResultEvent((AddonModels.GetSteamResponse)e.Result); return; } } + if (type == typeof(AddonModels.GetTwitchResponse)) { if (_instance.OnAddonGetTwitchResultEvent != null) { _instance.OnAddonGetTwitchResultEvent((AddonModels.GetTwitchResponse)e.Result); return; } } +#endif } } diff --git a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabSettings.cs b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabSettings.cs index e01c84651..fcb282ed2 100644 --- a/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabSettings.cs +++ b/Assets/ThirdParty/PlayFabSDK/Shared/Public/PlayFabSettings.cs @@ -29,7 +29,29 @@ namespace PlayFab public static class PlayFabSettings { - static PlayFabSettings() { } + static PlayFabSettings() + { +#if UNITY_GAMECORE || UNITY_GAMECORE_XBOXONE || UNITY_GAMECORE_SCARLETT || MICROSOFT_GAME_CORE + PlatformString = "GDK"; +#else + switch (Application.platform) + { + case RuntimePlatform.WindowsEditor: + case RuntimePlatform.WindowsPlayer: + case RuntimePlatform.WindowsServer: + PlatformString = "Windows"; + break; + + case RuntimePlatform.IPhonePlayer: + PlatformString = "iOS"; + break; + + default: + PlatformString = Application.platform.ToString(); + break; + } +#endif + } private static PlayFabSharedSettings _playFabShared = null; private static PlayFabSharedSettings PlayFabSharedPrivate { get { if (_playFabShared == null) _playFabShared = GetSharedSettingsObjectPrivate(); return _playFabShared; } } @@ -43,9 +65,11 @@ namespace PlayFab /// public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext(); - public const string SdkVersion = "2.162.230320"; + public const string SdkVersion = "2.206.241122"; public const string BuildIdentifier = "adobuild_unitysdk_167"; - public const string VersionString = "UnitySDK-2.162.230320"; + public const string VersionString = "UnitySDK-2.206.241122"; + public static string EngineVersion = UnityEngine.Application.unityVersion; + public static string PlatformString; public const string DefaultPlayFabApiUrl = "playfabapi.com"; @@ -142,7 +166,7 @@ namespace PlayFab _cachedStringBuilder.Clear(); return _cachedStringBuilder; } - + public static string GetFullUrl(string apiCall, Dictionary getParams, PlayFabApiSettings apiSettings = null) { StringBuilder sb = AcquireStringBuilder(); @@ -198,9 +222,9 @@ namespace PlayFab sb.Append(baseUrl).Append(apiCall); + bool firstParam = true; if (getParams != null) { - bool firstParam = true; foreach (var paramPair in getParams) { if (firstParam) @@ -216,6 +240,10 @@ namespace PlayFab } } + sb.Append(firstParam ? "?" : "&"); + sb.Append("engine=").Append(EngineVersion); + sb.Append("&platform=").Append(PlatformString); + return sb.ToString(); } }