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 class SyncUserPushNotification
public class UserPushNotification
{
public string UserId { get; set; }
public DateTime Date { get; set; }

View File

@ -124,7 +124,7 @@ namespace Bit.App.Services
break;
case Enums.PushType.SyncCiphers:
case Enums.PushType.SyncVault:
var cipherMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload);
var cipherMessage = JsonConvert.DeserializeObject<UserPushNotification>(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<SyncUserPushNotification>(data.Payload);
var domainMessage = JsonConvert.DeserializeObject<UserPushNotification>(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<SyncUserPushNotification>(data.Payload);
var orgKeysMessage = JsonConvert.DeserializeObject<UserPushNotification>(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<SyncUserPushNotification>(data.Payload);
var logOutMessage = JsonConvert.DeserializeObject<UserPushNotification>(data.Payload);
if(logOutMessage.UserId == _authService.UserId)
{
_authService.LogOut(null);