小说绘上架版本
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// TFNovelDownloadTaskListModel.h
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/16.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "WXYZ_DownloadManagerProtocol.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class TFDownloadTaskModel, TFProductionModel;
|
||||
|
||||
@interface TFNovelDownloadTaskListModel : NSObject
|
||||
|
||||
@property (nonatomic ,strong) TFProductionModel *productionModel;
|
||||
|
||||
@property (nonatomic ,strong) NSMutableArray <TFDownloadTaskModel *> *task_list;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@interface TFDownloadTaskModel : NSObject
|
||||
|
||||
@property (nonatomic ,copy) NSString *label;
|
||||
|
||||
@property (nonatomic ,copy) NSString *start_chapter_id;
|
||||
|
||||
@property (nonatomic ,copy) NSString *tag;
|
||||
|
||||
@property (nonatomic ,assign) NSInteger down_num;
|
||||
|
||||
@property (nonatomic ,copy) NSString *file_name;
|
||||
|
||||
@property (nonatomic ,assign) NSInteger start_order;
|
||||
|
||||
@property (nonatomic ,assign) NSInteger end_order;
|
||||
|
||||
@property (nonatomic ,copy) NSString *url;
|
||||
|
||||
@property (nonatomic ,copy) NSString *download_title;
|
||||
|
||||
@property (nonatomic ,copy) NSString *dateString;
|
||||
|
||||
@property (nonatomic ,copy) NSString *file_size_title;
|
||||
|
||||
@property (nonatomic ,assign) CGFloat file_size;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// TFNovelDownloadTaskListModel.m
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/16.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFNovelDownloadTaskListModel.h"
|
||||
|
||||
@implementation TFNovelDownloadTaskListModel
|
||||
|
||||
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{@"task_list" : [TFDownloadTaskModel class]};
|
||||
}
|
||||
|
||||
+ (NSDictionary *)modelCustomPropertyMapper {
|
||||
return @{
|
||||
@"task_list" :@"down_option"
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
@implementation TFDownloadTaskModel
|
||||
|
||||
+ (NSDictionary *)modelCustomPropertyMapper
|
||||
{
|
||||
return @{
|
||||
@"start_chapter_id" :@"s_chapter"
|
||||
};
|
||||
}
|
||||
|
||||
- (NSString *)file_size_title
|
||||
{
|
||||
return [NSString stringWithFormat:@"%.2lfM", self.file_size / 1024.0 / 1024.0];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user