internal ProxyNotificationsService(CountlyConfigModel config, Action <IEnumerator> startCoroutine, EventCountlyService eventCountlyService) { #if UNITY_ANDROID _service = new Notifications.Impls.Android.AndroidNotificationsService(config, eventCountlyService); #elif UNITY_IOS _service = new Notifications.Impls.iOs.IOsNotificationsService(config, startCoroutine, eventCountlyService); #endif }
internal RemoteConfigCountlyService(CountlyConfigModel config, RequestCountlyHelper requestCountlyHelper, CountlyUtils countlyUtils, Dao <ConfigEntity> configDao) { _config = config; _configDao = configDao; _countlyUtils = countlyUtils; _requestCountlyHelper = requestCountlyHelper; Configs = FetchConfigFromDB(); }
internal EventCountlyService(CountlyConfigModel countlyConfigModel, RequestCountlyHelper requestCountlyHelper, ViewEventRepository viewEventRepo, NonViewEventRepository nonViewEventRepo, EventNumberInSameSessionHelper eventNumberInSameSessionHelper) { _countlyConfigModel = countlyConfigModel; _requestCountlyHelper = requestCountlyHelper; _viewEventRepo = viewEventRepo; _nonViewEventRepo = nonViewEventRepo; _eventNumberInSameSessionHelper = eventNumberInSameSessionHelper; }
internal SessionCountlyService(CountlyConfigModel configModel, PushCountlyService pushCountlyService, RequestCountlyHelper requestCountlyHelper, OptionalParametersCountlyService optionalParametersCountlyService, EventNumberInSameSessionHelper eventNumberInSameSessionHelper) { _configModel = configModel; _pushCountlyService = pushCountlyService; _requestCountlyHelper = requestCountlyHelper; _optionalParametersCountlyService = optionalParametersCountlyService; _eventNumberInSameSessionHelper = eventNumberInSameSessionHelper; }
internal IOsNotificationsService(CountlyConfigModel config, Action <IEnumerator> startCoroutine, EventCountlyService eventCountlyService) { _config = config; _startCoroutine = startCoroutine; _eventCountlyService = eventCountlyService; var gameObject = new GameObject(BridgeName); _bridge = gameObject.AddComponent <IOSBridage>(); _bridge.Config = _config; }
/// <summary> /// Initializes the Countly SDK with default values /// </summary> /// <param name="salt"></param> /// <param name="enablePost"></param> /// <param name="enableConsoleErrorLogging"></param> /// <param name="ignoreSessionCooldown"></param> /// <returns></returns> internal async Task <CountlyResponse> SetDefaults(CountlyConfigModel configModel) { if (!configModel.EnableManualSessionHandling) { //Start Session and enable push notification var result = await _sessionCountlyService.BeginSessionAsync(); } return(new CountlyResponse { IsSuccess = true }); }
internal AndroidNotificationsService(CountlyConfigModel config, EventCountlyService eventCountlyService) { _config = config; _eventCountlyService = eventCountlyService; var gameObject = new GameObject(BridgeName); _bridge = gameObject.AddComponent <AndroidBridge>(); _bridge.Config = _config; var countlyPushPlugin = new AndroidJavaClass(CountlyPushPluginPackageName); countlyPushPlugin.CallStatic("setEnableLog", config.EnableConsoleLogging); }
/// <summary> /// Initializes the Countly SDK with default values /// </summary> /// <param name="salt"></param> /// <param name="enablePost"></param> /// <param name="enableConsoleErrorLogging"></param> /// <param name="ignoreSessionCooldown"></param> /// <returns></returns> public async Task <CountlyResponse> SetDefaults(CountlyConfigModel configModel) { if (!configModel.EnableManualSessionHandling) { //Start Session and enable push notification var result = await _sessionCountlyService.BeginSessionAsync(); // if (!result.IsSuccess) Debug.LogError("BeginSessionAsync error: " + result); } return(new CountlyResponse { IsSuccess = true }); }
public NonViewEventRepository(Dao <EventEntity> dao, SegmentDao segmentDao, CountlyConfigModel config) : base(dao, segmentDao, config) { }
internal NotificationsCallbackService(CountlyConfigModel config) { _config = config; _listeners = new List <INotificationListener>(); }
internal RequestCountlyHelper(CountlyConfigModel config, ICountlyUtils countlyUtils, RequestRepository requestRepo) { _config = config; _countlyUtils = countlyUtils; _requestRepo = requestRepo; }
protected AbstractEventRepository(Dao <EventEntity> dao, SegmentDao segmentDao, CountlyConfigModel config) : base(dao, config) { _config = config; _segmentDao = segmentDao; }
public Task <CountlyResponse> SetDefaults(CountlyConfigModel configModel) { Debug.Log("[InitializationCountlyServiceWrapper] SetDefaults, model: \n" + configModel); return(Task.FromResult(new CountlyResponse())); }
internal CrashReportsCountlyService(CountlyConfigModel configModel, RequestCountlyHelper requestCountlyHelper) { _configModel = configModel; _requestCountlyHelper = requestCountlyHelper; }
protected Repository(Dao <TEntity> dao, CountlyConfigModel config) { _dao = dao; _config = config; }
public RequestRepository(Dao <RequestEntity> dao, CountlyConfigModel config) : base(dao, config) { }
public CrushReportsCountlyService(CountlyConfigModel configModel, RequestCountlyHelper requestCountlyHelper) { _configModel = configModel; _requestCountlyHelper = requestCountlyHelper; }
internal ViewCountlyService(CountlyConfigModel config, EventCountlyService eventService) { _config = config; _eventService = eventService; }