NYClassRoomPeiViewModel.m 821 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // NYClassRoomPeiViewModel.m
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2024/2/4.
  6. // Copyright © 2024 JCZ. All rights reserved.
  7. //
  8. #import "NYClassRoomPeiViewModel.h"
  9. @implementation NYClassRoomPeiViewModel
  10. - (instancetype)init {
  11. if (self = [super init]) {
  12. self.itemSize = CGSizeMake(RQ_SCREEN_WIDTH, RQ_FIT_HORIZONTAL(716.f));
  13. }
  14. return self;
  15. }
  16. - (NSString *)itemClassName {
  17. return @"NYClassRoomPeiCell";
  18. }
  19. - (NSString *)classIdStr{
  20. NSString *classIdStr = @"";
  21. if(self.cultivateInfoModel==nil){
  22. classIdStr = _classIdStr;
  23. }else{
  24. classIdStr = self.cultivateInfoModel.classid;
  25. }
  26. return classIdStr;
  27. }
  28. - (NSString *)classType{
  29. return self.isSimulationRoom?@"2":@"1";//模拟 2 课堂 1
  30. }
  31. //弹出科目选择
  32. -(void)showSelectSubjectView{
  33. }
  34. @end