APNsLib.cs 490 B

12345678910111213141516
  1. 
  2. namespace OASystem.API.OAMethodLib.APNs
  3. {
  4. public static class APNsLib
  5. {
  6. private static readonly IAPNsService _APNsService = AutofacIocManager.Instance.GetService<IAPNsService>();
  7. public static bool pushMsg(string apnsTopic, string deviceToken, NotificationType type, string title, string subtitle, string body)
  8. {
  9. _APNsService.PushNotification(apnsTopic, deviceToken, type, title, subtitle, body);
  10. return true;
  11. }
  12. }
  13. }