NCPushNotification.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. extern NSString * const NCPushNotificationJoinChatNotification;
  24. extern NSString * const NCPushNotificationJoinAudioCallAcceptedNotification;
  25. extern NSString * const NCPushNotificationJoinVideoCallAcceptedNotification;
  26. @interface NCPushNotification : NSObject
  27. @property (nonatomic, copy) NSString *app;
  28. @property (nonatomic, assign) NCPushNotificationType type;
  29. @property (nonatomic, copy) NSString *subject;
  30. @property (nonatomic, assign) NSInteger pnId;
  31. + (instancetype)pushNotificationFromDecryptedString:(NSString *)decryptedString;
  32. - (NSString *)bodyForRemoteAlerts;
  33. @end