2025-10-09 16:48:46 +08:00

93 lines
1.6 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// NIMQChatSearchMsgByPageParam.h
// NIMSDK
//
// Created by Netease.
// Copyright © 2022 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NIMQChatDefs.h"
NS_ASSUME_NONNULL_BEGIN
/**
* 分页搜索圈组消息的参数
*/
@interface NIMQChatSearchMsgByPageParam : NSObject
/**
* 关键字, 可选
*/
@property (nullable, nonatomic, strong) NSString *keyword;
/**
* 服务器id可选
*/
@property (nonatomic, assign) unsigned long long serverId;
/**
* 频道id可选
*/
@property (nonatomic, assign) unsigned long long channelId;
/**
* 消息发送者id可选
*/
@property (nullable, nonatomic, strong) NSString *fromAccount;
/**
* 开始时间,可选
*/
@property (nonatomic, assign) NSTimeInterval fromTime;
/**
* 结束时间,可选
*/
@property (nonatomic, assign) NSTimeInterval toTime;
/**
* 消息类型数组,元素为 NIMMessageType 的NSNumber 包装
*/
@property (nonatomic, copy) NSArray <NSNumber *> *msgTypes;
/**
* 消息子类型数组, 可选
*/
@property (nullable, nonatomic, copy) NSArray <NSNumber *> *subTypes;
/**
* 是否包含自己的消息, 可选,默认不包含
*/
@property (nonatomic, assign) BOOL includeSelf;
/**
* 排序可选默认倒序YES为正序
*/
@property (nonatomic, assign) BOOL order;
/**
* 查询数量可选默认100
*/
@property (nonatomic, assign) NSInteger limit;
/**
* 排序方式,可选, 默认发送时间方式
*/
@property (nonatomic, assign) NIMQChatSearchMessageSortType sortType;
/**
* 查询游标,可选
*/
@property (nullable, nonatomic, strong) NSString *cursor;
@end
NS_ASSUME_NONNULL_END