动态详情

This commit is contained in:
fengshuo
2022-06-22 20:38:57 +08:00
parent fe8747ce5e
commit 365b8aa2da
27 changed files with 1237 additions and 77 deletions

View File

@@ -0,0 +1,36 @@
//
// MonentsCommentReplyModel.m
// xplan-ios
//
// Created by on 2022/6/22.
//
#import "MonentsCommentReplyModel.h"
#import "NSString+Utils.h"
#import "ThemeColor.h"
@implementation MonentsCommentReplyModel
+ (NSDictionary *)objectClassInArray {
return @{@"replyList": MonentsReplyModel.class};
}
@end
@implementation MonentsReplyModel
- (NSString *)publishTime {
return [NSString stringWithTimeStamp:_publishTime];
}
- (void)createContentAttribute {
if (self.contentAttribute == nil) {
NSMutableAttributedString * attribute = [[NSMutableAttributedString alloc] init];
[attribute appendAttributedString:[[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"@%@", _toNick] attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15], NSForegroundColorAttributeName:[ThemeColor appMainColor]}]];
if (self.content.length > 0) {
[attribute appendAttributedString:[[NSMutableAttributedString alloc] initWithString:_content attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15], NSForegroundColorAttributeName:[ThemeColor mainTextColor]}]];
}
self.contentAttribute = attribute;
}
}
@end