2025-08-08 10:49:36 +08:00
|
|
|
//
|
|
|
|
|
// 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"
|
2025-10-20 09:43:10 +08:00
|
|
|
#import "QXRoomFriendRelationModel.h"
|
2025-08-08 10:49:36 +08:00
|
|
|
|
|
|
|
|
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;
|
2025-10-20 09:43:10 +08:00
|
|
|
@property (nonatomic,strong)NSArray<QXGiftModel*>* GiftInfos;
|
2025-08-08 10:49:36 +08:00
|
|
|
@property (nonatomic,strong)QXUserHomeModel* FromUserInfo;
|
|
|
|
|
@property (nonatomic,strong)QXUserHomeModel* ToUserInfo;
|
|
|
|
|
|
2025-10-20 09:43:10 +08:00
|
|
|
@property (nonatomic,strong)NSArray<QXUserHomeModel* >* ToUserInfos;
|
|
|
|
|
|
2025-08-08 10:49:36 +08:00
|
|
|
/// 当前音乐
|
|
|
|
|
@property (nonatomic,strong)QXSongListModel* songInfo;
|
|
|
|
|
/// 下一首音乐
|
|
|
|
|
@property (nonatomic,strong)QXSongListModel* nextInfo;
|
|
|
|
|
@property (nonatomic,assign)BOOL havBubble;
|
|
|
|
|
|
|
|
|
|
@property (nonatomic,strong)NSString* total;
|
2025-10-20 09:43:10 +08:00
|
|
|
|
|
|
|
|
/// 交友房新增
|
|
|
|
|
@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;
|
2025-10-20 20:05:55 +08:00
|
|
|
|
|
|
|
|
- (BOOL)isSameGiftFromSameSender:(QXRoomChatListModel *)otherGift;
|
|
|
|
|
|
|
|
|
|
- (instancetype)copy;
|
2025-08-08 10:49:36 +08:00
|
|
|
@end
|
|
|
|
|
NS_ASSUME_NONNULL_END
|