コード例 #1
0
        public UnsubscribeFromPushNotificationsInteractor(
            IPushNotificationsTokenService pushNotificationsTokenService,
            IPushNotificationsTokenStorage pushNotificationsTokenStorage,
            ITogglApi togglApi
            )
        {
            Ensure.Argument.IsNotNull(pushNotificationsTokenService, nameof(pushNotificationsTokenService));
            Ensure.Argument.IsNotNull(pushNotificationsTokenStorage, nameof(pushNotificationsTokenStorage));
            Ensure.Argument.IsNotNull(togglApi, nameof(togglApi));

            this.pushNotificationsTokenService = pushNotificationsTokenService;
            this.pushNotificationsTokenStorage = pushNotificationsTokenStorage;
            this.pushServicesApi = togglApi.PushServices;
        }
コード例 #2
0
        public SyncPushNotificationsTokenState(
            IPushNotificationsTokenStorage pushNotificationsTokenStorage,
            ITogglApi togglApi,
            IPushNotificationsTokenService pushNotificationsTokenService,
            ITimeService timeService,
            IRemoteConfigService remoteConfigService)
        {
            Ensure.Argument.IsNotNull(pushNotificationsTokenStorage, nameof(pushNotificationsTokenStorage));
            Ensure.Argument.IsNotNull(togglApi, nameof(togglApi));
            Ensure.Argument.IsNotNull(pushNotificationsTokenService, nameof(pushNotificationsTokenService));
            Ensure.Argument.IsNotNull(timeService, nameof(timeService));
            Ensure.Argument.IsNotNull(remoteConfigService, nameof(remoteConfigService));

            this.pushNotificationsTokenStorage = pushNotificationsTokenStorage;
            this.togglApi = togglApi;
            this.pushNotificationsTokenService = pushNotificationsTokenService;
            this.timeService         = timeService;
            this.remoteConfigService = remoteConfigService;
        }