2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Enums;
|
2017-05-30 00:02:20 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-05-30 00:02:20 -04:00
|
|
|
|
public class PushNotificationData<T>
|
|
|
|
|
|
{
|
2018-08-02 17:23:37 -04:00
|
|
|
|
public PushNotificationData(PushType type, T payload, string contextId)
|
2017-05-30 00:02:20 -04:00
|
|
|
|
{
|
2018-08-02 17:23:37 -04:00
|
|
|
|
Type = type;
|
|
|
|
|
|
Payload = payload;
|
|
|
|
|
|
ContextId = contextId;
|
2017-05-30 00:02:20 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PushType Type { get; set; }
|
|
|
|
|
|
public T Payload { get; set; }
|
2018-08-21 09:29:38 -04:00
|
|
|
|
public string ContextId { get; set; }
|
2017-05-30 00:02:20 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2018-08-28 08:22:49 -04:00
|
|
|
|
public class SyncCipherPushNotification
|
2017-05-30 00:02:20 -04:00
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public Guid? UserId { get; set; }
|
|
|
|
|
|
public Guid? OrganizationId { get; set; }
|
2018-08-21 09:29:38 -04:00
|
|
|
|
public IEnumerable<Guid> CollectionIds { get; set; }
|
2017-05-30 00:02:20 -04:00
|
|
|
|
public DateTime RevisionDate { get; set; }
|
|
|
|
|
|
}
|
2021-01-22 16:16:40 -05:00
|
|
|
|
|
2017-05-30 00:02:20 -04:00
|
|
|
|
public class SyncFolderPushNotification
|
2022-08-29 14:53:16 -04:00
|
|
|
|
{
|
2017-05-30 00:02:20 -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
|
|
|
|
}
|
|
|
|
|
|
|
2017-05-30 00:02:20 -04:00
|
|
|
|
public class UserPushNotification
|
2022-08-29 16:06:55 -04:00
|
|
|
|
{
|
2017-05-30 00:02:20 -04:00
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
public DateTime Date { get; set; }
|
2022-08-29 16:06:55 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-01-22 16:16:40 -05:00
|
|
|
|
public class SyncSendPushNotification
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
public DateTime RevisionDate { get; set; }
|
2017-05-30 00:02:20 -04:00
|
|
|
|
}
|
2022-09-26 13:21:13 -04:00
|
|
|
|
|
|
|
|
|
|
public class AuthRequestPushNotification
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
}
|