IAPNsService.cs 811 B

123456789101112131415161718192021222324
  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. }
  22. }