2016-06-29 01:15:37 -04:00
|
|
|
|
using System;
|
2018-08-21 09:29:38 -04:00
|
|
|
|
using System.Collections.Generic;
|
2016-06-29 01:15:37 -04:00
|
|
|
|
using System.Threading.Tasks;
|
2022-01-11 10:40:51 +01: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
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
2016-06-18 15:08:21 -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);
|
2018-08-28 08:22:49 -04:00
|
|
|
|
Task PushLogOutAsync(Guid userId);
|
2021-01-22 16:16:40 -05:00
|
|
|
|
Task PushSyncSendCreateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendUpdateAsync(Send send);
|
|
|
|
|
|
Task PushSyncSendDeleteAsync(Send send);
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|