2023-04-14 13:25:56 -04:00
|
|
|
|
using Bit.Core.Auth.Entities;
|
2017-08-11 10:04:59 -04:00
|
|
|
|
using Bit.Core.Enums;
|
2023-04-18 14:05:17 +02:00
|
|
|
|
using Bit.Core.Tools.Entities;
|
2023-03-02 13:23:38 -05:00
|
|
|
|
using Bit.Core.Vault.Entities;
|
2016-06-29 01:15:37 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-05-26 09:44:54 -04:00
|
|
|
|
public interface IPushNotificationService
|
2016-06-18 15:08:21 -04:00
|
|
|
|
{
|
2018-08-21 09:29:38 -04:00
|
|
|
|
Task PushSyncCipherCreateAsync(Cipher cipher, IEnumerable<Guid> collectionIds);
|
|
|
|
|
|
Task PushSyncCipherUpdateAsync(Cipher cipher, IEnumerable<Guid> collectionIds);
|
2016-06-29 01:15:37 -04:00
|
|
|
|
Task PushSyncCipherDeleteAsync(Cipher cipher);
|
2017-04-21 14:22:32 -04:00
|
|
|
|
Task PushSyncFolderCreateAsync(Folder folder);
|
|
|
|
|
|
Task PushSyncFolderUpdateAsync(Folder folder);
|
|
|
|
|
|
Task PushSyncFolderDeleteAsync(Folder folder);
|
2016-06-29 01:15:37 -04:00
|
|
|
|
Task PushSyncCiphersAsync(Guid userId);
|
2017-04-21 14:22:32 -04:00
|
|
|
|
Task PushSyncVaultAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncOrgKeysAsync(Guid userId);
|
|
|
|
|
|
Task PushSyncSettingsAsync(Guid userId);
|
2022-11-24 11:25:16 -05:00
|
|
|
|
Task PushLogOutAsync(Guid userId, bool excludeCurrentContextFromPush = false);
|
2021-01-22 16:16:40 -05:00
|
|
|
|
Task PushSyncSendCreateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendUpdateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendDeleteAsync(Send send);
|
2022-09-26 13:21:13 -04:00
|
|
|
|
Task PushAuthRequestAsync(AuthRequest authRequest);
|
|
|
|
|
|
Task PushAuthRequestResponseAsync(AuthRequest authRequest);
|
2019-03-19 00:39:03 -04:00
|
|
|
|
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
|
|
|
|
}
|