// // couldPhoneFileListModel.m // 隐私保护 // // Created by xd h on 2024/1/8. // #import "couldPhoneFileListModel.h" @implementation couldPhoneFileModel - (NSString*)getFileNameFun { if(!_changeFileName){ _changeFileName = [[NSString alloc] initWithFormat:@"%ld_%@",self.length,self.name]; } return _changeFileName; } - (NSString*)fileUrl { if(!_fileUrl || _fileUrl.length ==0) { NSString *urlStr = ksharedAppDelegate.NASFileByBoxService; _fileUrl = [[NSString alloc] initWithFormat:@"%@getFile?path=%@",urlStr,self.path]; } return _fileUrl; } #pragma mark - get download info // 构造回调信息 - (NSDictionary *)downLoadInfoWithFinished:(BOOL)finished { return @{ @"fileType" : self.fileType, @"path" : self.path, //@"path" : self.path, @"name" : self.name, @"length" : @(self.length), @"time" : @(self.time), @"curDownloadStateType" : @(self.curDownloadStateType), @"didDownloadBytes" : @(self.didDownloadBytes), @"isFinished" : @(finished) }; } /** 设置不需要存储的属性, 在模型.m文件中实现该函数. */ +(NSArray *)bg_ignoreKeys{ return @[@"preTimeInterval",@"curTimeInterval",@"isSelectType"]; } @end @implementation couldPhoneFileArrModel /** 设置不需要存储的属性, 在模型.m文件中实现该函数. */ +(NSArray *)bg_ignoreKeys{ return @[@"list"]; } @end @implementation couldPhoneFileListModel @end