Files
midi_ios/QXLive/HomePage(声播)/View/房间/QXRoomChatListView.h
2025-09-22 14:58:13 +08:00

99 lines
3.2 KiB
Objective-C

//
// QXRoomChatListView.h
// QXLive
//
// Created by 启星 on 2025/6/7.
//
#import <UIKit/UIKit.h>
#import "QXUserModel.h"
#import "QXGiftModel.h"
#import "QXSongListModel.h"
#import "QXRoomSeatDelegate.h"
#import "QXRoomFriendRelationModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger) {
/// 系统消息
QXRoomChatMessageTypeSystem = 0,
/// 聊天消息
QXRoomChatMessageTypeChat = 1,
/// 礼物消息
QXRoomChatMessageTypeGift = 2,
}QXRoomChatMessageType;
@class QXRoomChatListModel;
@interface QXRoomChatListView : UIView
@property (nonatomic,weak)id<QXRoomSeatDelegate>delegate;
-(void)insertNoitce;
-(void)insertMessage:(QXRoomChatListModel*)model;
-(void)clearMessage;
@end
@interface QXRoomChatListCell : UITableViewCell
@property(nonatomic,strong)UIImageView *headerImageView;
@property(nonatomic,strong)UIView *iconBgView;
@property(nonatomic,strong)NSMutableArray *iconViewArray;
@property(nonatomic,strong)UILabel *nameLabel;
@property(nonatomic,strong)UILabel *titleLabel;
@property(nonatomic,strong)UIImageView *bubbleImageView;
@property (nonatomic,strong)QXRoomChatListModel *message;
@property (nonatomic,weak)id<QXRoomSeatDelegate>delegate;
-(void)loadBubble;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
@interface QXRoomGiftListCell : UITableViewCell
@property(nonatomic,strong)UIImageView *headerImageView;
@property(nonatomic,strong)UIView *iconBgView;
/// 礼物图片
@property(nonatomic,strong)UIImageView *giftImageView;
/// 礼物数量
@property(nonatomic,strong)UILabel *giftCountLabel;
@property(nonatomic,strong)NSMutableArray *iconViewArray;
@property(nonatomic,strong)UILabel *nameLabel;
@property(nonatomic,strong)UILabel *titleLabel;
@property(nonatomic,strong)UIImageView *bubbleImageView;
@property (nonatomic,strong)QXRoomChatListModel *message;
@property (nonatomic,weak)id<QXRoomSeatDelegate>delegate;
-(void)loadBubble;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
@interface QXRoomChatListSystemCell : UITableViewCell
@property(nonatomic,strong)UIView *bgView;
@property(nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)QXRoomChatListModel *message;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
@interface QXRoomChatListModel : NSObject
@property (nonatomic,assign)QXRoomChatMessageType messageType;
@property (nonatomic,strong)NSString* text;
@property (nonatomic,strong)QXGiftModel* GiftInfo;
@property (nonatomic,strong)NSArray<QXGiftModel*>* GiftInfos;
@property (nonatomic,strong)QXUserHomeModel* FromUserInfo;
@property (nonatomic,strong)QXUserHomeModel* ToUserInfo;
@property (nonatomic,strong)NSArray<QXUserHomeModel* >* ToUserInfos;
/// 当前音乐
@property (nonatomic,strong)QXSongListModel* songInfo;
/// 下一首音乐
@property (nonatomic,strong)QXSongListModel* nextInfo;
@property (nonatomic,assign)BOOL havBubble;
@property (nonatomic,strong)NSString* total;
/// 交友房新增
@property (nonatomic,strong)NSString* step;
@property (nonatomic,strong)NSString* friend_id;
@property (nonatomic,strong)NSString* end_time;
@property (nonatomic,strong)QXRoomFriendRelationModel* friend_user;
/// 礼物数量 巡乐会
@property (nonatomic,strong)NSString *gift_num;
@end
NS_ASSUME_NONNULL_END