Files
featherVoice/QXLive/Mine(音域)/View/设置/QXBlackListCell.h

65 lines
1.9 KiB
C
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// QXBlackListCell.h
// QXLive
//
// Created by 启星 on 2025/5/12.
//
#import <UIKit/UIKit.h>
#import "QXLoginModel.h"
#import "QXUserModel.h"
#import "QXRoomModel.h"
typedef NS_ENUM(NSInteger) {
/// 黑名单
QXBlackListCellTypeBlack = 0,
/// 粉丝
QXBlackListCellTypeFans = 1,
/// 关注
QXBlackListCellTypeFocus = 2,
/// 登录
QXBlackListCellTypeLogin,
/// 在线观众
QXBlackListCellTypeOnline,
/// 抱麦
QXBlackListCellTypeHugSeat,
/// 排行榜
QXBlackListCellTypeRank,
/// 访客
QXBlackListCellTypeVisit,
}QXBlackListCellType;
NS_ASSUME_NONNULL_BEGIN
@protocol QXBlackListCellDelegate <NSObject>
@optional
-(void)didRemoveSuccess:(QXUserHomeModel *)userModel;
/// 点击关注
-(void)didFocus:(UIButton*)sender userModel:(QXUserHomeModel *)userModel;
-(void)didClickLoginWithModel:(QXLoginModel*)model;
-(void)didHugSeatWithModel:(QXRoomUserInfoModel*)model;
@end
@interface QXBlackListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIButton *removeBtn;
@property (weak, nonatomic)id <QXBlackListCellDelegate> delegate;
@property (assign, nonatomic)QXBlackListCellType cellType;
@property (weak, nonatomic) IBOutlet UIView *iconBgView;
@property (weak, nonatomic) IBOutlet UIImageView *sexImageView;
@property (nonatomic,strong)QXLoginModel *loginModel;
@property (nonatomic,strong)QXUserHomeModel *userModel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *headerLeftConstraint;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *roleLabel;
@property (nonatomic,strong)QXRoomUserInfoModel *onlineUser;
@property (nonatomic,strong)QXRoomOnlineList *rankModel;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
NS_ASSUME_NONNULL_END