123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- namespace UnityEditor.Purchasing
- {
- internal static class GameServicesEventSenderHelpers
- {
- internal static void SendTopMenuConfigure()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionConfigure);
- }
-
- internal static void SendTopMenuCreateIapButtonEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton_legacy);
- }
-
- internal static void SendTopMenuCreateCodelessIapButtonEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton);
- }
-
- internal static void SendTopMenuCreateIapListenerEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapListener);
- }
-
- internal static void SendTopMenuIapCatalogEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionIapCatalog);
- }
-
- internal static void SendTopMenuReceiptValidationObfuscatorEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionReceiptValidationObfuscator);
- }
-
- internal static void SendTopMenuSwitchStoreEvent()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionSwitchStore);
- }
-
- internal static void SendProjectSettingsOpenDashboardForPublicKey()
- {
- BuildAndSendEvent(GameServicesEventComponents.k_ComponentProjectSettings, GameServicesEventActions.k_ActionOpenDashboardForPublicKey);
- }
-
- static void BuildAndSendEvent(string component, string action)
- {
- var newEvent = new GenericEditorGameServiceEvent(component, action);
- PurchasingServiceAnalyticsSender.SendEvent(newEvent);
- }
- }
- }
|