NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatSearchMsgByPageParam.h
浏览该文件的文档.
1
2
3//
4// NIMQChatSearchMsgByPageParam.h
5// NIMSDK
6//
7// Created by Netease.
8// Copyright © 2022 Netease. All rights reserved.
9//
10
11#import <Foundation/Foundation.h>
12#import "NIMQChatDefs.h"
13
14NS_ASSUME_NONNULL_BEGIN
15
16/**
17 * 分页搜索圈组消息的参数
18 */
19@interface NIMQChatSearchMsgByPageParam : NSObject
20
21/**
22 * 关键字, 可选
23 */
24@property (nullable, nonatomic, strong) NSString *keyword;
25
26/**
27 * 服务器id,可选
28 */
29@property (nonatomic, assign) unsigned long long serverId;
30
31/**
32 * 频道id,可选
33 */
34@property (nonatomic, assign) unsigned long long channelId;
35
36/**
37 * 消息发送者id,可选
38 */
39@property (nullable, nonatomic, strong) NSString *fromAccount;
40
41/**
42 * 开始时间,可选
43 */
44@property (nonatomic, assign) NSTimeInterval fromTime;
45
46/**
47 * 结束时间,可选
48 */
49@property (nonatomic, assign) NSTimeInterval toTime;
50
51/**
52 * 消息类型数组,元素为 NIMMessageType 的NSNumber 包装
53 */
54@property (nonatomic, copy) NSArray <NSNumber *> *msgTypes;
55
56/**
57 * 消息子类型数组, 可选
58 */
59@property (nullable, nonatomic, copy) NSArray <NSNumber *> *subTypes;
60
61/**
62 * 是否包含自己的消息, 可选,默认不包含
63 */
64@property (nonatomic, assign) BOOL includeSelf;
65
66/**
67 * 排序,可选,默认倒序,YES为正序
68 */
69@property (nonatomic, assign) BOOL order;
70
71/**
72 * 查询数量,可选,默认100
73 */
74@property (nonatomic, assign) NSInteger limit;
75
76/**
77 * 排序方式,可选, 默认发送时间方式
78 */
79@property (nonatomic, assign) NIMQChatSearchMessageSortType sortType;
80
81/**
82 * 查询游标,可选
83 */
84@property (nullable, nonatomic, strong) NSString *cursor;
85
86
87@end
88
89
90NS_ASSUME_NONNULL_END
91
92
NIMQChatSearchMessageSortType
Definition: NIMQChatDefs.h:489
Definition: NIMQChatSearchMsgByPageParam.h:20
NSTimeInterval toTime
Definition: NIMQChatSearchMsgByPageParam.h:49
NSTimeInterval fromTime
Definition: NIMQChatSearchMsgByPageParam.h:44
BOOL order
Definition: NIMQChatSearchMsgByPageParam.h:69
NSString * fromAccount
Definition: NIMQChatSearchMsgByPageParam.h:39
NSInteger limit
Definition: NIMQChatSearchMsgByPageParam.h:74
NSString * keyword
Definition: NIMQChatSearchMsgByPageParam.h:24
NSString * cursor
Definition: NIMQChatSearchMsgByPageParam.h:84
BOOL includeSelf
Definition: NIMQChatSearchMsgByPageParam.h:64
unsigned long long serverId
Definition: NIMQChatSearchMsgByPageParam.h:29
NIMQChatSearchMessageSortType sortType
Definition: NIMQChatSearchMsgByPageParam.h:79
NSArray< NSNumber * > * subTypes
Definition: NIMQChatSearchMsgByPageParam.h:59
unsigned long long channelId
Definition: NIMQChatSearchMsgByPageParam.h:34
NSArray< NSNumber * > * msgTypes
Definition: NIMQChatSearchMsgByPageParam.h:54