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();
        }
Example #3
0
 internal EventCountlyService(CountlyConfigModel countlyConfigModel, RequestCountlyHelper requestCountlyHelper,
                              ViewEventRepository viewEventRepo, NonViewEventRepository nonViewEventRepo, EventNumberInSameSessionHelper eventNumberInSameSessionHelper)
 {
     _countlyConfigModel             = countlyConfigModel;
     _requestCountlyHelper           = requestCountlyHelper;
     _viewEventRepo                  = viewEventRepo;
     _nonViewEventRepo               = nonViewEventRepo;
     _eventNumberInSameSessionHelper = eventNumberInSameSessionHelper;
 }
Example #4
0
 internal SessionCountlyService(CountlyConfigModel configModel, PushCountlyService pushCountlyService,
                                RequestCountlyHelper requestCountlyHelper, OptionalParametersCountlyService optionalParametersCountlyService,
                                EventNumberInSameSessionHelper eventNumberInSameSessionHelper)
 {
     _configModel                      = configModel;
     _pushCountlyService               = pushCountlyService;
     _requestCountlyHelper             = requestCountlyHelper;
     _optionalParametersCountlyService = optionalParametersCountlyService;
     _eventNumberInSameSessionHelper   = eventNumberInSameSessionHelper;
 }
Example #5
0
        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;
        }
Example #6
0
        /// <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
            });
        }
Example #9
0
 public NonViewEventRepository(Dao <EventEntity> dao, SegmentDao segmentDao, CountlyConfigModel config) : base(dao, segmentDao, config)
 {
 }
 internal NotificationsCallbackService(CountlyConfigModel config)
 {
     _config    = config;
     _listeners = new List <INotificationListener>();
 }
Example #11
0
 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;
 }
Example #13
0
 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;
 }
Example #15
0
 protected Repository(Dao <TEntity> dao, CountlyConfigModel config)
 {
     _dao    = dao;
     _config = config;
 }
Example #16
0
 public RequestRepository(Dao <RequestEntity> dao, CountlyConfigModel config) : base(dao, config)
 {
 }
 public CrushReportsCountlyService(CountlyConfigModel configModel, RequestCountlyHelper requestCountlyHelper)
 {
     _configModel          = configModel;
     _requestCountlyHelper = requestCountlyHelper;
 }
Example #18
0
 internal ViewCountlyService(CountlyConfigModel config, EventCountlyService eventService)
 {
     _config       = config;
     _eventService = eventService;
 }