You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
![]()
2 years ago
|
//
|
||
|
// ChatModel.h
|
||
|
// LekangGuard
|
||
|
//
|
||
|
// Created by ecell on 2023/1/5.
|
||
|
//
|
||
|
|
||
|
#import "BaseModel.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface ChatModel : BaseModel
|
||
|
|
||
|
/// string example: 消息内容, 文字内容, 图片文件名, 语音文件名
|
||
|
@property (nonatomic ,copy) NSString *content;
|
||
|
|
||
|
/// 时间
|
||
|
@property (nonatomic ,copy) NSString *createTime;
|
||
|
|
||
|
/// 语音时长
|
||
|
@property (nonatomic ,copy) NSString *duration;
|
||
|
|
||
|
/// Id
|
||
|
@property (nonatomic ,copy) NSString *Id;
|
||
|
|
||
|
/// 消息类型 1:文字消息,2:图片消息,3:语音消息
|
||
|
@property (nonatomic ,assign) NSInteger myType;
|
||
|
|
||
|
/// string example: 群组id
|
||
|
@property (nonatomic ,copy) NSString *groupId;
|
||
|
|
||
|
/// string example: 头像
|
||
|
@property (nonatomic ,copy) NSString *image;
|
||
|
|
||
|
/// string example: 昵称
|
||
|
@property (nonatomic ,copy) NSString *nickName;
|
||
|
|
||
|
/// string example: 是否已读(0:未读,1:已读)
|
||
|
@property (nonatomic ,assign) NSInteger readStatus;
|
||
|
|
||
|
/// string example: 发送者类型:1.用户,2.设备
|
||
|
@property (nonatomic ,assign) NSInteger sendType;
|
||
|
|
||
|
/// string example: 发送者标识(email, imei)
|
||
|
@property (nonatomic ,copy) NSString *sendUser;
|
||
|
|
||
|
/// string example: 用户id
|
||
|
@property (nonatomic ,copy) NSString *userId;
|
||
|
|
||
|
/// 大小
|
||
|
@property (nonatomic ,assign) NSInteger size;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|