NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQuickComment.h
浏览该文件的文档.
1//
2// NIMQuickComment.h
3// NIMLib
4//
5// Created by He on 2020/4/8.
6// Copyright © 2020 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
13@class NIMMessage;
14
15NS_ASSUME_NONNULL_BEGIN
16
17
18/**
19 * 快捷评论
20 */
21@interface NIMQuickComment : NSObject <NSCopying>
22/**
23 * 评论发送方
24 */
25@property (nonatomic,copy,readonly) NSString *from;
26
27/**
28 * 类型
29 * @discussion 对同一条消息回复相同的replyType将会覆盖之前的回复
30 */
31@property (nonatomic,assign) int64_t replyType;
32
33/**
34 * 回复时间
35 */
36@property (nonatomic,assign,readonly) NSTimeInterval timestamp;
37
38/**
39 * 自定义扩展字段,最大16字符
40 */
41@property (nonatomic,copy,nullable) NSString *ext;
42
43/**
44 * 评论设置
45 */
46@property (nonatomic,strong,nullable) NIMQuickCommentSetting *setting;
47/**
48 * 评论所在的消息
49 */
50@property (nonatomic,strong,readonly) NIMMessage *message;
51/**
52 * 评论所在消息的元信息
53 */
54@property (nonatomic,strong,readonly) NIMChatExtendBasicInfo *basicInfo;
55
56
57@end
58
59/**
60 * 快捷评论推送设置
61 */
62@interface NIMQuickCommentSetting : NSObject <NSCopying>
63/**
64 * 是否需要推送,默认NO,不推送
65 */
66@property (nonatomic,assign) BOOL needPush;
67/**
68 * 是否需要计入未读数,默认NO,不计入
69 */
70@property (nonatomic,assign) BOOL needBadge;
71/**
72 * 推送标题
73 */
74@property (nonatomic,copy,nullable) NSString *pushTitle;
75/**
76 * 推送内容
77 */
78@property (nonatomic,copy,nullable) NSString *pushContent;
79/**
80 * 推送参数设置
81 */
82@property (nonatomic,copy,nullable) NSDictionary *pushPayload;
83
84@end
85
86NS_ASSUME_NONNULL_END
Definition: NIMChatExtendBasicInfo.h:20
Definition: NIMMessage.h:91
Definition: NIMQuickComment.h:21
NSTimeInterval timestamp
Definition: NIMQuickComment.h:36
NIMChatExtendBasicInfo * basicInfo
Definition: NIMQuickComment.h:54
NIMMessage * message
Definition: NIMQuickComment.h:50
NSString * from
Definition: NIMQuickComment.h:25
NSString * ext
Definition: NIMQuickComment.h:41
int64_t replyType
Definition: NIMQuickComment.h:31
NIMQuickCommentSetting * setting
Definition: NIMQuickComment.h:46
Definition: NIMQuickComment.h:62