RQExerciseVideoExplainItemViewModel.m 820 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // RQExerciseVideoExplainItemViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/11/23.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQExerciseVideoExplainItemViewModel.h"
  9. @interface RQExerciseVideoExplainItemViewModel ()
  10. @property (nonatomic, readwrite, strong) RQYDTJSModel *ydtJSModel;
  11. @end
  12. @implementation RQExerciseVideoExplainItemViewModel
  13. - (instancetype)initWithRQYDTJSModel:(RQYDTJSModel *)ydtJSModel {
  14. if (self = [super init]) {
  15. @weakify(self)
  16. dispatch_async(dispatch_get_main_queue(), ^{
  17. @strongify(self)
  18. self.ydtJSModel = ydtJSModel;
  19. self.rowHeight = 16.f + 26.f + 16.f + RQ_FIT_HORIZONTAL(184.f) + 16.f;
  20. });
  21. }
  22. return self;
  23. }
  24. - (NSString *)itemClassName {
  25. return @"RQExerciseVideoExplainCell";
  26. }
  27. @end