Files
server/src/Core/Models/PushNotification.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
C#
Raw Normal View History

using Bit.Core.Enums;
namespace Bit.Core.Models;
2022-08-29 16:06:55 -04:00
public class PushNotificationData<T>
{
2018-08-02 17:23:37 -04:00
public PushNotificationData(PushType type, T payload, string contextId)
{
2018-08-02 17:23:37 -04:00
Type = type;
Payload = payload;
ContextId = contextId;
}
public PushType Type { get; set; }
public T Payload { get; set; }
public string ContextId { get; set; }
}
2018-08-28 08:22:49 -04:00
public class SyncCipherPushNotification
{
public Guid Id { get; set; }
public Guid? UserId { get; set; }
public Guid? OrganizationId { get; set; }
public IEnumerable<Guid> CollectionIds { get; set; }
public DateTime RevisionDate { get; set; }
}
public class SyncFolderPushNotification
2022-08-29 14:53:16 -04:00
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public DateTime RevisionDate { get; set; }
2022-08-29 14:53:16 -04:00
}
public class UserPushNotification
2022-08-29 16:06:55 -04:00
{
public Guid UserId { get; set; }
public DateTime Date { get; set; }
2022-08-29 16:06:55 -04:00
}
public class SyncSendPushNotification
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public DateTime RevisionDate { get; set; }
}