HomeRecentCourseView.h 742 B

1234567891011121314151617181920212223242526272829303132333435
  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_GROUP, // 小组课
  14. RECENTCOURSE_TYPE_VIP,
  15. };
  16. typedef void(^RecentCourseAction)(RECENTCOURSE_TYPE type, RecentCourseModel * _Nonnull courseModel);
  17. NS_ASSUME_NONNULL_BEGIN
  18. @interface HomeRecentCourseView : UIView
  19. + (instancetype)shareInstance;
  20. - (void)configCourseMessage:(RecentCourseModel *)model;
  21. - (void)joinRoom:(RecentCourseAction)callback;
  22. + (CGFloat)getViewHeight;
  23. @end
  24. NS_ASSUME_NONNULL_END