69 lines
2.0 KiB
Objective-C
69 lines
2.0 KiB
Objective-C
//
|
|
// 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 isUpSeat:(BOOL)isUpSeat;
|
|
|
|
@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,assign)BOOL isUpSeat;
|
|
/// 是否显示icon标签
|
|
@property (nonatomic,assign)BOOL isNoIcon;
|
|
|
|
@property (nonatomic,strong)QXRoomUserInfoModel *onlineUser;
|
|
|
|
@property (nonatomic,strong)QXRoomOnlineList *rankModel;
|
|
+(instancetype)cellWithTableView:(UITableView *)tableView;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|