mirror of
https://github.com/WuKongIM/WuKongIMiOSSDK-Framework
synced 2025-06-01 05:57:40 +00:00
55 lines
1.4 KiB
Objective-C
55 lines
1.4 KiB
Objective-C
//
|
|
// WKReminder.h
|
|
// WuKongIMSDK
|
|
//
|
|
// Created by tt on 2022/4/19.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "WKChannel.h"
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef enum : NSUInteger {
|
|
WKReminderTypeMentionMe = 1, // 有人@我
|
|
} WKReminderType;
|
|
|
|
typedef enum : NSUInteger {
|
|
WKReminderUploadStatusSuccess, // 成功
|
|
WKReminderUploadStatusWait, // 等待上传
|
|
WKReminderUploadStatusError, // 上传错误
|
|
} WKReminderUploadStatus; // 提醒项上传状态
|
|
|
|
@interface WKReminder : NSObject<NSCopying>
|
|
|
|
@property(nonatomic,assign) int64_t reminderID;
|
|
@property(nonatomic,assign) uint64_t messageId;
|
|
@property(nonatomic,assign) uint32_t messageSeq; // 消息序列号(用户唯一,有序)
|
|
@property(nonatomic,strong) WKChannel *channel; // 频道
|
|
@property(nonatomic,assign) WKReminderType type; // 提醒类型
|
|
@property(nonatomic,copy) NSString *publisher; // 发布者uid
|
|
|
|
@property(nonatomic,copy) NSString *text; // 提醒文本
|
|
|
|
|
|
@property(nonatomic,strong) NSDictionary *data; // 提醒包含的数据
|
|
|
|
@property(nonatomic,assign) BOOL isLocate; // 是否需要进行消息定位
|
|
@property(nonatomic,assign) int64_t version;
|
|
|
|
@property(nonatomic,assign) BOOL done; // 用户是否完成提醒
|
|
|
|
@property(nonatomic,assign) WKReminderUploadStatus uploadStatus; // 上传状态 只对本地生效
|
|
|
|
/**
|
|
转换为字典
|
|
|
|
@return <#return value description#>
|
|
*/
|
|
-(NSDictionary*) toDictionary;
|
|
|
|
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|