YMPersonalPageAlbumCellViewModel.m 779 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // YMPersonalPageAlbumCellViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/17.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMPersonalPageAlbumCellViewModel.h"
  9. #import "YMPersonalInfoModel.h"
  10. @interface YMPersonalPageAlbumCellViewModel ()
  11. /// 相册链接
  12. @property (nonatomic, copy, readwrite) NSString *albumUrl;
  13. /// 是否是视频 YES是 NO不是
  14. @property (nonatomic, assign, readwrite) BOOL isVideo;
  15. @end
  16. @implementation YMPersonalPageAlbumCellViewModel
  17. - (void)ym_initialize{
  18. [super ym_initialize];
  19. if ([self.params[ParamsModel] isKindOfClass:[YMAlbumsModel class]]) {
  20. YMAlbumsModel *model = self.params[ParamsModel];
  21. self.albumUrl = model.url;
  22. self.isVideo = model.is_video != 0 ? YES : NO;
  23. }
  24. }
  25. @end