NCPushNotification.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // NCPushNotification.h
  3. // VideoCalls
  4. //
  5. // Created by Ivan Sein on 24.11.17.
  6. // Copyright © 2017 struktur AG. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSInteger, NCPushNotificationType) {
  10. NCPushNotificationTypeUnknown,
  11. NCPushNotificationTypeCall,
  12. NCPushNotificationTypeRoom,
  13. NCPushNotificationTypeChat,
  14. NCPushNotificationTypeComment
  15. };
  16. extern NSString * const kNCPNAppKey;
  17. extern NSString * const kNCPNTypeKey;
  18. extern NSString * const kNCPNSubjectKey;
  19. extern NSString * const kNCPNIdKey;
  20. extern NSString * const kNCPNTypeCallKey;
  21. extern NSString * const kNCPNTypeRoomKey;
  22. extern NSString * const kNCPNTypeChatKey;
  23. @interface NCPushNotification : NSObject
  24. @property (nonatomic, copy) NSString *app;
  25. @property (nonatomic, assign) NCPushNotificationType type;
  26. @property (nonatomic, copy) NSString *subject;
  27. @property (nonatomic, assign) NSInteger pnId;
  28. + (instancetype)pushNotificationFromDecryptedString:(NSString *)decryptedString;
  29. - (NSString *)bodyForRemoteAlerts;
  30. @end