diff --git a/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs b/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs index 871f7984c..95f8da8dc 100644 --- a/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs +++ b/ExampleMacProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs @@ -1 +1 @@ -namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.198.240802"; } } +namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.200.240816"; } } diff --git a/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs new file mode 100644 index 000000000..a1cf333d2 --- /dev/null +++ b/ExampleMacProject/Assets/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/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs new file mode 100644 index 000000000..acba30cf0 --- /dev/null +++ b/ExampleMacProject/Assets/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/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs new file mode 100644 index 000000000..f7926fe8f --- /dev/null +++ b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs @@ -0,0 +1,781 @@ +#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; + /// + /// 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; + } + + [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/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs new file mode 100644 index 000000000..544f4f350 --- /dev/null +++ b/ExampleMacProject/Assets/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/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs index bfdb92df9..1ff04d1f0 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs @@ -2916,6 +2916,12 @@ public enum GenericErrorCodes GameSaveManifestNotFound, GameSaveManifestVersionAlreadyExists, GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, StateShareForbidden, StateShareTitleNotInFlight, StateShareStateNotFound, diff --git a/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs index 1b3801857..5a8585474 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs @@ -1914,8 +1914,9 @@ public class GetFriendsListRequest : PlayFabRequestCommon /// /// 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 @@ -4071,7 +4072,8 @@ public class LoginWithFacebookInstantGamesIdRequest : PlayFabRequestCommon /// 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 @@ -4081,6 +4083,10 @@ public class LoginWithFacebookRequest : PlayFabRequestCommon /// 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; diff --git a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs deleted file mode 100644 index 66e6508e6..000000000 --- a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs +++ /dev/null @@ -1,54 +0,0 @@ -#if !DISABLE_PLAYFABENTITY_API -using PlayFab.LeaderboardsModels; - -namespace PlayFab.Events -{ - public partial class PlayFabEvents - { - public event PlayFabRequestEvent OnLeaderboardsCreateLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsCreateLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsCreateStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsCreateStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteLeaderboardEntriesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteLeaderboardEntriesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteStatisticsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetFriendLeaderboardForEntityResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardAroundEntityRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardAroundEntityResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardForEntitiesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardForEntitiesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticsForEntitiesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticsForEntitiesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsIncrementLeaderboardVersionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsIncrementLeaderboardVersionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsIncrementStatisticVersionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsIncrementStatisticVersionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsListLeaderboardDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsListLeaderboardDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsListStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsListStatisticDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUpdateLeaderboardEntriesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUpdateLeaderboardEntriesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUpdateStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUpdateStatisticsResultEvent; - } -} -#endif diff --git a/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs new file mode 100644 index 000000000..f5a3ab576 --- /dev/null +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs @@ -0,0 +1,54 @@ +#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 OnProgressionGetStatisticDefinitionsRequestEvent; + public event PlayFabResultEvent OnProgressionGetStatisticDefinitionsResultEvent; + 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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs similarity index 99% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs rename to ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs index e694c3802..f3660ca6e 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs @@ -2,17 +2,17 @@ using System; using System.Collections.Generic; -using PlayFab.LeaderboardsModels; +using PlayFab.ProgressionModels; using PlayFab.Internal; namespace PlayFab { /// - /// Manage entity statistics Manage entity statistics + /// Manage entity statistics Manage entity leaderboards /// - public static class PlayFabLeaderboardsAPI + public static class PlayFabProgressionAPI { - static PlayFabLeaderboardsAPI() {} + static PlayFabProgressionAPI() {} /// diff --git a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs similarity index 98% rename from ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs rename to ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs index f59c1d5f0..326fd9721 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs @@ -2,28 +2,28 @@ using System; using System.Collections.Generic; -using PlayFab.LeaderboardsModels; +using PlayFab.ProgressionModels; using PlayFab.Internal; using PlayFab.SharedModels; namespace PlayFab { /// - /// Manage entity statistics Manage entity statistics + /// Manage entity statistics Manage entity leaderboards /// - public class PlayFabLeaderboardsInstanceAPI : IPlayFabInstanceApi + public class PlayFabProgressionInstanceAPI : IPlayFabInstanceApi { public readonly PlayFabApiSettings apiSettings = null; public readonly PlayFabAuthenticationContext authenticationContext = null; - public PlayFabLeaderboardsInstanceAPI(PlayFabAuthenticationContext context) + 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 PlayFabLeaderboardsInstanceAPI(PlayFabApiSettings settings, PlayFabAuthenticationContext 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()"); diff --git a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs similarity index 99% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs rename to ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs index ed27026d1..5b8b245aa 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using PlayFab.SharedModels; -namespace PlayFab.LeaderboardsModels +namespace PlayFab.ProgressionModels { [Serializable] public class CreateLeaderboardDefinitionRequest : PlayFabRequestCommon diff --git a/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs b/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs index 9fa364097..66036444c 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs @@ -2284,6 +2284,12 @@ public enum GenericErrorCodes GameSaveManifestNotFound, GameSaveManifestVersionAlreadyExists, GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, StateShareForbidden, StateShareTitleNotInFlight, StateShareStateNotFound, diff --git a/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs index 9ef751066..defe5d7c7 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs @@ -862,6 +862,12 @@ public enum PlayFabErrorCode GameSaveManifestNotFound = 20300, GameSaveManifestVersionAlreadyExists = 20301, GameSaveConflictUpdatingManifest = 20302, + GameSaveManifestUpdatesNotAllowed = 20303, + GameSaveFileAlreadyExists = 20304, + GameSaveManifestVersionNotFinalized = 20305, + GameSaveUnknownFileInManifest = 20306, + GameSaveFileExceededReportedSize = 20307, + GameSaveFileNotUploaded = 20308, StateShareForbidden = 21000, StateShareTitleNotInFlight = 21001, StateShareStateNotFound = 21002, diff --git a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs index b313a7b81..6514c230c 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs @@ -1647,71 +1647,71 @@ public void UnregisterInstance(object instance) #endif #if !DISABLE_PLAYFABENTITY_API - if (OnLeaderboardsCreateLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsCreateLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsCreateLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsCreateLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateLeaderboardDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + 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 (OnLeaderboardsCreateStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsCreateStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsCreateStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsCreateStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateStatisticDefinitionResultEvent -= (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 (OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardDefinitionResultEvent -= (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 (OnLeaderboardsDeleteLeaderboardEntriesRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteLeaderboardEntriesResultEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardEntriesResultEvent -= (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 (OnLeaderboardsDeleteStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticDefinitionResultEvent -= (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 (OnLeaderboardsDeleteStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticsResultEvent -= (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 (OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent != null) { foreach (var each in OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetFriendLeaderboardForEntityResultEvent != null) { foreach (var each in OnLeaderboardsGetFriendLeaderboardForEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetFriendLeaderboardForEntityResultEvent -= (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 (OnLeaderboardsGetLeaderboardRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardResultEvent -= (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 (OnLeaderboardsGetLeaderboardAroundEntityRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardAroundEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardAroundEntityRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardAroundEntityResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardAroundEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardAroundEntityResultEvent -= (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 (OnLeaderboardsGetLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardDefinitionResultEvent -= (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 (OnLeaderboardsGetLeaderboardForEntitiesRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardForEntitiesResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardForEntitiesResultEvent -= (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 (OnLeaderboardsGetStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionResultEvent -= (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 (OnLeaderboardsGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProgressionGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnLeaderboardsGetStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsResultEvent -= (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 (OnLeaderboardsGetStatisticsForEntitiesRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticsForEntitiesResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsForEntitiesResultEvent -= (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 (OnLeaderboardsIncrementLeaderboardVersionRequestEvent != null) { foreach (var each in OnLeaderboardsIncrementLeaderboardVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementLeaderboardVersionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsIncrementLeaderboardVersionResultEvent != null) { foreach (var each in OnLeaderboardsIncrementLeaderboardVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementLeaderboardVersionResultEvent -= (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 (OnLeaderboardsIncrementStatisticVersionRequestEvent != null) { foreach (var each in OnLeaderboardsIncrementStatisticVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementStatisticVersionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsIncrementStatisticVersionResultEvent != null) { foreach (var each in OnLeaderboardsIncrementStatisticVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementStatisticVersionResultEvent -= (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 (OnLeaderboardsListLeaderboardDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsListLeaderboardDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListLeaderboardDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsListLeaderboardDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsListLeaderboardDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListLeaderboardDefinitionsResultEvent -= (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 (OnLeaderboardsListStatisticDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsListStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsListStatisticDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsListStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListStatisticDefinitionsResultEvent -= (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 (OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent != null) { foreach (var each in OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent != null) { foreach (var each in OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent -= (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 (OnLeaderboardsUpdateLeaderboardEntriesRequestEvent != null) { foreach (var each in OnLeaderboardsUpdateLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUpdateLeaderboardEntriesResultEvent != null) { foreach (var each in OnLeaderboardsUpdateLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateLeaderboardEntriesResultEvent -= (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 (OnLeaderboardsUpdateStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsUpdateStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUpdateStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsUpdateStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateStatisticsResultEvent -= (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 @@ -2007,6 +2007,91 @@ public void UnregisterInstance(object instance) 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 } @@ -2586,28 +2671,28 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(GroupsModels.UpdateGroupRoleRequest)) { if (_instance.OnGroupsUpdateRoleRequestEvent != null) { _instance.OnGroupsUpdateRoleRequestEvent((GroupsModels.UpdateGroupRoleRequest)e.Request); return; } } #endif #if !DISABLE_PLAYFABENTITY_API - if (type == typeof(LeaderboardsModels.CreateLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsCreateLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsCreateLeaderboardDefinitionRequestEvent((LeaderboardsModels.CreateLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.CreateStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsCreateStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsCreateStatisticDefinitionRequestEvent((LeaderboardsModels.CreateStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent((LeaderboardsModels.DeleteLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteLeaderboardEntriesRequest)) { if (_instance.OnLeaderboardsDeleteLeaderboardEntriesRequestEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardEntriesRequestEvent((LeaderboardsModels.DeleteLeaderboardEntriesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsDeleteStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsDeleteStatisticDefinitionRequestEvent((LeaderboardsModels.DeleteStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticsRequest)) { if (_instance.OnLeaderboardsDeleteStatisticsRequestEvent != null) { _instance.OnLeaderboardsDeleteStatisticsRequestEvent((LeaderboardsModels.DeleteStatisticsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetFriendLeaderboardForEntityRequest)) { if (_instance.OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent != null) { _instance.OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent((LeaderboardsModels.GetFriendLeaderboardForEntityRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardRequest)) { if (_instance.OnLeaderboardsGetLeaderboardRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardRequestEvent((LeaderboardsModels.GetEntityLeaderboardRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardAroundEntityRequest)) { if (_instance.OnLeaderboardsGetLeaderboardAroundEntityRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardAroundEntityRequestEvent((LeaderboardsModels.GetLeaderboardAroundEntityRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsGetLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardDefinitionRequestEvent((LeaderboardsModels.GetLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardForEntitiesRequest)) { if (_instance.OnLeaderboardsGetLeaderboardForEntitiesRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardForEntitiesRequestEvent((LeaderboardsModels.GetLeaderboardForEntitiesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsGetStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionRequestEvent((LeaderboardsModels.GetStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionsRequest)) { if (_instance.OnLeaderboardsGetStatisticDefinitionsRequestEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionsRequestEvent((LeaderboardsModels.GetStatisticDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsRequest)) { if (_instance.OnLeaderboardsGetStatisticsRequestEvent != null) { _instance.OnLeaderboardsGetStatisticsRequestEvent((LeaderboardsModels.GetStatisticsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnLeaderboardsGetStatisticsForEntitiesRequestEvent != null) { _instance.OnLeaderboardsGetStatisticsForEntitiesRequestEvent((LeaderboardsModels.GetStatisticsForEntitiesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnLeaderboardsIncrementLeaderboardVersionRequestEvent != null) { _instance.OnLeaderboardsIncrementLeaderboardVersionRequestEvent((LeaderboardsModels.IncrementLeaderboardVersionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.IncrementStatisticVersionRequest)) { if (_instance.OnLeaderboardsIncrementStatisticVersionRequestEvent != null) { _instance.OnLeaderboardsIncrementStatisticVersionRequestEvent((LeaderboardsModels.IncrementStatisticVersionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.ListLeaderboardDefinitionsRequest)) { if (_instance.OnLeaderboardsListLeaderboardDefinitionsRequestEvent != null) { _instance.OnLeaderboardsListLeaderboardDefinitionsRequestEvent((LeaderboardsModels.ListLeaderboardDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.ListStatisticDefinitionsRequest)) { if (_instance.OnLeaderboardsListStatisticDefinitionsRequestEvent != null) { _instance.OnLeaderboardsListStatisticDefinitionsRequestEvent((LeaderboardsModels.ListStatisticDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UnlinkLeaderboardFromStatisticRequest)) { if (_instance.OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent != null) { _instance.OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent((LeaderboardsModels.UnlinkLeaderboardFromStatisticRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UpdateLeaderboardEntriesRequest)) { if (_instance.OnLeaderboardsUpdateLeaderboardEntriesRequestEvent != null) { _instance.OnLeaderboardsUpdateLeaderboardEntriesRequestEvent((LeaderboardsModels.UpdateLeaderboardEntriesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UpdateStatisticsRequest)) { if (_instance.OnLeaderboardsUpdateStatisticsRequestEvent != null) { _instance.OnLeaderboardsUpdateStatisticsRequestEvent((LeaderboardsModels.UpdateStatisticsRequest)e.Request); return; } } + 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.GetStatisticDefinitionsRequest)) { if (_instance.OnProgressionGetStatisticDefinitionsRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionsRequestEvent((ProgressionModels.GetStatisticDefinitionsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetStatisticsRequest)) { if (_instance.OnProgressionGetStatisticsRequestEvent != null) { _instance.OnProgressionGetStatisticsRequestEvent((ProgressionModels.GetStatisticsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnProgressionGetStatisticsForEntitiesRequestEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesRequestEvent((ProgressionModels.GetStatisticsForEntitiesRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnProgressionIncrementLeaderboardVersionRequestEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionRequestEvent((ProgressionModels.IncrementLeaderboardVersionRequest)e.Request); return; } } + 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; } } @@ -2711,6 +2796,37 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) 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 @@ -3270,28 +3386,28 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) #endif #if !DISABLE_PLAYFABENTITY_API - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsCreateLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsCreateLeaderboardDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsCreateStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsCreateStatisticDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteLeaderboardEntriesResultEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardEntriesResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsDeleteStatisticDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticsResponse)) { if (_instance.OnLeaderboardsDeleteStatisticsResultEvent != null) { _instance.OnLeaderboardsDeleteStatisticsResultEvent((LeaderboardsModels.DeleteStatisticsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetFriendLeaderboardForEntityResultEvent != null) { _instance.OnLeaderboardsGetFriendLeaderboardForEntityResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardAroundEntityResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardAroundEntityResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardDefinitionResponse)) { if (_instance.OnLeaderboardsGetLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardDefinitionResultEvent((LeaderboardsModels.GetLeaderboardDefinitionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardForEntitiesResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardForEntitiesResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionResponse)) { if (_instance.OnLeaderboardsGetStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionResultEvent((LeaderboardsModels.GetStatisticDefinitionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionsResponse)) { if (_instance.OnLeaderboardsGetStatisticDefinitionsResultEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionsResultEvent((LeaderboardsModels.GetStatisticDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsResponse)) { if (_instance.OnLeaderboardsGetStatisticsResultEvent != null) { _instance.OnLeaderboardsGetStatisticsResultEvent((LeaderboardsModels.GetStatisticsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnLeaderboardsGetStatisticsForEntitiesResultEvent != null) { _instance.OnLeaderboardsGetStatisticsForEntitiesResultEvent((LeaderboardsModels.GetStatisticsForEntitiesResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnLeaderboardsIncrementLeaderboardVersionResultEvent != null) { _instance.OnLeaderboardsIncrementLeaderboardVersionResultEvent((LeaderboardsModels.IncrementLeaderboardVersionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.IncrementStatisticVersionResponse)) { if (_instance.OnLeaderboardsIncrementStatisticVersionResultEvent != null) { _instance.OnLeaderboardsIncrementStatisticVersionResultEvent((LeaderboardsModels.IncrementStatisticVersionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.ListLeaderboardDefinitionsResponse)) { if (_instance.OnLeaderboardsListLeaderboardDefinitionsResultEvent != null) { _instance.OnLeaderboardsListLeaderboardDefinitionsResultEvent((LeaderboardsModels.ListLeaderboardDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.ListStatisticDefinitionsResponse)) { if (_instance.OnLeaderboardsListStatisticDefinitionsResultEvent != null) { _instance.OnLeaderboardsListStatisticDefinitionsResultEvent((LeaderboardsModels.ListStatisticDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent != null) { _instance.OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsUpdateLeaderboardEntriesResultEvent != null) { _instance.OnLeaderboardsUpdateLeaderboardEntriesResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.UpdateStatisticsResponse)) { if (_instance.OnLeaderboardsUpdateStatisticsResultEvent != null) { _instance.OnLeaderboardsUpdateStatisticsResultEvent((LeaderboardsModels.UpdateStatisticsResponse)e.Result); return; } } + 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.GetStatisticDefinitionsResponse)) { if (_instance.OnProgressionGetStatisticDefinitionsResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionsResultEvent((ProgressionModels.GetStatisticDefinitionsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetStatisticsResponse)) { if (_instance.OnProgressionGetStatisticsResultEvent != null) { _instance.OnProgressionGetStatisticsResultEvent((ProgressionModels.GetStatisticsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnProgressionGetStatisticsForEntitiesResultEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesResultEvent((ProgressionModels.GetStatisticsForEntitiesResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnProgressionIncrementLeaderboardVersionResultEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionResultEvent((ProgressionModels.IncrementLeaderboardVersionResponse)e.Result); return; } } + 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 @@ -3398,6 +3514,39 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) 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/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs index 40b51f174..7481b3a41 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs +++ b/ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs @@ -65,9 +65,9 @@ static PlayFabSettings() /// public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext(); - public const string SdkVersion = "2.198.240802"; + public const string SdkVersion = "2.200.240816"; public const string BuildIdentifier = "adobuild_unitysdk_167"; - public const string VersionString = "UnitySDK-2.198.240802"; + public const string VersionString = "UnitySDK-2.200.240816"; public static string EngineVersion = UnityEngine.Application.unityVersion; public static string PlatformString; diff --git a/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs b/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs index 871f7984c..95f8da8dc 100644 --- a/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs +++ b/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorVersion.cs @@ -1 +1 @@ -namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.198.240802"; } } +namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.200.240816"; } } diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon.meta b/ExampleTestProject/Assets/PlayFabSDK/Addon.meta new file mode 100644 index 000000000..11d3b967f --- /dev/null +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4592bb1110a6b1e4dacb06b424cd2759 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs new file mode 100644 index 000000000..a1cf333d2 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta similarity index 83% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs.meta rename to ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta index 847dc69f8..39ef2ec76 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs.meta +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonAPI.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c604d5286ff8e964bb626f47d6050e70 +guid: 16e6981cbc311934bab9111885dbfc1a MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs new file mode 100644 index 000000000..acba30cf0 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta similarity index 83% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs.meta rename to ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta index 94366a35f..4d4074e88 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs.meta +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonInstanceAPI.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e50f96605a0bc2549963a5eefb11996e +guid: cb16ee30d77a0bd4095b94a53a375676 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs new file mode 100644 index 000000000..f7926fe8f --- /dev/null +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs @@ -0,0 +1,781 @@ +#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; + /// + /// 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; + } + + [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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta similarity index 83% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs.meta rename to ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta index 68f4bfca6..573052f25 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs.meta +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f75615e151f17f24dbfcacf97909a7fa +guid: 87ffcc7751ee8d54a9effc1467d73c87 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs new file mode 100644 index 000000000..544f4f350 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs.meta similarity index 83% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs.meta rename to ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs.meta index 3fec93974..9673c4a7e 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs.meta +++ b/ExampleTestProject/Assets/PlayFabSDK/Addon/PlayFabEvents.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 75ecfa5c2a5f60a4eb83ef154a03b6cb +guid: d196246361876214999b16fe616a0f32 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs index bfdb92df9..1ff04d1f0 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Admin/PlayFabAdminModels.cs @@ -2916,6 +2916,12 @@ public enum GenericErrorCodes GameSaveManifestNotFound, GameSaveManifestVersionAlreadyExists, GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, StateShareForbidden, StateShareTitleNotInFlight, StateShareStateNotFound, diff --git a/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs index 1b3801857..5a8585474 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs @@ -1914,8 +1914,9 @@ public class GetFriendsListRequest : PlayFabRequestCommon /// /// 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 @@ -4071,7 +4072,8 @@ public class LoginWithFacebookInstantGamesIdRequest : PlayFabRequestCommon /// 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 @@ -4081,6 +4083,10 @@ public class LoginWithFacebookRequest : PlayFabRequestCommon /// 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; diff --git a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs deleted file mode 100644 index 66e6508e6..000000000 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabEvents.cs +++ /dev/null @@ -1,54 +0,0 @@ -#if !DISABLE_PLAYFABENTITY_API -using PlayFab.LeaderboardsModels; - -namespace PlayFab.Events -{ - public partial class PlayFabEvents - { - public event PlayFabRequestEvent OnLeaderboardsCreateLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsCreateLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsCreateStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsCreateStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteLeaderboardEntriesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteLeaderboardEntriesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsDeleteStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsDeleteStatisticsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetFriendLeaderboardForEntityResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardAroundEntityRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardAroundEntityResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetLeaderboardForEntitiesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetLeaderboardForEntitiesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticDefinitionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticDefinitionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsGetStatisticsForEntitiesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsGetStatisticsForEntitiesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsIncrementLeaderboardVersionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsIncrementLeaderboardVersionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsIncrementStatisticVersionRequestEvent; - public event PlayFabResultEvent OnLeaderboardsIncrementStatisticVersionResultEvent; - public event PlayFabRequestEvent OnLeaderboardsListLeaderboardDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsListLeaderboardDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsListStatisticDefinitionsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsListStatisticDefinitionsResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUpdateLeaderboardEntriesRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUpdateLeaderboardEntriesResultEvent; - public event PlayFabRequestEvent OnLeaderboardsUpdateStatisticsRequestEvent; - public event PlayFabResultEvent OnLeaderboardsUpdateStatisticsResultEvent; - } -} -#endif diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression.meta b/ExampleTestProject/Assets/PlayFabSDK/Progression.meta new file mode 100644 index 000000000..942cbdd40 --- /dev/null +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24485793d5ba2d641b660ee9a48c06b3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs new file mode 100644 index 000000000..f5a3ab576 --- /dev/null +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs @@ -0,0 +1,54 @@ +#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 OnProgressionGetStatisticDefinitionsRequestEvent; + public event PlayFabResultEvent OnProgressionGetStatisticDefinitionsResultEvent; + 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/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabEvents.cs.meta new file mode 100644 index 000000000..03f473a11 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs similarity index 99% rename from ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs rename to ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs index e694c3802..f3660ca6e 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs @@ -2,17 +2,17 @@ using System; using System.Collections.Generic; -using PlayFab.LeaderboardsModels; +using PlayFab.ProgressionModels; using PlayFab.Internal; namespace PlayFab { /// - /// Manage entity statistics Manage entity statistics + /// Manage entity statistics Manage entity leaderboards /// - public static class PlayFabLeaderboardsAPI + public static class PlayFabProgressionAPI { - static PlayFabLeaderboardsAPI() {} + static PlayFabProgressionAPI() {} /// diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionAPI.cs.meta new file mode 100644 index 000000000..ea6b3eb06 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs similarity index 98% rename from ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs rename to ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs index f59c1d5f0..326fd9721 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsInstanceAPI.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs @@ -2,28 +2,28 @@ using System; using System.Collections.Generic; -using PlayFab.LeaderboardsModels; +using PlayFab.ProgressionModels; using PlayFab.Internal; using PlayFab.SharedModels; namespace PlayFab { /// - /// Manage entity statistics Manage entity statistics + /// Manage entity statistics Manage entity leaderboards /// - public class PlayFabLeaderboardsInstanceAPI : IPlayFabInstanceApi + public class PlayFabProgressionInstanceAPI : IPlayFabInstanceApi { public readonly PlayFabApiSettings apiSettings = null; public readonly PlayFabAuthenticationContext authenticationContext = null; - public PlayFabLeaderboardsInstanceAPI(PlayFabAuthenticationContext context) + 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 PlayFabLeaderboardsInstanceAPI(PlayFabApiSettings settings, PlayFabAuthenticationContext 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()"); diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionInstanceAPI.cs.meta new file mode 100644 index 000000000..cb5925006 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs similarity index 99% rename from ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs rename to ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs index ed27026d1..5b8b245aa 100644 --- a/ExampleMacProject/Assets/PlayFabSDK/Leaderboards/PlayFabLeaderboardsModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using PlayFab.SharedModels; -namespace PlayFab.LeaderboardsModels +namespace PlayFab.ProgressionModels { [Serializable] public class CreateLeaderboardDefinitionRequest : PlayFabRequestCommon diff --git a/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs.meta b/ExampleTestProject/Assets/PlayFabSDK/Progression/PlayFabProgressionModels.cs.meta new file mode 100644 index 000000000..382d715d7 --- /dev/null +++ b/ExampleTestProject/Assets/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/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs b/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs index 9fa364097..66036444c 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs @@ -2284,6 +2284,12 @@ public enum GenericErrorCodes GameSaveManifestNotFound, GameSaveManifestVersionAlreadyExists, GameSaveConflictUpdatingManifest, + GameSaveManifestUpdatesNotAllowed, + GameSaveFileAlreadyExists, + GameSaveManifestVersionNotFinalized, + GameSaveUnknownFileInManifest, + GameSaveFileExceededReportedSize, + GameSaveFileNotUploaded, StateShareForbidden, StateShareTitleNotInFlight, StateShareStateNotFound, diff --git a/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs index 9ef751066..defe5d7c7 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Internal/PlayFabErrors.cs @@ -862,6 +862,12 @@ public enum PlayFabErrorCode GameSaveManifestNotFound = 20300, GameSaveManifestVersionAlreadyExists = 20301, GameSaveConflictUpdatingManifest = 20302, + GameSaveManifestUpdatesNotAllowed = 20303, + GameSaveFileAlreadyExists = 20304, + GameSaveManifestVersionNotFinalized = 20305, + GameSaveUnknownFileInManifest = 20306, + GameSaveFileExceededReportedSize = 20307, + GameSaveFileNotUploaded = 20308, StateShareForbidden = 21000, StateShareTitleNotInFlight = 21001, StateShareStateNotFound = 21002, diff --git a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs index b313a7b81..6514c230c 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs @@ -1647,71 +1647,71 @@ public void UnregisterInstance(object instance) #endif #if !DISABLE_PLAYFABENTITY_API - if (OnLeaderboardsCreateLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsCreateLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsCreateLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsCreateLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateLeaderboardDefinitionResultEvent -= (PlayFabResultEvent)each; } } } + 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 (OnLeaderboardsCreateStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsCreateStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsCreateStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsCreateStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsCreateStatisticDefinitionResultEvent -= (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 (OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardDefinitionResultEvent -= (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 (OnLeaderboardsDeleteLeaderboardEntriesRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteLeaderboardEntriesResultEvent != null) { foreach (var each in OnLeaderboardsDeleteLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteLeaderboardEntriesResultEvent -= (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 (OnLeaderboardsDeleteStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticDefinitionResultEvent -= (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 (OnLeaderboardsDeleteStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsDeleteStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsDeleteStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsDeleteStatisticsResultEvent -= (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 (OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent != null) { foreach (var each in OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetFriendLeaderboardForEntityResultEvent != null) { foreach (var each in OnLeaderboardsGetFriendLeaderboardForEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetFriendLeaderboardForEntityResultEvent -= (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 (OnLeaderboardsGetLeaderboardRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardResultEvent -= (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 (OnLeaderboardsGetLeaderboardAroundEntityRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardAroundEntityRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardAroundEntityRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardAroundEntityResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardAroundEntityResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardAroundEntityResultEvent -= (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 (OnLeaderboardsGetLeaderboardDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardDefinitionResultEvent -= (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 (OnLeaderboardsGetLeaderboardForEntitiesRequestEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetLeaderboardForEntitiesResultEvent != null) { foreach (var each in OnLeaderboardsGetLeaderboardForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetLeaderboardForEntitiesResultEvent -= (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 (OnLeaderboardsGetStatisticDefinitionRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticDefinitionResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionResultEvent -= (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 (OnLeaderboardsGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } + if (OnProgressionGetStatisticDefinitionsRequestEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } + if (OnProgressionGetStatisticDefinitionsResultEvent != null) { foreach (var each in OnProgressionGetStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnProgressionGetStatisticDefinitionsResultEvent -= (PlayFabResultEvent)each; } } } - if (OnLeaderboardsGetStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsResultEvent -= (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 (OnLeaderboardsGetStatisticsForEntitiesRequestEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsForEntitiesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsForEntitiesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsGetStatisticsForEntitiesResultEvent != null) { foreach (var each in OnLeaderboardsGetStatisticsForEntitiesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsGetStatisticsForEntitiesResultEvent -= (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 (OnLeaderboardsIncrementLeaderboardVersionRequestEvent != null) { foreach (var each in OnLeaderboardsIncrementLeaderboardVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementLeaderboardVersionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsIncrementLeaderboardVersionResultEvent != null) { foreach (var each in OnLeaderboardsIncrementLeaderboardVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementLeaderboardVersionResultEvent -= (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 (OnLeaderboardsIncrementStatisticVersionRequestEvent != null) { foreach (var each in OnLeaderboardsIncrementStatisticVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementStatisticVersionRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsIncrementStatisticVersionResultEvent != null) { foreach (var each in OnLeaderboardsIncrementStatisticVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsIncrementStatisticVersionResultEvent -= (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 (OnLeaderboardsListLeaderboardDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsListLeaderboardDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListLeaderboardDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsListLeaderboardDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsListLeaderboardDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListLeaderboardDefinitionsResultEvent -= (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 (OnLeaderboardsListStatisticDefinitionsRequestEvent != null) { foreach (var each in OnLeaderboardsListStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsListStatisticDefinitionsResultEvent != null) { foreach (var each in OnLeaderboardsListStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsListStatisticDefinitionsResultEvent -= (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 (OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent != null) { foreach (var each in OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent != null) { foreach (var each in OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent -= (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 (OnLeaderboardsUpdateLeaderboardEntriesRequestEvent != null) { foreach (var each in OnLeaderboardsUpdateLeaderboardEntriesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateLeaderboardEntriesRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUpdateLeaderboardEntriesResultEvent != null) { foreach (var each in OnLeaderboardsUpdateLeaderboardEntriesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateLeaderboardEntriesResultEvent -= (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 (OnLeaderboardsUpdateStatisticsRequestEvent != null) { foreach (var each in OnLeaderboardsUpdateStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateStatisticsRequestEvent -= (PlayFabRequestEvent)each; } } } - if (OnLeaderboardsUpdateStatisticsResultEvent != null) { foreach (var each in OnLeaderboardsUpdateStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLeaderboardsUpdateStatisticsResultEvent -= (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 @@ -2007,6 +2007,91 @@ public void UnregisterInstance(object instance) 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 } @@ -2586,28 +2671,28 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) if (type == typeof(GroupsModels.UpdateGroupRoleRequest)) { if (_instance.OnGroupsUpdateRoleRequestEvent != null) { _instance.OnGroupsUpdateRoleRequestEvent((GroupsModels.UpdateGroupRoleRequest)e.Request); return; } } #endif #if !DISABLE_PLAYFABENTITY_API - if (type == typeof(LeaderboardsModels.CreateLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsCreateLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsCreateLeaderboardDefinitionRequestEvent((LeaderboardsModels.CreateLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.CreateStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsCreateStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsCreateStatisticDefinitionRequestEvent((LeaderboardsModels.CreateStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardDefinitionRequestEvent((LeaderboardsModels.DeleteLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteLeaderboardEntriesRequest)) { if (_instance.OnLeaderboardsDeleteLeaderboardEntriesRequestEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardEntriesRequestEvent((LeaderboardsModels.DeleteLeaderboardEntriesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsDeleteStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsDeleteStatisticDefinitionRequestEvent((LeaderboardsModels.DeleteStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticsRequest)) { if (_instance.OnLeaderboardsDeleteStatisticsRequestEvent != null) { _instance.OnLeaderboardsDeleteStatisticsRequestEvent((LeaderboardsModels.DeleteStatisticsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetFriendLeaderboardForEntityRequest)) { if (_instance.OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent != null) { _instance.OnLeaderboardsGetFriendLeaderboardForEntityRequestEvent((LeaderboardsModels.GetFriendLeaderboardForEntityRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardRequest)) { if (_instance.OnLeaderboardsGetLeaderboardRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardRequestEvent((LeaderboardsModels.GetEntityLeaderboardRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardAroundEntityRequest)) { if (_instance.OnLeaderboardsGetLeaderboardAroundEntityRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardAroundEntityRequestEvent((LeaderboardsModels.GetLeaderboardAroundEntityRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardDefinitionRequest)) { if (_instance.OnLeaderboardsGetLeaderboardDefinitionRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardDefinitionRequestEvent((LeaderboardsModels.GetLeaderboardDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardForEntitiesRequest)) { if (_instance.OnLeaderboardsGetLeaderboardForEntitiesRequestEvent != null) { _instance.OnLeaderboardsGetLeaderboardForEntitiesRequestEvent((LeaderboardsModels.GetLeaderboardForEntitiesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionRequest)) { if (_instance.OnLeaderboardsGetStatisticDefinitionRequestEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionRequestEvent((LeaderboardsModels.GetStatisticDefinitionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionsRequest)) { if (_instance.OnLeaderboardsGetStatisticDefinitionsRequestEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionsRequestEvent((LeaderboardsModels.GetStatisticDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsRequest)) { if (_instance.OnLeaderboardsGetStatisticsRequestEvent != null) { _instance.OnLeaderboardsGetStatisticsRequestEvent((LeaderboardsModels.GetStatisticsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnLeaderboardsGetStatisticsForEntitiesRequestEvent != null) { _instance.OnLeaderboardsGetStatisticsForEntitiesRequestEvent((LeaderboardsModels.GetStatisticsForEntitiesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnLeaderboardsIncrementLeaderboardVersionRequestEvent != null) { _instance.OnLeaderboardsIncrementLeaderboardVersionRequestEvent((LeaderboardsModels.IncrementLeaderboardVersionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.IncrementStatisticVersionRequest)) { if (_instance.OnLeaderboardsIncrementStatisticVersionRequestEvent != null) { _instance.OnLeaderboardsIncrementStatisticVersionRequestEvent((LeaderboardsModels.IncrementStatisticVersionRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.ListLeaderboardDefinitionsRequest)) { if (_instance.OnLeaderboardsListLeaderboardDefinitionsRequestEvent != null) { _instance.OnLeaderboardsListLeaderboardDefinitionsRequestEvent((LeaderboardsModels.ListLeaderboardDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.ListStatisticDefinitionsRequest)) { if (_instance.OnLeaderboardsListStatisticDefinitionsRequestEvent != null) { _instance.OnLeaderboardsListStatisticDefinitionsRequestEvent((LeaderboardsModels.ListStatisticDefinitionsRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UnlinkLeaderboardFromStatisticRequest)) { if (_instance.OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent != null) { _instance.OnLeaderboardsUnlinkLeaderboardFromStatisticRequestEvent((LeaderboardsModels.UnlinkLeaderboardFromStatisticRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UpdateLeaderboardEntriesRequest)) { if (_instance.OnLeaderboardsUpdateLeaderboardEntriesRequestEvent != null) { _instance.OnLeaderboardsUpdateLeaderboardEntriesRequestEvent((LeaderboardsModels.UpdateLeaderboardEntriesRequest)e.Request); return; } } - if (type == typeof(LeaderboardsModels.UpdateStatisticsRequest)) { if (_instance.OnLeaderboardsUpdateStatisticsRequestEvent != null) { _instance.OnLeaderboardsUpdateStatisticsRequestEvent((LeaderboardsModels.UpdateStatisticsRequest)e.Request); return; } } + 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.GetStatisticDefinitionsRequest)) { if (_instance.OnProgressionGetStatisticDefinitionsRequestEvent != null) { _instance.OnProgressionGetStatisticDefinitionsRequestEvent((ProgressionModels.GetStatisticDefinitionsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetStatisticsRequest)) { if (_instance.OnProgressionGetStatisticsRequestEvent != null) { _instance.OnProgressionGetStatisticsRequestEvent((ProgressionModels.GetStatisticsRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.GetStatisticsForEntitiesRequest)) { if (_instance.OnProgressionGetStatisticsForEntitiesRequestEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesRequestEvent((ProgressionModels.GetStatisticsForEntitiesRequest)e.Request); return; } } + if (type == typeof(ProgressionModels.IncrementLeaderboardVersionRequest)) { if (_instance.OnProgressionIncrementLeaderboardVersionRequestEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionRequestEvent((ProgressionModels.IncrementLeaderboardVersionRequest)e.Request); return; } } + 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; } } @@ -2711,6 +2796,37 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) 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 @@ -3270,28 +3386,28 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) #endif #if !DISABLE_PLAYFABENTITY_API - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsCreateLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsCreateLeaderboardDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsCreateStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsCreateStatisticDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteLeaderboardEntriesResultEvent != null) { _instance.OnLeaderboardsDeleteLeaderboardEntriesResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsDeleteStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsDeleteStatisticDefinitionResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.DeleteStatisticsResponse)) { if (_instance.OnLeaderboardsDeleteStatisticsResultEvent != null) { _instance.OnLeaderboardsDeleteStatisticsResultEvent((LeaderboardsModels.DeleteStatisticsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetFriendLeaderboardForEntityResultEvent != null) { _instance.OnLeaderboardsGetFriendLeaderboardForEntityResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardAroundEntityResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardAroundEntityResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetLeaderboardDefinitionResponse)) { if (_instance.OnLeaderboardsGetLeaderboardDefinitionResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardDefinitionResultEvent((LeaderboardsModels.GetLeaderboardDefinitionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetEntityLeaderboardResponse)) { if (_instance.OnLeaderboardsGetLeaderboardForEntitiesResultEvent != null) { _instance.OnLeaderboardsGetLeaderboardForEntitiesResultEvent((LeaderboardsModels.GetEntityLeaderboardResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionResponse)) { if (_instance.OnLeaderboardsGetStatisticDefinitionResultEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionResultEvent((LeaderboardsModels.GetStatisticDefinitionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticDefinitionsResponse)) { if (_instance.OnLeaderboardsGetStatisticDefinitionsResultEvent != null) { _instance.OnLeaderboardsGetStatisticDefinitionsResultEvent((LeaderboardsModels.GetStatisticDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsResponse)) { if (_instance.OnLeaderboardsGetStatisticsResultEvent != null) { _instance.OnLeaderboardsGetStatisticsResultEvent((LeaderboardsModels.GetStatisticsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnLeaderboardsGetStatisticsForEntitiesResultEvent != null) { _instance.OnLeaderboardsGetStatisticsForEntitiesResultEvent((LeaderboardsModels.GetStatisticsForEntitiesResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnLeaderboardsIncrementLeaderboardVersionResultEvent != null) { _instance.OnLeaderboardsIncrementLeaderboardVersionResultEvent((LeaderboardsModels.IncrementLeaderboardVersionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.IncrementStatisticVersionResponse)) { if (_instance.OnLeaderboardsIncrementStatisticVersionResultEvent != null) { _instance.OnLeaderboardsIncrementStatisticVersionResultEvent((LeaderboardsModels.IncrementStatisticVersionResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.ListLeaderboardDefinitionsResponse)) { if (_instance.OnLeaderboardsListLeaderboardDefinitionsResultEvent != null) { _instance.OnLeaderboardsListLeaderboardDefinitionsResultEvent((LeaderboardsModels.ListLeaderboardDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.ListStatisticDefinitionsResponse)) { if (_instance.OnLeaderboardsListStatisticDefinitionsResultEvent != null) { _instance.OnLeaderboardsListStatisticDefinitionsResultEvent((LeaderboardsModels.ListStatisticDefinitionsResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent != null) { _instance.OnLeaderboardsUnlinkLeaderboardFromStatisticResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.EmptyResponse)) { if (_instance.OnLeaderboardsUpdateLeaderboardEntriesResultEvent != null) { _instance.OnLeaderboardsUpdateLeaderboardEntriesResultEvent((LeaderboardsModels.EmptyResponse)e.Result); return; } } - if (type == typeof(LeaderboardsModels.UpdateStatisticsResponse)) { if (_instance.OnLeaderboardsUpdateStatisticsResultEvent != null) { _instance.OnLeaderboardsUpdateStatisticsResultEvent((LeaderboardsModels.UpdateStatisticsResponse)e.Result); return; } } + 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.GetStatisticDefinitionsResponse)) { if (_instance.OnProgressionGetStatisticDefinitionsResultEvent != null) { _instance.OnProgressionGetStatisticDefinitionsResultEvent((ProgressionModels.GetStatisticDefinitionsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetStatisticsResponse)) { if (_instance.OnProgressionGetStatisticsResultEvent != null) { _instance.OnProgressionGetStatisticsResultEvent((ProgressionModels.GetStatisticsResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.GetStatisticsForEntitiesResponse)) { if (_instance.OnProgressionGetStatisticsForEntitiesResultEvent != null) { _instance.OnProgressionGetStatisticsForEntitiesResultEvent((ProgressionModels.GetStatisticsForEntitiesResponse)e.Result); return; } } + if (type == typeof(ProgressionModels.IncrementLeaderboardVersionResponse)) { if (_instance.OnProgressionIncrementLeaderboardVersionResultEvent != null) { _instance.OnProgressionIncrementLeaderboardVersionResultEvent((ProgressionModels.IncrementLeaderboardVersionResponse)e.Result); return; } } + 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 @@ -3398,6 +3514,39 @@ private void OnProcessingEvent(ApiProcessingEventArgs e) 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/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs index 40b51f174..7481b3a41 100644 --- a/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs +++ b/ExampleTestProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs @@ -65,9 +65,9 @@ static PlayFabSettings() /// public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext(); - public const string SdkVersion = "2.198.240802"; + public const string SdkVersion = "2.200.240816"; public const string BuildIdentifier = "adobuild_unitysdk_167"; - public const string VersionString = "UnitySDK-2.198.240802"; + public const string VersionString = "UnitySDK-2.200.240816"; public static string EngineVersion = UnityEngine.Application.unityVersion; public static string PlatformString; diff --git a/Packages/PlayFabEditorExtensions.unitypackage b/Packages/PlayFabEditorExtensions.unitypackage index 7b911eed5..d4ee10653 100644 Binary files a/Packages/PlayFabEditorExtensions.unitypackage and b/Packages/PlayFabEditorExtensions.unitypackage differ diff --git a/Packages/UnitySDK.unitypackage b/Packages/UnitySDK.unitypackage index 3589711a3..ccb8a3ef2 100644 Binary files a/Packages/UnitySDK.unitypackage and b/Packages/UnitySDK.unitypackage differ