HomeCourseTipsView.h 675 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // HomeCourseTipsView.h
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2022/4/22.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "RecentCourseModel.h"
  9. typedef NS_ENUM(NSInteger, COURSETYPE) {
  10. COURSETYPE_ACCOMPANY, // 陪练课
  11. COURSETYPE_LIVE, // 直播课
  12. COURSETYPE_MUSICROOM, // 琴房课
  13. };
  14. typedef void(^HomeCourseCallback)(COURSETYPE type, RecentCourseModel * _Nonnull courseModel);
  15. NS_ASSUME_NONNULL_BEGIN
  16. @interface HomeCourseTipsView : UIView
  17. + (instancetype)shareInstance;
  18. - (void)configWithCourseMessage:(RecentCourseModel *)source;
  19. - (void)joinRoomCallback:(HomeCourseCallback)callback;
  20. + (CGFloat)getViewHeight;
  21. @end
  22. NS_ASSUME_NONNULL_END