Files
TIMSDK/iOS/TUIKit/TUIChat/Cell/CellData/Reply/TUIFileReplyQuoteViewData.m
T
2021-12-10 17:49:14 +08:00

31 lines
750 B
Objective-C

//
// TUIFileReplyQuoteViewData.m
// TUIChat
//
// Created by harvy on 2021/11/25.
//
#import "TUIFileReplyQuoteViewData.h"
#import "TUIFileMessageCellData.h"
@implementation TUIFileReplyQuoteViewData
+ (instancetype)getReplyQuoteViewData:(TUIMessageCellData *)originCellData
{
if (originCellData == nil) {
return nil;
}
if (![originCellData isKindOfClass:TUIFileMessageCellData.class]) {
return nil;
}
TUIFileReplyQuoteViewData *myData = [[TUIFileReplyQuoteViewData alloc] init];
myData.text = [(TUIFileMessageCellData *)originCellData fileName];
myData.icon = [UIImage d_imageNamed:@"msg_file" bundle:TUIChatBundle];
myData.originCellData = originCellData;
return myData;
}
@end