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

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

50 lines
1.3 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using Bit.Core.Enums;
namespace Bit.Core.Models
{
2018-08-02 17:23:37 -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;
}
2021-12-16 15:35:09 +01:00
2018-08-02 17:23:37 -04:00
public PushType Type { get; set; }
public T Payload { get; set; }
public string ContextId { get; set; }
}
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
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public DateTime RevisionDate { get; set; }
}
2018-08-28 08:22:49 -04:00
public class UserPushNotification
{
public Guid UserId { get; set; }
public DateTime Date { get; set; }
}
public class SyncSendPushNotification
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public DateTime RevisionDate { get; set; }
}
}