1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-31 07:33:46 +00:00

new push notification changes and syncing

This commit is contained in:
Kyle Spearrin
2017-04-21 14:57:23 -04:00
parent 1be4f6e20c
commit 439370e25a
7 changed files with 127 additions and 14 deletions

View File

@@ -8,19 +8,24 @@ namespace Bit.App.Models
public PushType Type { get; set; }
}
public abstract class SyncPushNotification : PushNotification
{
public string UserId { get; set; }
}
public class SyncCipherPushNotification : SyncPushNotification
public class SyncCipherPushNotification : PushNotification
{
public string Id { get; set; }
public string UserId { get; set; }
public string OrganizationId { get; set; }
public DateTime RevisionDate { get; set; }
}
public class SyncCiphersPushNotification : SyncPushNotification
public class SyncFolderPushNotification : PushNotification
{
public string Id { get; set; }
public string UserId { get; set; }
public DateTime RevisionDate { get; set; }
}
public class SyncUserPushNotification : PushNotification
{
public string UserId { get; set; }
public DateTime Date { get; set; }
}
}