예제 #1
0
        public async Task UnsubscribeDeviceAsync(PushDeviceRequest request)
        {
            Ensure.That(request, nameof(request)).IsNotNull();

            await CheckUserProfile(request.UserId);

            await _pushSubscriber.UnsubscribeDeviceAsync(request.DeviceToken);
        }
예제 #2
0
 public async Task UnsubscribeDeviceFromPushAsync(CreatePushTokenRequest model)
 {
     Ensure.That(model, nameof(model)).IsNotNull();
     await _pushNotificationSubscriber.UnsubscribeDeviceAsync(model.Token);
 }