mirror of
https://github.com/bitwarden/server.git
synced 2025-06-15 07:20:49 -05:00

* WIP registration updates * fix deviceHubs * addHub inline in ctor * adjust setttings for hub reg * send to all clients * fix multiservice push * use notification hub type * feedback --------- Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
13 lines
559 B
C#
13 lines
559 B
C#
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface IPushRegistrationService
|
|
{
|
|
Task CreateOrUpdateRegistrationAsync(string pushToken, string deviceId, string userId,
|
|
string identifier, DeviceType type);
|
|
Task DeleteRegistrationAsync(string deviceId, DeviceType type);
|
|
Task AddUserRegistrationOrganizationAsync(IEnumerable<KeyValuePair<string, DeviceType>> devices, string organizationId);
|
|
Task DeleteUserRegistrationOrganizationAsync(IEnumerable<KeyValuePair<string, DeviceType>> devices, string organizationId);
|
|
}
|