Files
yinmeng-ios/xplan-ios/Main/IM/Model/AttachmentModel.h
2022-01-14 15:41:25 +08:00

124 lines
3.3 KiB
Objective-C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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_AllMicroSend = 12,
///踢出房间
CustomMessageType_Kick_User = 18,
///糖果树
CustomMessageType_Candy_Tree = 26,
///房间礼物值
CustomMessageType_Room_GiftValue = 42,
///福袋消息
CustomMessageType_LuckyBag = 61,
};
///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_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_Kick_User
typedef NS_ENUM(NSUInteger, CustomNotificationSubKick) {
///拉黑
Custom_Message_Sub_Kick_BlackList = 182,
///踢出房间
Custom_Message_Sub_Kick_BeKicked = 181,
};
///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_Room_GiftValue
typedef NS_ENUM(NSUInteger, CustomMessageSubRoomGiftValue) {
///礼物值同步
Custom_Message_Sub_Room_GiftValue_Sync = 421
};
///first = CustomMessageType_LuckyBag
typedef NS_ENUM(NSUInteger, CustomMessageSubLuckyBag) {
/// 福袋礼物房间飘屏通知
Custom_Message_Sub_Room_Gift_LuckBag= 610,
/// 福袋礼物全服飘屏通知
Custom_Message_Sub_Room_Gift_LuckBag_Server = 611,
};
@interface AttachmentModel : NSObject<NIMCustomAttachment>
@property (nonatomic,assign) int first;
@property (nonatomic,assign) int second;
@property (nonatomic, strong) id data;
@end
NS_ASSUME_NONNULL_END