mirror of
https://github.com/bitwarden/server.git
synced 2026-02-10 10:55:10 +08:00
* Move PushType to Platform Folder - Move the PushType next to the rest of push notification code - Specifically exclude it from needing Platform code review - Add tests establishing rules Platform has for usage of this enum, making it safe to have no owner * Move NotificationHub code into Platform/Push directory * Update NotificationHub namespace imports * Add attribute for storing push type metadata * Rename Push Engines to have PushEngine suffix * Move Push Registration items to their own directory * Push code move * Add expected usage comment * Add Push feature registration method - Make method able to be called multipes times with no ill effects * Add Push Registration service entrypoint and tests * Use new service entrypoints * Test changes
18 lines
622 B
C#
18 lines
622 B
C#
using Bit.Core.Auth.Models.Api.Request;
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Platform.PushRegistration;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface IDeviceService
|
|
{
|
|
Task SaveAsync(WebPushRegistrationData webPush, Device device, IEnumerable<string> organizationIds);
|
|
Task SaveAsync(Device device);
|
|
Task ClearTokenAsync(Device device);
|
|
Task DeactivateAsync(Device device);
|
|
Task UpdateDevicesTrustAsync(string currentDeviceIdentifier,
|
|
Guid currentUserId,
|
|
DeviceKeysUpdateRequestModel currentDeviceUpdate,
|
|
IEnumerable<OtherDeviceKeysUpdateRequestModel> alteredDevices);
|
|
}
|