tangtaoit 7b0c1bc743 init
2023-05-25 10:32:00 +08:00

51 lines
1.0 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.

//
// WKCMDDB.h
// WuKongIMSDK-WuKongIMSDK
//
// Created by tt on 2020/11/21.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface WKCMDMessage : NSObject
@property(nonatomic,assign) NSInteger mid;
/// 客户端消息唯一编号(相同clientMsgNo被认为是重复消息)
@property(nonatomic,copy) NSString *clientMsgNo;
// 消息ID全局唯一
@property(nonatomic,assign) uint64_t messageId;
// 消息序列号(用户唯一,有序)
@property(nonatomic,assign) uint32_t messageSeq;
// 消息时间(服务器时间,单位秒)
@property(nonatomic,assign) NSInteger timestamp;
@property(nonatomic,copy) NSString *cmd;
@property(nonatomic,copy) NSString *param;
// 是否为系统cmd消息
-(BOOL) same:(WKCMDMessage*)cmdMessage;
@end
@interface WKCMDDB : NSObject
+ (WKCMDDB *)shared;
-(uint32_t) getMaxMessageSeq;
-(void) replaceCMDMessages:(NSArray<WKCMDMessage*>*)messages;
-(NSArray<WKCMDMessage*>*) queryAllCMDMessages;
-(void) deleteCMDMessagesWithIDs:(NSArray<NSNumber*>*) ids;
@end
NS_ASSUME_NONNULL_END