NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatSearchServerByPageParam.h
浏览该文件的文档.
1//
2// Created by chenjili on 2022/4/28.
3// Copyright (c) 2022 Netease. All rights reserved.
4//
5
6#import <Foundation/Foundation.h>
7#import "NIMQChatDefs.h"
8
9NS_ASSUME_NONNULL_BEGIN
10/**
11 * 检索服务器列表的参数
12 */
13@interface NIMQChatSearchServerByPageParam : NSObject <NSCopying>
14/**
15 * 检索关键字,目标检索服务器名称
16 */
17@property(nonnull, nonatomic, copy) NSString* keyword;
18
19/**
20 * 排序规则 true:正序;false:反序
21 */
22@property(nonatomic, assign) BOOL asc;
23
24/**
25 * 搜索类型,广场搜索1,个人服务器搜索2
26 */
27@property(nonatomic, assign) NIMQChatSearchServerType searchType;
28
29/**
30 * 查询时间范围的开始时间,单位s
31 */
32@property(nullable, nonatomic, copy) NSNumber *startTime;
33
34/**
35 * 查询时间范围的结束时间,要求比开始时间大,单位s
36 */
37@property(nullable, nonatomic, copy) NSNumber * endTime;
38
39/**
40 * 检索返回的最大记录数,最大和默认都是100
41 */
42@property(nullable, nonatomic, copy) NSNumber * limit;
43
44/**
45 * 服务器类型列表,服务器类型为正整数
46 */
47@property(nullable, nonatomic, copy) NSArray<NSNumber *> *serverTypes;
48
49/**
50 * 返回值的排序类型
51 */
52@property(nonatomic, assign) NIMQChatSearchServerSortType sortType;
53
54/**
55 * 查询游标,查询的起始位置,上一次查询会返回cursor字段
56 */
57@property(nullable, nonatomic, copy) NSString *cursor;
58
59@end
60NS_ASSUME_NONNULL_END
NIMQChatSearchServerType
Definition: NIMQChatDefs.h:467
NIMQChatSearchServerSortType
Definition: NIMQChatDefs.h:472
Definition: NIMQChatSearchServerByPageParam.h:13
BOOL asc
Definition: NIMQChatSearchServerByPageParam.h:22
NSArray< NSNumber * > * serverTypes
Definition: NIMQChatSearchServerByPageParam.h:47
NIMQChatSearchServerSortType sortType
Definition: NIMQChatSearchServerByPageParam.h:52
NSNumber * endTime
Definition: NIMQChatSearchServerByPageParam.h:37
NSString * cursor
Definition: NIMQChatSearchServerByPageParam.h:57
NIMQChatSearchServerType searchType
Definition: NIMQChatSearchServerByPageParam.h:27
NSString * keyword
Definition: NIMQChatSearchServerByPageParam.h:17
NSNumber * limit
Definition: NIMQChatSearchServerByPageParam.h:42
NSNumber * startTime
Definition: NIMQChatSearchServerByPageParam.h:32