mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00

Sync notification push type is now used for both Notification create and update. Renamed the event types to specifically mention the purpose of status for notification status updates.
113 lines
2.7 KiB
C#
113 lines
2.7 KiB
C#
#nullable enable
|
|
using Bit.Core.Auth.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.NotificationCenter.Entities;
|
|
using Bit.Core.Tools.Entities;
|
|
using Bit.Core.Vault.Entities;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public class NoopPushNotificationService : IPushNotificationService
|
|
{
|
|
public Task PushSyncCipherCreateAsync(Cipher cipher, IEnumerable<Guid> collectionIds)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncCipherDeleteAsync(Cipher cipher)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncCiphersAsync(Guid userId)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncCipherUpdateAsync(Cipher cipher, IEnumerable<Guid> collectionIds)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncFolderCreateAsync(Folder folder)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncFolderDeleteAsync(Folder folder)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncFolderUpdateAsync(Folder folder)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncOrganizationsAsync(Guid userId)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncOrgKeysAsync(Guid userId)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncSettingsAsync(Guid userId)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncVaultAsync(Guid userId)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushLogOutAsync(Guid userId, bool excludeCurrentContext = false)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncSendCreateAsync(Send send)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncSendDeleteAsync(Send send)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncSendUpdateAsync(Send send)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string? identifier,
|
|
string? deviceId = null, ClientType? clientType = null)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushAuthRequestAsync(AuthRequest authRequest)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushAuthRequestResponseAsync(AuthRequest authRequest)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string? identifier,
|
|
string? deviceId = null, ClientType? clientType = null)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task PushSyncNotificationAsync(Notification notification) => Task.CompletedTask;
|
|
|
|
public Task PushSyncNotificationStatusAsync(Notification notification, NotificationStatus notificationStatus) => Task.CompletedTask;
|
|
}
|