Files
featherVoice/TUIKit/TUICustomerServicePlugin/UI_Classic/BaseCell/TUICustomerServicePluginTypingCellData.m

25 lines
770 B
Mathematica
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// TUICustomerServicePluginTypingCellData.m
// TUICustomerServicePlugin
//
// Created by xia on 2023/6/16.
//
#import "TUICustomerServicePluginTypingCellData.h"
@implementation TUICustomerServicePluginTypingCellData
+ (TUIMessageCellData *)getCellData:(V2TIMMessage *)message {
NSDictionary *param = [NSJSONSerialization JSONObjectWithData:message.customElem.data options:NSJSONReadingAllowFragments error:nil];
TUITypingStatusCellData *cellData = [[TUITypingStatusCellData alloc] initWithDirection:message.isSelf ? MsgDirectionOutgoing : MsgDirectionIncoming];
cellData.msgID = message.msgID;
if ([param[@"src"] isEqualToString: BussinessID_Src_CustomerService_Typing]) {
cellData.typingStatus = 1;
}
return cellData;
}
@end