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; }
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; }