355 lines
11 KiB
Objective-C
355 lines
11 KiB
Objective-C
//
|
||
// 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) {
|
||
///房间提示
|
||
CustomMessageType_Room_Tip = 2,
|
||
///送礼物的接口
|
||
CustomMessageType_Gift = 3,
|
||
///账户更新
|
||
CustomMessageType_Account = 5,
|
||
///队列操作
|
||
CustomMessageType_Queue = 8,
|
||
///表情
|
||
CustomMessageType_Face = 9,
|
||
///全麦送
|
||
CustomMessageType_AllMicroSend = 12,
|
||
///座驾进房动画
|
||
CustomMessageType_Car_Notify = 15,
|
||
///踢出房间
|
||
CustomMessageType_Kick_User = 18,
|
||
///小秘书消息
|
||
CustomMessageType_Secretary = 19,
|
||
///房间信息更新
|
||
CustomMessageType_Update_RoomInfo = 20,
|
||
///糖果树
|
||
CustomMessageType_Candy_Tree = 26,
|
||
///排麦
|
||
CustomMessageType_Arrange_Mic = 30,
|
||
///房间内PK
|
||
CustomMessageType_Room_PK = 31,
|
||
///家族
|
||
CustomMessageType_Hall = 32,
|
||
///房间礼物值
|
||
CustomMessageType_Room_GiftValue = 42,
|
||
///公会超管
|
||
CustomMessageType_Hall_Super_Admin = 50,
|
||
///收藏房间
|
||
CustomMessageType_Collection_Room = 59,
|
||
///福袋消息
|
||
CustomMessageType_LuckyBag = 61,
|
||
///塔罗
|
||
CustomMessageType_Tarot = 71,
|
||
///相亲
|
||
CustomMessageType_RoomPlay_Dating = 72,
|
||
///首充奖励
|
||
CustomMessageType_First_Recharge_Reward = 76,
|
||
///访客记录
|
||
CustomMessageType_First_VisitorRecord = 78,
|
||
///跨房PK
|
||
CustomMessageType_Across_Room_PK = 83,
|
||
///贵族VIP
|
||
CustomMessageType_Noble_VIP = 85,
|
||
///个播房观众点击空坑位,房主收到请求上麦提示
|
||
CustomMessageType_AnchorRoom_AudienceUpMic = 86,
|
||
///个播小时榜
|
||
CustomMessageType_Anchor_Hour_Rank = 89,
|
||
///个播粉丝团
|
||
CustomMessageType_Anchor_FansTeam = 90,
|
||
};
|
||
|
||
|
||
///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
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubGift) {
|
||
///发送礼物
|
||
Custom_Message_Sub_Gift_Send = 31,
|
||
///全服发送礼物
|
||
Custom_Message_Sub_Gift_ChannelNotify = 32,
|
||
///发送 福袋 礼物
|
||
Custom_Message_Sub_Gift_LuckySend = 34,
|
||
};
|
||
|
||
///first = CustomMessageType_Account
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubAccount) {
|
||
//账户余额钻石变更
|
||
Custom_Message_Sub_Account_Changed = 51,
|
||
};
|
||
|
||
///first = CustomMessageType_Queue
|
||
typedef NS_ENUM(NSInteger, CustomMessageSubQueue) {
|
||
///邀请上麦
|
||
Custom_Message_Sub_Queue_Invite = 81,
|
||
///踢下麦
|
||
Custom_Message_Sub_Queue_Kick = 82,
|
||
};
|
||
|
||
//first = CustomMessageType_Face
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubFace) {
|
||
///发送
|
||
Custom_Message_Sub_Face_Send = 91,
|
||
};
|
||
|
||
///first = CustomMessageType_ALLMicroSend
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubAllMicroSend) {
|
||
///全麦送礼物
|
||
Custom_Message_Sub_AllMicroSend = 121,
|
||
///非全麦 多人送礼
|
||
Custom_Message_Sub_AllBatchSend = 123,
|
||
///非全麦 多人送福袋礼物
|
||
Custom_Message_Sub_AllBatchMicroLuckySend = 124,
|
||
///全麦送 福袋 礼物 122老版本占用了
|
||
Custom_Message_Sub_AllMicroLuckySend = 125,
|
||
};
|
||
|
||
///first == CustomMessageType_Car_Notify
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubCar) {
|
||
Custom_Message_Sub_Car_EnterRoom = 159, //进房动画
|
||
};
|
||
|
||
///first = CustomMessageType_Kick_User
|
||
typedef NS_ENUM(NSUInteger, CustomNotificationSubKick) {
|
||
///拉黑
|
||
Custom_Message_Sub_Kick_BlackList = 182,
|
||
///踢出房间
|
||
Custom_Message_Sub_Kick_BeKicked = 181,
|
||
};
|
||
|
||
|
||
///first = CustomMessageType_Secretary
|
||
typedef NS_ENUM(NSUInteger, CustomNotificationSecretary) {
|
||
///跳转页面
|
||
Custom_Message_Sub_Secretary_Router = 191,
|
||
};
|
||
|
||
///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,
|
||
///清空公屏
|
||
Custom_Message_Sub_Update_RoomInfo_CleanScreen = 206,
|
||
};
|
||
|
||
///first = CustomMessageType_Candy_Tree
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubCandyTree) {
|
||
//.自己可见 一级礼物(最小)
|
||
Custom_Message_Sub_Candy_Tree_Me = 261,
|
||
///当前房间可见 二级礼物
|
||
Custom_Message_Sub_Candy_Tree_InRoom = 262,
|
||
///所有房间可见 三级礼物
|
||
Custom_Message_Sub_Candy_Tree_AllRoom = 263,
|
||
///所有房间可见+小秘书 四级礼物
|
||
Custom_Message_Sub_Candy_Tree_AllRoom_Notify = 264,
|
||
///五级礼物
|
||
Custom_Message_Sub_Candy_Tree_InRoom_NeedAllMicSend = 265,
|
||
//暴击的没用 不写了
|
||
};
|
||
|
||
///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,
|
||
};
|
||
|
||
|
||
///first=CustomMessageType_Hall
|
||
typedef NS_ENUM(NSUInteger, Custom_Noti_Sub_HALL) {
|
||
///申请加入厅
|
||
Custom_Message_Sub_Hall_Apply_Join = 321,
|
||
///管理邀请入厅
|
||
Custom_Message_Sub_Hall_Manager_Invite = 322,
|
||
///申请退出厅
|
||
Custom_Message_Sub_Hall_Apply_Exit = 323,
|
||
///模厅普通通知
|
||
Custom_Message_Sub_Hall_Notice = 324,
|
||
///设置为模厅
|
||
Custom_Message_Sub_Hall_Become_Hall = 325,
|
||
};
|
||
|
||
///first = CustomMessageType_Room_GiftValue
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubRoomGiftValue) {
|
||
///礼物值同步
|
||
Custom_Message_Sub_Room_GiftValue_Sync = 421
|
||
};
|
||
|
||
///first = CustomMessageType_Hall_Super_Admin
|
||
typedef NS_ENUM(NSInteger, CustomMessageSubHallSuperAdmin) {
|
||
///超管解除陪伴房的进房限制
|
||
Custom_Message_Sub_Hall_Super_Admin_Remove_CP_Room_Limit = 501,
|
||
///超管解除多人房的房间密码
|
||
Custom_Message_Sub_Hall_Super_Admin_Remove_Room_Pwd = 502,
|
||
///锁麦
|
||
Custom_Message_Sub_Hall_Super_Admin_Lock_Mic = 503,
|
||
///闭麦
|
||
Custom_Message_Sub_Hall_Super_Admin_Mute_Mic = 504,
|
||
///踢人下麦
|
||
Custom_Message_Sub_Hall_Super_Admin_Kick_Down_Mic = 505,
|
||
///拉黑
|
||
Custom_Message_Sub_Hall_Super_Admin_Mark_Black = 506,
|
||
///踢出房间
|
||
Custom_Message_Sub_Hall_Super_Admin_Kick_Out_Room = 507,
|
||
///踢管理员出房间
|
||
Custom_Message_Sub_Hall_Super_Admin_Kick_Manager_Out_Room = 508,
|
||
};
|
||
|
||
///first = CustomMessageType_Collection_Room
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubCollectRoom) {
|
||
/// 福袋礼物房间飘屏通知
|
||
Custom_Message_Sub_Room_Gift_LuckBag= 610,
|
||
/// 福袋礼物全服飘屏通知
|
||
Custom_Message_Sub_Room_Gift_LuckBag_Server = 611,
|
||
};
|
||
|
||
|
||
///跳转类型
|
||
typedef NS_ENUM(NSUInteger, CustomMessageRouter) {
|
||
/// 跳转H5
|
||
Custom_Message_Router_H5 = 2,
|
||
};
|
||
|
||
///first = CustomMessageType_LuckyBag
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubLuckyBag) {
|
||
///收藏房间公屏提示消息
|
||
Custom_Message_Sub_Collect_Room_Tips = 591,
|
||
/// 提醒用户收藏房间
|
||
Custom_Message_Sub_Collect_Room_Remind_User = 592,
|
||
};
|
||
|
||
///CustomMessageType_Tarot
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubTarot) {
|
||
/// 塔罗中奖消息
|
||
Custom_Message_Sub_Tarot = 711,
|
||
};
|
||
|
||
///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,
|
||
};
|
||
|
||
///first = CustomMessageType_First_Recharge_Reward
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubFirstRecharge) {
|
||
/// 首充完成
|
||
Custom_Message_Sub_Room_First_Recharge_Reward= 761,
|
||
};
|
||
|
||
/// 访客记录
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubVisitorRecord) {
|
||
/// 访客记录
|
||
Custom_Message_Sub_Visitor_Record = 781,
|
||
};
|
||
|
||
///first = CustomMessageType_Across_Room_PK
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubAcrossRoomPK) {
|
||
/// 收到跨房PK邀请
|
||
Custom_Message_Sub_AcrossRoomPK_Invite = 831,
|
||
/// 拒绝跨房PK
|
||
Custom_Message_Sub_AcrossRoomPK_Reject = 832,
|
||
/// 接受跨房PK
|
||
Custom_Message_Sub_AcrossRoomPK_Accept = 833,
|
||
/// 面板消息
|
||
Custom_Message_Sub_AcrossRoomPK_Panel = 834,
|
||
/// 跨房PK结束通知
|
||
Custom_Message_Sub_AcrossRoomPK_End = 835,
|
||
/// 跨房PK结束飘屏
|
||
Custom_Message_Sub_AcrossRoomPK_Result = 836,
|
||
|
||
///收到个播PK邀请
|
||
Custom_Message_Sub_AnchorPK_Invite = 837,
|
||
///拒绝个播pk
|
||
Custom_Message_Sub_AnchorPK_Reject = 838,
|
||
///接收个播PK
|
||
Custom_Message_Sub_AnchorPK_Accept = 839,
|
||
///个播PK面板消息
|
||
Custom_Message_Sub_AnchorPK_Panel = 8310,
|
||
///个播PK结束通知(收到后进入惩罚阶段)
|
||
Custom_Message_Sub_AnchorPK_End = 8311,
|
||
///个播PK结束飘屏
|
||
Custom_Message_Sub_AnchorPK_Result = 8312,
|
||
///个播PK完成
|
||
Custom_Message_Sub_AnchorPK_Finish = 8313,
|
||
};
|
||
|
||
///first = CustomMessageType_Noble_VIP
|
||
typedef NS_ENUM(NSUInteger, CustomMessageSubNobleVIP) {
|
||
/// 开通贵族房内消息(公屏显示)
|
||
Custom_Message_Sub_Room_Open_Noble_VIP = 851,
|
||
/// 开通贵族成功通知消息
|
||
Custom_Message_Sub_Open_Noble_Success = 852,
|
||
/// 贵族升级房内消息(公屏显示)
|
||
Custom_Message_Sub_Room_Noble_LevelUp = 853,
|
||
/// 贵族升级用户通知消息(弹窗)
|
||
Custom_Message_Sub_Noble_LevelUp_User = 854,
|
||
/// 贵族升级全服飘屏通知消息
|
||
Custom_Message_Sub_Room_Noble_LevelUp_Suspend = 855,
|
||
/// 贵族升级全服房间公屏通知消息
|
||
Custom_Message_Sub_AllRoom_Noble_LevelUp_Suspend = 856,
|
||
/// 贵族小喇叭房间消息
|
||
Custom_Message_Sub_Room_Trumpet = 857,
|
||
|
||
};
|
||
|
||
///first = CustomMessageType_Anchor_Hour_Rank
|
||
typedef NS_ENUM(NSUInteger, CustomMessageAnchorHourRank) {
|
||
///个播小时榜
|
||
Custom_Message_Sub_Anchor_Hour_Rank = 891,
|
||
};
|
||
|
||
///first = CustomMessageType_Anchor_FansTeam
|
||
typedef NS_ENUM(NSUInteger, CustomMessageAnchorFansTeam) {
|
||
///开通粉丝团成功
|
||
Custom_Message_Sub_FansTeam_Open_Success = 901,
|
||
///开通粉丝团失败
|
||
Custom_Message_Sub_FansTeam_Open_Fail = 902,
|
||
///用户加入粉丝团成功
|
||
Custom_Message_Sub_FansTeam_Join_Success = 903,
|
||
///用户退出粉丝团成功
|
||
Custom_Message_Sub_FansTeam_Out_Success = 904,
|
||
};
|
||
|
||
|
||
@interface AttachmentModel : NSObject<NIMCustomAttachment>
|
||
@property (nonatomic,assign) int first;
|
||
@property (nonatomic,assign) int second;
|
||
@property (nonatomic, strong) id data;
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|