HomeRecentCourseView.h 695 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // HomeRecentCourseView.h
  3. // KulexiuForTeacher
  4. //
  5. // Created by 王智 on 2022/5/10.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "RecentCourseModel.h"
  9. typedef NS_ENUM(NSInteger, RECENTCOURSE_TYPE) {
  10. RECENTCOURSE_TYPE_LIVE,
  11. RECENTCOURSE_TYPE_ACCOMPANY,
  12. RECENTCOURSE_TYPE_MUSICCLASS, // 琴房
  13. RECENTCOURSE_TYPE_VIP,
  14. };
  15. typedef void(^RecentCourseAction)(RECENTCOURSE_TYPE type, RecentCourseModel * _Nonnull courseModel);
  16. NS_ASSUME_NONNULL_BEGIN
  17. @interface HomeRecentCourseView : UIView
  18. + (instancetype)shareInstance;
  19. - (void)configCourseMessage:(RecentCourseModel *)model;
  20. - (void)joinRoom:(RecentCourseAction)callback;
  21. + (CGFloat)getViewHeight;
  22. @end
  23. NS_ASSUME_NONNULL_END