DocSpace-buildtools/common/ASC.Core.Common/Notify/Push/IPushService.cs

18 lines
582 B
C#
Raw Normal View History

2022-02-15 11:52:43 +00:00
namespace ASC.Core.Common.Notify.Push;
[ServiceContract]
public interface IPushService
2019-05-15 14:56:09 +00:00
{
2022-02-15 11:52:43 +00:00
[OperationContract]
string RegisterDevice(int tenantID, string userID, string token, MobileAppType type);
2019-05-15 14:56:09 +00:00
2022-02-15 11:52:43 +00:00
[OperationContract]
void DeregisterDevice(int tenantID, string userID, string token);
2019-05-15 14:56:09 +00:00
2022-02-15 11:52:43 +00:00
[OperationContract]
void EnqueueNotification(int tenantID, string userID, PushNotification notification, List<string> targetDevices);
2019-05-15 14:56:09 +00:00
2022-02-15 11:52:43 +00:00
[OperationContract]
List<PushNotification> GetFeed(int tenantID, string userID, string deviceToken, DateTime from, DateTime to);
2019-05-15 14:56:09 +00:00
}