From 430e4dd44526e7ee4e5d0fc7cd5b03fa7052c7df Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 28 Aug 2018 08:47:47 -0400 Subject: [PATCH] rename UserPushNotification --- src/App/Models/PushNotification.cs | 2 +- src/App/Services/PushNotificationListener.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App/Models/PushNotification.cs b/src/App/Models/PushNotification.cs index 5a8d1155f..40b587c5d 100644 --- a/src/App/Models/PushNotification.cs +++ b/src/App/Models/PushNotification.cs @@ -30,7 +30,7 @@ namespace Bit.App.Models public DateTime RevisionDate { get; set; } } - public class SyncUserPushNotification + public class UserPushNotification { public string UserId { get; set; } public DateTime Date { get; set; } diff --git a/src/App/Services/PushNotificationListener.cs b/src/App/Services/PushNotificationListener.cs index f313bb912..652bb20f8 100644 --- a/src/App/Services/PushNotificationListener.cs +++ b/src/App/Services/PushNotificationListener.cs @@ -124,7 +124,7 @@ namespace Bit.App.Services break; case Enums.PushType.SyncCiphers: case Enums.PushType.SyncVault: - var cipherMessage = JsonConvert.DeserializeObject(data.Payload); + var cipherMessage = JsonConvert.DeserializeObject(data.Payload); if(cipherMessage.UserId != _authService.UserId) { break; @@ -132,7 +132,7 @@ namespace Bit.App.Services _syncService.FullSyncAsync(true); break; case Enums.PushType.SyncSettings: - var domainMessage = JsonConvert.DeserializeObject(data.Payload); + var domainMessage = JsonConvert.DeserializeObject(data.Payload); if(domainMessage.UserId != _authService.UserId) { break; @@ -140,7 +140,7 @@ namespace Bit.App.Services _syncService.SyncSettingsAsync(); break; case Enums.PushType.SyncOrgKeys: - var orgKeysMessage = JsonConvert.DeserializeObject(data.Payload); + var orgKeysMessage = JsonConvert.DeserializeObject(data.Payload); if(orgKeysMessage.UserId != _authService.UserId) { break; @@ -148,7 +148,7 @@ namespace Bit.App.Services _syncService.SyncProfileAsync(); break; case Enums.PushType.LogOut: - var logOutMessage = JsonConvert.DeserializeObject(data.Payload); + var logOutMessage = JsonConvert.DeserializeObject(data.Payload); if(logOutMessage.UserId == _authService.UserId) { _authService.LogOut(null);