29 lines
714 B
Objective-C
29 lines
714 B
Objective-C
//
|
|
// XPRoomMessageDisplayModel.h
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2021/10/26.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <NIMSDK/NIMSDK.h>
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class XPRoomMessageDisplayModel;
|
|
|
|
@interface XPRoomMessageDisplayModel : NSObject
|
|
///消息实体
|
|
@property (nonatomic,strong, readonly) NIMMessage *message;
|
|
///索要展示的cell的高度
|
|
@property (nonatomic,assign, readonly) CGFloat cellHeight;
|
|
///所要展示的富文本
|
|
@property (nonatomic,strong, readonly) NSMutableAttributedString *contentAttribute;
|
|
///选择了某个item
|
|
@property (nonatomic,copy) void(^didSelectItem)(NSString * uid);
|
|
|
|
- (instancetype)initDisplayModel:(NIMMessage *)message;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|