2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2017-08-11 10:04:59 -04:00
|
|
|
|
using Bit.Core.Enums;
|
2016-06-29 01:15:37 -04:00
|
|
|
|
|
2022-08-29 14:53:16 -04:00
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IPushNotificationService
|
2016-06-18 15:08:21 -04:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
Task PushSyncCipherCreateAsync(Cipher cipher, IEnumerable<Guid> collectionIds);
|
|
|
|
|
|
Task PushSyncCipherUpdateAsync(Cipher cipher, IEnumerable<Guid> collectionIds);
|
|
|
|
|
|
Task PushSyncCipherDeleteAsync(Cipher cipher);
|
|
|
|
|
|
Task PushSyncFolderCreateAsync(Folder folder);
|
|
|
|
|
|
Task PushSyncFolderUpdateAsync(Folder folder);
|
|
|
|
|
|
Task PushSyncFolderDeleteAsync(Folder folder);
|
|
|
|
|
|
Task PushSyncCiphersAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncVaultAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncOrgKeysAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncSettingsAsync(Guid userId);
|
|
|
|
|
|
Task PushLogOutAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncSendCreateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendUpdateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendDeleteAsync(Send send);
|
|
|
|
|
|
Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier, string deviceId = null);
|
|
|
|
|
|
Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string identifier,
|
|
|
|
|
|
string deviceId = null);
|
2016-06-18 15:08:21 -04:00
|
|
|
|
}
|