LenzCachedResourceModel.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // LenzCachedResourceModel.m
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/29.
  6. //
  7. #import "LenzCachedResourceModel.h"
  8. @implementation LenzCachedResourceModel
  9. - (instancetype)init {
  10. if (self = [super init]) {
  11. self.continousArray = [NSMutableArray array];
  12. self.singleArray = [NSMutableArray array];
  13. self.movieArray = [NSMutableArray array];
  14. self.panoramArray = [NSMutableArray array];
  15. self.aiPanoramArray = [NSMutableArray array];
  16. // self.lastShowArray = [NSMutableArray array];
  17. }
  18. return self;
  19. }
  20. @end
  21. @implementation LenzResourceItemModel
  22. - (instancetype)init {
  23. if (self = [super init]) {
  24. self.keyFrame = [NSMutableArray array];
  25. }
  26. return self;
  27. }
  28. - (NSString *)cameraMode {
  29. switch (self.mode) {
  30. case SDK_CAPTURE_MODE_CONTINUOUS:
  31. return @"continuous";
  32. break;
  33. case SDK_CAPTURE_MODE_SINGLE:
  34. return @"single";
  35. break;
  36. case SDK_CAPTURE_MODE_MOVIE:
  37. return @"video";
  38. break;
  39. case SDK_CAPTURE_MODE_PANORAMA:
  40. return @"panorama";
  41. break;
  42. case SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA:
  43. return @"panoramaPlus";
  44. break;
  45. default:
  46. return nil;
  47. break;
  48. }
  49. }
  50. @end