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

59 lines
1.4 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.

//
// NIMQChatGetThreadMessagesParam.h
// NIMSDK
//
// Created by Netease.
// Copyright © 2022 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
@class NIMQChatMessage;
NS_ASSUME_NONNULL_BEGIN
/**
* 从服务端查询thread聊天的历史的参数类型
*/
@interface NIMQChatGetThreadMessagesParam : NSObject
/**
* 定位圈组消息
*/
@property(nonatomic, copy) NIMQChatMessage *message;
/**
* 起始时间 - NSTimeInterval
* 起始时间 < 结束时间
*/
@property(nonatomic, assign) NSTimeInterval fromTime;
/**
* 结束时间 - NSTimeInterval
* 结束时间 > 起始时间
*/
@property(nonatomic, copy) NSNumber *toTime;
/**
* 需要排除的消息服务端ID - NSString
* 如果reverse为NO则查询起点为toTime如果reverse为YES则查询起点为fromTime
* 如果查询起点上有多条消息可以通过excludeMsgId来指定实际的起始消息为excludeMsgId对应的消息的下一条
*/
@property(nonatomic, copy) NSString *excludeMsgId;
/**
* 条数限制 - NSInteger
*/
@property(nonatomic, copy) NSNumber *limit;
/**
* 是否反向 - BOOL
* NO(默认)从toTime往fromTime查询不包括fromTime上的消息包括toTime上的消息
* YES从fromTime往toTime查询包括fromTime上的消息包括toTime上的消息
*/
@property(nonatomic, copy) NSNumber *reverse;
@end
NS_ASSUME_NONNULL_END