2018-10-26 12:08:25 +03:00
|
|
|
//
|
|
|
|
// NCNotification.h
|
|
|
|
// VideoCalls
|
|
|
|
//
|
|
|
|
// Created by Ivan Sein on 23.10.18.
|
|
|
|
// Copyright © 2018 struktur AG. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
typedef enum NCNotificationType {
|
|
|
|
kNCNotificationTypeRoom = 0,
|
|
|
|
kNCNotificationTypeChat,
|
|
|
|
kNCNotificationTypeCall
|
|
|
|
} NCNotificationType;
|
|
|
|
|
|
|
|
@interface NCNotification : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, assign) NSInteger notificationId;
|
|
|
|
@property (nonatomic, strong) NSString *objectId;
|
|
|
|
@property (nonatomic, strong) NSString *objectType;
|
|
|
|
@property (nonatomic, strong) NSString *subject;
|
|
|
|
@property (nonatomic, strong) NSString *subjectRich;
|
|
|
|
@property (nonatomic, strong) NSDictionary *subjectRichParameters;
|
|
|
|
@property (nonatomic, strong) NSString *message;
|
|
|
|
@property (nonatomic, strong) NSString *messageRich;
|
|
|
|
@property (nonatomic, strong) NSDictionary *messageRichParameters;
|
|
|
|
|
|
|
|
+ (instancetype)notificationWithDictionary:(NSDictionary *)notificationDict;
|
|
|
|
- (NCNotificationType)notificationType;
|
2019-07-17 11:38:46 +03:00
|
|
|
- (NSString *)chatMessageAuthor;
|
2018-10-26 12:08:25 +03:00
|
|
|
- (NSString *)chatMessageTitle;
|
2019-01-18 18:10:31 +03:00
|
|
|
- (NSString *)callDisplayName;
|
2018-10-26 12:08:25 +03:00
|
|
|
|
|
|
|
@end
|