You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
// |
|
// TFProductionModel.m |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/11. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import "TFProductionModel.h" |
|
|
|
@implementation TFProductionModel |
|
|
|
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass |
|
{ |
|
return @{ |
|
@"tag" : [TFTagModel class], |
|
@"chapter_list" : [TFProductionChapterModel class], |
|
@"list" : [TFCatalogListModel class], |
|
}; |
|
} |
|
|
|
+ (NSDictionary *)modelCustomPropertyMapper |
|
{ |
|
return @{ |
|
@"production_descirption" :@"description", |
|
@"visited" :@"view", |
|
@"record_title" :@"chapter_title", |
|
@"production_id" :@[@"book_id", @"comic_id", @"audio_id"], |
|
@"name" :@[@"name", @"title", @"book_name", @"comic_name", @"audio_name"], |
|
@"total_chapters" :@[@"total_chapters", @"total_chapter"] |
|
}; |
|
} |
|
|
|
- (id)copyWithZone:(NSZone *)zone |
|
{ |
|
return [self modelCopy]; |
|
} |
|
|
|
- (NSString *)production_descirption |
|
{ |
|
_production_descirption = [_production_descirption stringByReplacingOccurrencesOfString:@"\r" withString:@""]; |
|
|
|
return _production_descirption; |
|
} |
|
|
|
@end
|
|
|