lastFileModel.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // lastFileModel.m
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/7/8.
  6. //
  7. #import "lastFileModel.h"
  8. @implementation lastFileModel
  9. #pragma mark - get lastFile info
  10. //
  11. - (NSDictionary *)lastFileInfoFun{
  12. if(self.localPath){
  13. return @{
  14. @"path" : self.path,
  15. @"name" : self.name,
  16. @"time" : self.time,
  17. @"type" : self.type,
  18. @"size" : @(self.size),
  19. @"duration" : @(self.duration),
  20. //@"isSelectType" : @(self.isSelectType),
  21. @"lastPreTime" : @(self.lastPreTime),
  22. @"isDownDoneType" : @(self.isDownDoneType),
  23. @"localPath" : self.localPath,
  24. };
  25. }
  26. return @{
  27. @"path" : self.path,
  28. @"name" : self.name,
  29. @"time" : self.time,
  30. @"type" : self.type,
  31. @"size" : @(self.size),
  32. @"duration" : @(self.duration),
  33. //@"isSelectType" : @(self.isSelectType),
  34. @"lastPreTime" : @(self.lastPreTime),
  35. @"isDownDoneType" : @(self.isDownDoneType),
  36. //@"localPath" : self.localPath,
  37. };
  38. }
  39. @end