2017-08-11 08:57:31 -04:00
|
|
|
|
using System.Collections.Generic;
|
2017-05-26 00:50:27 -04:00
|
|
|
|
using System.Threading.Tasks;
|
2017-08-11 08:57:31 -04:00
|
|
|
|
using Bit.Core.Enums;
|
2017-05-26 00:50:27 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IPushRegistrationService
|
|
|
|
|
|
{
|
2017-08-11 08:57:31 -04:00
|
|
|
|
Task CreateOrUpdateRegistrationAsync(string pushToken, string deviceId, string userId,
|
|
|
|
|
|
string identifier, DeviceType type);
|
|
|
|
|
|
Task DeleteRegistrationAsync(string deviceId);
|
|
|
|
|
|
Task AddUserRegistrationOrganizationAsync(IEnumerable<string> deviceIds, string organizationId);
|
|
|
|
|
|
Task DeleteUserRegistrationOrganizationAsync(IEnumerable<string> deviceIds, string organizationId);
|
2017-05-26 00:50:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|