2022-02-15 11:52:43 +00:00
|
|
|
namespace ASC.Core.Common.Notify.Push;
|
|
|
|
|
|
|
|
public class PushServiceClient : BaseWcfClient<IPushService>, IPushService
|
2019-05-15 14:56:09 +00:00
|
|
|
{
|
2022-02-15 11:52:43 +00:00
|
|
|
public 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
|
|
|
return Channel.RegisterDevice(tenantID, userID, token, type);
|
|
|
|
}
|
2019-05-15 14:56:09 +00:00
|
|
|
|
2022-02-15 11:52:43 +00:00
|
|
|
public void DeregisterDevice(int tenantID, string userID, string token)
|
|
|
|
{
|
|
|
|
Channel.DeregisterDevice(tenantID, userID, token);
|
|
|
|
}
|
2019-05-15 14:56:09 +00:00
|
|
|
|
2022-02-15 11:52:43 +00:00
|
|
|
public void EnqueueNotification(int tenantID, string userID, PushNotification notification, List<string> targetDevices)
|
|
|
|
{
|
|
|
|
Channel.EnqueueNotification(tenantID, userID, notification, targetDevices);
|
|
|
|
}
|
2019-05-15 14:56:09 +00:00
|
|
|
|
2022-02-15 11:52:43 +00:00
|
|
|
public List<PushNotification> GetFeed(int tenantID, string userID, string deviceToken, DateTime from, DateTime to)
|
|
|
|
{
|
|
|
|
return Channel.GetFeed(tenantID, userID, deviceToken, from, to);
|
2019-05-15 14:56:09 +00:00
|
|
|
}
|
|
|
|
}
|