mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
67 lines
1.6 KiB
C#
67 lines
1.6 KiB
C#
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Models;
|
|
|
|
public class PushNotificationData<T>
|
|
{
|
|
public PushNotificationData(PushType type, T payload, string contextId)
|
|
{
|
|
Type = type;
|
|
Payload = payload;
|
|
ContextId = contextId;
|
|
}
|
|
|
|
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; }
|
|
}
|
|
|
|
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; }
|
|
}
|
|
|
|
public class AuthRequestPushNotification
|
|
{
|
|
public Guid UserId { get; set; }
|
|
public Guid Id { get; set; }
|
|
}
|
|
|
|
public class OrganizationStatusPushNotification
|
|
{
|
|
public Guid OrganizationId { get; set; }
|
|
public bool Enabled { get; set; }
|
|
}
|
|
|
|
public class OrganizationCollectionManagementPushNotification
|
|
{
|
|
public Guid OrganizationId { get; init; }
|
|
public bool LimitCollectionCreation { get; init; }
|
|
public bool LimitCollectionDeletion { get; init; }
|
|
public bool LimitItemDeletion { get; init; }
|
|
}
|