Files
yinmeng-ios/xplan-ios/Main/IM/Model/AttachmentModel.h

81 lines
2.0 KiB
C
Raw Normal View History

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,
///送礼物的接口
CustomMessageType_Gift = 3,
///全麦送
CustomMessageType_ALLMicroSend = 12,
2021-11-25 20:39:52 +08:00
///踢出房间
CustomMessageType_Kick_User = 18,
///福袋消息
CustomMessageType_LuckyBag = 61,
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-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-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-11-23 19:27:18 +08:00
///first = CustomMessageType_LuckyBag
typedef NS_ENUM(NSUInteger, CustomMessageSubLuckyBag) {
/// 福袋礼物房间飘屏通知
Custom_Message_Sub_Room_Gift_LuckBag= 610,
/// 福袋礼物全服飘屏通知
Custom_Message_Sub_Room_Gift_LuckBag_Server = 611,
};
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