NIMSDK-iOS
载入中...
搜索中...
未找到
V2NIMCustomNotification.h
浏览该文件的文档.
1//
2// V2NIMCustomNotification.h
3// NIMSDK
4//
5// Created by 齐洪茹 on 2023/8/30.
6// Copyright © 2023 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
11
16
17NS_ASSUME_NONNULL_BEGIN
18
19/// 自定义通知
20/// SDK只负责传输, 不处理业务逻辑,客户可以采用发送自身相关的业务信息
21@interface V2NIMCustomNotification : NSObject
22/// 通知发送者账号
23@property(nullable,nonatomic,strong,readonly) NSString *senderId;
24/// 通知接收者账号
25@property(nullable,nonatomic,strong,readonly) NSString *receiverId;
26/// 通知所属会话类型
27@property(nonatomic,assign,readonly) V2NIMConversationType conversationType;
28/// 时间戳,客户设置时间戳
29@property(nonatomic,assign,readonly) NSTimeInterval timestamp;
30/// 通知内容,最大4096
31@property(nullable,nonatomic,strong,readonly) NSString *content;
32/// 通知相关配置,具体参见每一个字段定义
33@property(nullable,nonatomic,strong,readonly) V2NIMNotificationConfig *notificationConfig;
34/// 离线推送配置相关
35@property(nullable,nonatomic,strong,readonly) V2NIMNotificationPushConfig *pushConfig;
36/// 反垃圾相关配置
37@property(nullable,nonatomic,strong,readonly) V2NIMNotificationAntispamConfig *antispamConfig;
38/// 反垃圾相关配置
39@property(nullable,nonatomic,strong,readonly) V2NIMNotificationRouteConfig *routeConfig;
40@end
41
42NS_ASSUME_NONNULL_END
V2NIMConversationType
会话类型
Definition: V2NIMConversationEnum.h:14
Definition: V2NIMCustomNotification.h:22
V2NIMConversationType conversationType
通知所属会话类型
Definition: V2NIMCustomNotification.h:27
NSString * content
通知内容,最大4096
Definition: V2NIMCustomNotification.h:31
NSString * receiverId
通知接收者账号
Definition: V2NIMCustomNotification.h:25
V2NIMNotificationConfig * notificationConfig
通知相关配置,具体参见每一个字段定义
Definition: V2NIMCustomNotification.h:33
V2NIMNotificationRouteConfig * routeConfig
反垃圾相关配置
Definition: V2NIMCustomNotification.h:39
NSString * senderId
通知发送者账号
Definition: V2NIMCustomNotification.h:23
V2NIMNotificationPushConfig * pushConfig
离线推送配置相关
Definition: V2NIMCustomNotification.h:35
V2NIMNotificationAntispamConfig * antispamConfig
反垃圾相关配置
Definition: V2NIMCustomNotification.h:37
NSTimeInterval timestamp
时间戳,客户设置时间戳
Definition: V2NIMCustomNotification.h:29
Definition: V2NIMNotificationAntispamConfig.h:14
通知相关配置
Definition: V2NIMNotificationConfig.h:15
通知推送相关配置
Definition: V2NIMNotificationPushConfig.h:15
路由抄送相关配置
Definition: V2NIMNotificationRouteConfig.h:15