IAPNsService.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace OASystem.API.OAMethodLib.APNs
  2. {
  3. public interface IAPNsService
  4. {
  5. /// <summary>
  6. /// 生成 APNs JWT token
  7. /// </summary>
  8. /// <returns></returns>
  9. string GetnerateAPNsJWTToken();
  10. /// <summary>
  11. /// 发送推送通知
  12. /// </summary>
  13. /// <param name="apnsTopic">APP Id</param>
  14. /// <param name="deviceToken">设备标识</param>
  15. /// <param name="type">通知类型</param>
  16. /// <param name="title">标题</param>
  17. /// <param name="subtitle">子标题</param>
  18. /// <param name="body">通知内容</param>
  19. /// <returns></returns>
  20. Task<Result> PushNotification(string apnsTopic, string deviceToken, NotificationType type, string title, string subtitle, string body);
  21. /// <summary>
  22. /// 发送推送通知
  23. /// </summary>
  24. /// <param name="apnsTopic">APP Id</param>
  25. /// <param name="deviceToken">设备标识</param>
  26. /// <param name="type">通知类型</param>
  27. /// <param name="title">标题</param>
  28. /// <param name="subtitle">子标题</param>
  29. /// <param name="body">通知内容</param>
  30. /// <returns></returns>
  31. Task<Result> PushNotification1(string apnsTopic, string deviceToken, NotificationType type, string title, string subtitle, string body, bool isTarget, string viewCode, PageParam_PriceAuditH5 pageParam);
  32. }
  33. }