2024-11-21 21:39:28 +00:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Bit.Core.Auth.Entities;
|
2017-08-11 10:04:59 -04:00
|
|
|
|
using Bit.Core.Enums;
|
2024-10-21 14:58:57 +01:00
|
|
|
|
using Bit.Core.NotificationCenter.Entities;
|
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;
|
2017-01-20 22:29:01 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-01-20 22:29:01 -05:00
|
|
|
|
public class NoopPushNotificationService : IPushNotificationService
|
|
|
|
|
|
{
|
2018-08-21 09:29:38 -04:00
|
|
|
|
public Task PushSyncCipherCreateAsync(Cipher cipher, IEnumerable<Guid> collectionIds)
|
2017-01-20 22:29:01 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-01-20 22:29:01 -05:00
|
|
|
|
public Task PushSyncCipherDeleteAsync(Cipher cipher)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-01-20 22:29:01 -05:00
|
|
|
|
public Task PushSyncCiphersAsync(Guid userId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2018-08-21 09:29:38 -04:00
|
|
|
|
public Task PushSyncCipherUpdateAsync(Cipher cipher, IEnumerable<Guid> collectionIds)
|
2017-01-20 22:29:01 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncFolderCreateAsync(Folder folder)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncFolderDeleteAsync(Folder folder)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncFolderUpdateAsync(Folder folder)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2024-02-14 04:15:07 +10:00
|
|
|
|
public Task PushSyncOrganizationsAsync(Guid userId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncOrgKeysAsync(Guid userId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncSettingsAsync(Guid userId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-04-21 14:23:14 -04:00
|
|
|
|
public Task PushSyncVaultAsync(Guid userId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2022-11-24 11:25:16 -05:00
|
|
|
|
public Task PushLogOutAsync(Guid userId, bool excludeCurrentContext = false)
|
2018-08-28 08:22:49 -04:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2021-01-22 16:16:40 -05:00
|
|
|
|
public Task PushSyncSendCreateAsync(Send send)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2021-01-22 16:16:40 -05:00
|
|
|
|
public Task PushSyncSendDeleteAsync(Send send)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2021-01-22 16:16:40 -05:00
|
|
|
|
public Task PushSyncSendUpdateAsync(Send send)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2024-11-21 23:05:46 +00:00
|
|
|
|
public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string? identifier,
|
2024-11-21 21:39:28 +00:00
|
|
|
|
string? deviceId = null, ClientType? clientType = null)
|
2017-08-11 10:04:59 -04:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2022-09-26 13:21:13 -04:00
|
|
|
|
public Task PushAuthRequestAsync(AuthRequest authRequest)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Task PushAuthRequestResponseAsync(AuthRequest authRequest)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-25 18:05:29 +00:00
|
|
|
|
public Task SendPayloadToInstallationAsync(string installationId, PushType type, object payload, string? identifier,
|
|
|
|
|
|
string? deviceId = null, ClientType? clientType = null) => Task.CompletedTask;
|
|
|
|
|
|
|
2024-11-21 23:05:46 +00:00
|
|
|
|
public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string? identifier,
|
2024-11-21 21:39:28 +00:00
|
|
|
|
string? deviceId = null, ClientType? clientType = null)
|
2017-08-11 10:04:59 -04:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
2017-01-20 22:29:01 -05:00
|
|
|
|
}
|
2024-10-21 14:58:57 +01:00
|
|
|
|
|
2024-11-21 22:43:14 +00:00
|
|
|
|
public Task PushSyncNotificationCreateAsync(Notification notification) => Task.CompletedTask;
|
2024-11-21 21:39:28 +00:00
|
|
|
|
|
2024-11-25 18:05:29 +00:00
|
|
|
|
public Task PushSyncNotificationUpdateAsync(Notification notification, NotificationStatus? notificationStatus) =>
|
|
|
|
|
|
Task.CompletedTask;
|
2017-01-20 22:29:01 -05:00
|
|
|
|
}
|