1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

rename UserPushNotification

This commit is contained in:
Kyle Spearrin 2018-08-28 08:47:47 -04:00
parent 1ec31c6899
commit 430e4dd445
2 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ namespace Bit.App.Models
public DateTime RevisionDate { get; set; } public DateTime RevisionDate { get; set; }
} }
public class SyncUserPushNotification public class UserPushNotification
{ {
public string UserId { get; set; } public string UserId { get; set; }
public DateTime Date { get; set; } public DateTime Date { get; set; }

View File

@ -124,7 +124,7 @@ namespace Bit.App.Services
break; break;
case Enums.PushType.SyncCiphers: case Enums.PushType.SyncCiphers:
case Enums.PushType.SyncVault: case Enums.PushType.SyncVault:
var cipherMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload); var cipherMessage = JsonConvert.DeserializeObject<UserPushNotification>(data.Payload);
if(cipherMessage.UserId != _authService.UserId) if(cipherMessage.UserId != _authService.UserId)
{ {
break; break;
@ -132,7 +132,7 @@ namespace Bit.App.Services
_syncService.FullSyncAsync(true); _syncService.FullSyncAsync(true);
break; break;
case Enums.PushType.SyncSettings: case Enums.PushType.SyncSettings:
var domainMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload); var domainMessage = JsonConvert.DeserializeObject<UserPushNotification>(data.Payload);
if(domainMessage.UserId != _authService.UserId) if(domainMessage.UserId != _authService.UserId)
{ {
break; break;
@ -140,7 +140,7 @@ namespace Bit.App.Services
_syncService.SyncSettingsAsync(); _syncService.SyncSettingsAsync();
break; break;
case Enums.PushType.SyncOrgKeys: case Enums.PushType.SyncOrgKeys:
var orgKeysMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload); var orgKeysMessage = JsonConvert.DeserializeObject<UserPushNotification>(data.Payload);
if(orgKeysMessage.UserId != _authService.UserId) if(orgKeysMessage.UserId != _authService.UserId)
{ {
break; break;
@ -148,7 +148,7 @@ namespace Bit.App.Services
_syncService.SyncProfileAsync(); _syncService.SyncProfileAsync();
break; break;
case Enums.PushType.LogOut: case Enums.PushType.LogOut:
var logOutMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload); var logOutMessage = JsonConvert.DeserializeObject<UserPushNotification>(data.Payload);
if(logOutMessage.UserId == _authService.UserId) if(logOutMessage.UserId == _authService.UserId)
{ {
_authService.LogOut(null); _authService.LogOut(null);