1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-02 08:33:17 +00:00

support new push models

This commit is contained in:
Kyle Spearrin
2017-05-26 22:55:48 -04:00
parent 8f7c4951b8
commit 6a1ff56e7b
2 changed files with 29 additions and 18 deletions

View File

@@ -1,14 +1,20 @@
using System;
using Bit.App.Enums;
using Newtonsoft.Json.Linq;
namespace Bit.App.Models
{
public class PushNotification
public class PushNotificationData
{
public PushType Type { get; set; }
}
public class SyncCipherPushNotification : PushNotification
public class PushNotificationDataPayload : PushNotificationData
{
public string Payload { get; set; }
}
public class SyncCipherPushNotification
{
public string Id { get; set; }
public string UserId { get; set; }
@@ -16,14 +22,14 @@ namespace Bit.App.Models
public DateTime RevisionDate { get; set; }
}
public class SyncFolderPushNotification : PushNotification
public class SyncFolderPushNotification
{
public string Id { get; set; }
public string UserId { get; set; }
public DateTime RevisionDate { get; set; }
}
public class SyncUserPushNotification : PushNotification
public class SyncUserPushNotification
{
public string UserId { get; set; }
public DateTime Date { get; set; }