Files
keyboard/keyBoard/Class/AiTalk/M/KBAIReplyModel.h
2026-01-29 14:42:49 +08:00

57 lines
1.1 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.

//
// KBAIReplyModel.h
// keyBoard
//
// Created by Mac on 2026/1/16.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// 二级评论(回复)模型
@interface KBAIReplyModel : NSObject
/// 回复ID
@property(nonatomic, copy) NSString *replyId;
/// 用户ID
@property(nonatomic, copy) NSString *userId;
/// 用户名
@property(nonatomic, copy) NSString *userName;
/// 用户头像
@property(nonatomic, copy) NSString *avatarUrl;
/// 回复内容
@property(nonatomic, copy) NSString *content;
/// 被回复的用户名(@xxx
@property(nonatomic, copy, nullable) NSString *replyToUserName;
/// 点赞数
@property(nonatomic, assign) NSInteger likeCount;
/// 是否已点赞
@property(nonatomic, assign) BOOL liked;
/// 创建时间(时间戳)
@property(nonatomic, assign) NSTimeInterval createTime;
#pragma mark - 缓存高度
/// Cell 高度缓存
@property(nonatomic, assign) CGFloat cachedCellHeight;
/// 格式化后的时间字符串
- (NSString *)formattedTime;
/// 计算 Cell 高度
/// @param maxWidth 最大宽度
- (CGFloat)calculateCellHeightWithMaxWidth:(CGFloat)maxWidth;
@end
NS_ASSUME_NONNULL_END