2021-11-16 19:56:37 +08:00
|
|
|
|
//
|
|
|
|
|
// AttachmentModel.h
|
|
|
|
|
// xplan-ios
|
|
|
|
|
//
|
|
|
|
|
// Created by 冯硕 on 2021/11/16.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
#import <NIMSDK/NIMSDK.h>
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageType) {
|
2021-11-23 19:27:18 +08:00
|
|
|
|
///房间提示
|
|
|
|
|
CustomMessageType_Room_Tip = 2,
|
2021-11-18 15:34:52 +08:00
|
|
|
|
///送礼物的接口
|
|
|
|
|
CustomMessageType_Gift = 3,
|
2021-12-10 19:19:02 +08:00
|
|
|
|
///账户更新
|
|
|
|
|
CustomMessageType_Account = 5,
|
2021-11-26 21:47:00 +08:00
|
|
|
|
///队列操作
|
|
|
|
|
CustomMessageType_Queue = 8,
|
2022-01-08 20:15:06 +08:00
|
|
|
|
///表情
|
|
|
|
|
CustomMessageType_Face = 9,
|
2021-11-18 15:34:52 +08:00
|
|
|
|
///全麦送
|
2021-12-06 17:00:15 +08:00
|
|
|
|
CustomMessageType_AllMicroSend = 12,
|
2021-12-16 20:22:01 +08:00
|
|
|
|
///座驾进房动画
|
|
|
|
|
CustomMessageType_Car_Notify = 15,
|
2021-11-25 20:39:52 +08:00
|
|
|
|
///踢出房间
|
|
|
|
|
CustomMessageType_Kick_User = 18,
|
2022-01-24 17:50:56 +08:00
|
|
|
|
///小秘书消息
|
|
|
|
|
CustomMessageType_Secretary = 19,
|
2021-12-25 16:57:50 +08:00
|
|
|
|
///房间信息更新
|
|
|
|
|
CustomMessageType_Update_RoomInfo = 20,
|
2021-12-10 19:19:02 +08:00
|
|
|
|
///糖果树
|
|
|
|
|
CustomMessageType_Candy_Tree = 26,
|
2021-12-20 19:23:00 +08:00
|
|
|
|
///排麦
|
|
|
|
|
CustomMessageType_Arrange_Mic = 30,
|
2021-12-13 18:45:24 +08:00
|
|
|
|
///房间礼物值
|
|
|
|
|
CustomMessageType_Room_GiftValue = 42,
|
2021-12-27 16:40:14 +08:00
|
|
|
|
///收藏房间
|
|
|
|
|
CustomMessageType_Collection_Room = 59,
|
2021-11-18 15:34:52 +08:00
|
|
|
|
///福袋消息
|
|
|
|
|
CustomMessageType_LuckyBag = 61,
|
2022-03-23 11:25:53 +08:00
|
|
|
|
///塔罗
|
|
|
|
|
CustomMessageType_Tarot = 71,
|
2022-01-05 21:48:21 +08:00
|
|
|
|
///相亲
|
|
|
|
|
CustomMessageType_RoomPlay_Dating = 72,
|
2021-12-23 20:08:13 +08:00
|
|
|
|
///首充奖励
|
|
|
|
|
CustomMessageType_First_Recharge_Reward = 76,
|
2022-01-26 15:51:19 +08:00
|
|
|
|
///访客记录
|
|
|
|
|
CustomMessageType_First_VisitorRecord = 78,
|
2022-01-07 17:43:26 +08:00
|
|
|
|
///贵族VIP
|
|
|
|
|
CustomMessageType_Noble_VIP = 85,
|
2022-02-14 20:23:26 +08:00
|
|
|
|
///个播房观众点击空坑位,房主收到请求上麦提示
|
2022-02-15 17:23:18 +08:00
|
|
|
|
CustomMessageType_AnchorRoom_AudienceUpMic = 86,
|
2021-11-16 19:56:37 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2021-11-23 19:27:18 +08:00
|
|
|
|
///first = CustomMessageType_Room_Tip
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubRoomTip) {
|
|
|
|
|
///分享房间
|
|
|
|
|
Custom_Message_Sub_Room_Tip_ShareRoom = 21,
|
|
|
|
|
///关注房主
|
|
|
|
|
Custom_Message_Sub_Room_Tip_Attention_Owner = 22,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///first = CustomMessageType_Gift
|
2021-11-16 19:56:37 +08:00
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubGift) {
|
2021-11-23 19:27:18 +08:00
|
|
|
|
///发送礼物
|
|
|
|
|
Custom_Message_Sub_Gift_Send = 31,
|
|
|
|
|
///全服发送礼物
|
|
|
|
|
Custom_Message_Sub_Gift_ChannelNotify = 32,
|
|
|
|
|
///发送 福袋 礼物
|
|
|
|
|
Custom_Message_Sub_Gift_LuckySend = 34,
|
2021-11-16 19:56:37 +08:00
|
|
|
|
};
|
|
|
|
|
|
2021-12-10 19:19:02 +08:00
|
|
|
|
///first = CustomMessageType_Account
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubAccount) {
|
|
|
|
|
//账户余额钻石变更
|
|
|
|
|
Custom_Message_Sub_Account_Changed = 51,
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-26 21:47:00 +08:00
|
|
|
|
///first = CustomMessageType_Queue
|
|
|
|
|
typedef NS_ENUM(NSInteger, CustomMessageSubQueue) {
|
|
|
|
|
///邀请上麦
|
|
|
|
|
Custom_Message_Sub_Queue_Invite = 81,
|
|
|
|
|
///踢下麦
|
|
|
|
|
Custom_Message_Sub_Queue_Kick = 82,
|
|
|
|
|
};
|
|
|
|
|
|
2022-01-08 20:15:06 +08:00
|
|
|
|
//first = CustomMessageType_Face
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubFace) {
|
|
|
|
|
///发送
|
|
|
|
|
Custom_Message_Sub_Face_Send = 91,
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-23 19:27:18 +08:00
|
|
|
|
///first = CustomMessageType_ALLMicroSend
|
2021-11-16 19:56:37 +08:00
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubAllMicroSend) {
|
2021-11-23 19:27:18 +08:00
|
|
|
|
///全麦送礼物
|
|
|
|
|
Custom_Message_Sub_AllMicroSend = 121,
|
|
|
|
|
///非全麦 多人送礼
|
|
|
|
|
Custom_Message_Sub_AllBatchSend = 123,
|
|
|
|
|
///非全麦 多人送福袋礼物
|
|
|
|
|
Custom_Message_Sub_AllBatchMicroLuckySend = 124,
|
|
|
|
|
///全麦送 福袋 礼物 122老版本占用了
|
|
|
|
|
Custom_Message_Sub_AllMicroLuckySend = 125,
|
2021-11-16 19:56:37 +08:00
|
|
|
|
};
|
|
|
|
|
|
2021-12-16 20:22:01 +08:00
|
|
|
|
///first == CustomMessageType_Car_Notify
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubCar) {
|
|
|
|
|
Custom_Message_Sub_Car_EnterRoom = 159, //进房动画
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-25 20:39:52 +08:00
|
|
|
|
///first = CustomMessageType_Kick_User
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomNotificationSubKick) {
|
|
|
|
|
///拉黑
|
|
|
|
|
Custom_Message_Sub_Kick_BlackList = 182,
|
|
|
|
|
///踢出房间
|
|
|
|
|
Custom_Message_Sub_Kick_BeKicked = 181,
|
2021-12-10 19:19:02 +08:00
|
|
|
|
};
|
|
|
|
|
|
2021-12-25 16:57:50 +08:00
|
|
|
|
|
2022-01-24 17:50:56 +08:00
|
|
|
|
///first = CustomMessageType_Secretary
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomNotificationSecretary) {
|
|
|
|
|
///跳转页面
|
|
|
|
|
Custom_Message_Sub_Secretary_Router = 191,
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-25 16:57:50 +08:00
|
|
|
|
///first = CustomMessageType_Update_RoomInfo
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubUpdateRoomInfo) {
|
|
|
|
|
///动画开关状态更新
|
|
|
|
|
Custom_Message_Sub_Update_RoomInfo_AnimateEffect = 201,
|
|
|
|
|
///公屏开关更新
|
|
|
|
|
Custom_Message_Sub_Update_RoomInfo_MessageState = 203,
|
|
|
|
|
///通用公屏提示文案, 公屏纯文本展示消息 data[@"tip"]
|
|
|
|
|
Custom_Message_Sub_Update_RoomInfo_Notice = 204,
|
|
|
|
|
///红包开关通知
|
|
|
|
|
Custom_Message_Sub_Update_RoomInfo_RedPacket = 205,
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-10 19:19:02 +08:00
|
|
|
|
///first = CustomMessageType_Candy_Tree
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubCandyTree) {
|
2021-12-10 21:20:34 +08:00
|
|
|
|
//.自己可见 一级礼物(最小)
|
|
|
|
|
Custom_Message_Sub_Candy_Tree_Me = 261,
|
|
|
|
|
///当前房间可见 二级礼物
|
|
|
|
|
Custom_Message_Sub_Candy_Tree_InRoom = 262,
|
|
|
|
|
///所有房间可见 三级礼物
|
|
|
|
|
Custom_Message_Sub_Candy_Tree_AllRoom = 263,
|
2022-03-11 16:53:55 +08:00
|
|
|
|
///所有房间可见+小秘书 四级礼物
|
2021-12-10 21:20:34 +08:00
|
|
|
|
Custom_Message_Sub_Candy_Tree_AllRoom_Notify = 264,
|
2022-03-11 16:53:55 +08:00
|
|
|
|
///五级礼物
|
2021-12-10 19:19:02 +08:00
|
|
|
|
Custom_Message_Sub_Candy_Tree_InRoom_NeedAllMicSend = 265,
|
|
|
|
|
//暴击的没用 不写了
|
|
|
|
|
};
|
2021-11-25 20:39:52 +08:00
|
|
|
|
|
2021-12-20 19:23:00 +08:00
|
|
|
|
///first = CustomMessageType_Arrange_Mic
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomNotiHeaderArrangeMic) {
|
|
|
|
|
///队列从无人排麦到有人排麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Non_Empty= 301,
|
|
|
|
|
///队列从有人排麦到无人排麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Empty= 302,
|
|
|
|
|
///开启排麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Mode_Open= 303,
|
|
|
|
|
///关闭排麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Mode_Close= 304,
|
|
|
|
|
///将坑位设置成自由麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Free_Mic_Open= 305,
|
|
|
|
|
///将坑位设置为排麦
|
|
|
|
|
Custom_Message_Sub_Arrange_Mic_Free_Mic_Close= 306,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2021-12-13 18:45:24 +08:00
|
|
|
|
///first = CustomMessageType_Room_GiftValue
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubRoomGiftValue) {
|
|
|
|
|
///礼物值同步
|
|
|
|
|
Custom_Message_Sub_Room_GiftValue_Sync = 421
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-27 16:40:14 +08:00
|
|
|
|
|
|
|
|
|
///first = CustomMessageType_Collection_Room
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubCollectRoom) {
|
2021-11-18 15:34:52 +08:00
|
|
|
|
/// 福袋礼物房间飘屏通知
|
|
|
|
|
Custom_Message_Sub_Room_Gift_LuckBag= 610,
|
|
|
|
|
/// 福袋礼物全服飘屏通知
|
|
|
|
|
Custom_Message_Sub_Room_Gift_LuckBag_Server = 611,
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-23 20:08:13 +08:00
|
|
|
|
|
2022-01-24 17:50:56 +08:00
|
|
|
|
///跳转类型
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageRouter) {
|
|
|
|
|
/// 跳转H5
|
|
|
|
|
Custom_Message_Router_H5 = 2,
|
|
|
|
|
};
|
2021-11-16 19:56:37 +08:00
|
|
|
|
|
2021-12-27 16:40:14 +08:00
|
|
|
|
///first = CustomMessageType_LuckyBag
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubLuckyBag) {
|
|
|
|
|
///收藏房间公屏提示消息
|
|
|
|
|
Custom_Message_Sub_Collect_Room_Tips = 591,
|
|
|
|
|
/// 提醒用户收藏房间
|
|
|
|
|
Custom_Message_Sub_Collect_Room_Remind_User = 592,
|
|
|
|
|
};
|
|
|
|
|
|
2022-03-23 11:25:53 +08:00
|
|
|
|
///CustomMessageType_Tarot
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubTarot) {
|
|
|
|
|
/// 塔罗中奖消息
|
|
|
|
|
Custom_Message_Sub_Tarot = 711,
|
|
|
|
|
};
|
2022-01-05 21:48:21 +08:00
|
|
|
|
|
|
|
|
|
///CustomMessageType_RoomPlay_Dating
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubRoomPlayDating){
|
|
|
|
|
///选择心动用户
|
|
|
|
|
Custom_Message_Sub_Room_Play_Dating_Pick_Heart= 721,
|
|
|
|
|
///公布结果
|
|
|
|
|
Custom_Message_Sub_Room_Play_Dating_Public_Result = 722,
|
|
|
|
|
///选择了对象 但不是互选 客户端收到结果之后自动加到 公屏上
|
|
|
|
|
Custom_Message_Sub_Room_Play_Dating_Result_Not_Mutual = 723,
|
|
|
|
|
///互选的 客户端收到结果之后自动加到 公屏上
|
|
|
|
|
Custom_Message_Sub_Room_Play_Dating_Result_Mutual = 724,
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-23 20:08:13 +08:00
|
|
|
|
///first = CustomMessageType_First_Recharge_Reward
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubFirstRecharge) {
|
|
|
|
|
/// 首充完成
|
|
|
|
|
Custom_Message_Sub_Room_First_Recharge_Reward= 761,
|
|
|
|
|
};
|
|
|
|
|
|
2022-01-07 17:43:26 +08:00
|
|
|
|
///first = CustomMessageType_Noble_VIP
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubNobleVIP) {
|
2022-01-10 19:59:58 +08:00
|
|
|
|
/// 开通贵族房内消息(公屏显示)
|
2022-01-07 17:43:26 +08:00
|
|
|
|
Custom_Message_Sub_Room_Open_Noble_VIP = 851,
|
2022-01-17 16:20:48 +08:00
|
|
|
|
/// 开通贵族成功通知消息
|
2022-01-07 17:43:26 +08:00
|
|
|
|
Custom_Message_Sub_Open_Noble_Success = 852,
|
2022-01-10 19:59:58 +08:00
|
|
|
|
/// 贵族升级房内消息(公屏显示)
|
2022-01-07 17:43:26 +08:00
|
|
|
|
Custom_Message_Sub_Room_Noble_LevelUp = 853,
|
2022-01-10 19:59:58 +08:00
|
|
|
|
/// 贵族升级用户通知消息(弹窗)
|
2022-01-07 17:43:26 +08:00
|
|
|
|
Custom_Message_Sub_Noble_LevelUp_User = 854,
|
|
|
|
|
/// 贵族升级全服飘屏通知消息
|
|
|
|
|
Custom_Message_Sub_Room_Noble_LevelUp_Suspend = 855,
|
|
|
|
|
/// 贵族升级全服房间公屏通知消息
|
|
|
|
|
Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend = 856,
|
2022-03-16 11:48:00 +08:00
|
|
|
|
/// 贵族小喇叭房间消息
|
|
|
|
|
Custom_Message_Sub_Room_Trumpet = 857,
|
|
|
|
|
|
2022-01-07 17:43:26 +08:00
|
|
|
|
};
|
|
|
|
|
|
2022-01-26 15:51:19 +08:00
|
|
|
|
/// 访客记录
|
|
|
|
|
typedef NS_ENUM(NSUInteger, CustomMessageSubVisitorRecord) {
|
|
|
|
|
/// 访客记录
|
|
|
|
|
Custom_Message_Sub_Visitor_Record = 781,
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-16 19:56:37 +08:00
|
|
|
|
@interface AttachmentModel : NSObject<NIMCustomAttachment>
|
|
|
|
|
@property (nonatomic,assign) int first;
|
|
|
|
|
@property (nonatomic,assign) int second;
|
|
|
|
|
@property (nonatomic, strong) id data;
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|