NIMSDK-iOS
载入中...
搜索中...
未找到
NIMMessageObjectProtocol.h
浏览该文件的文档.
1//
2// NIMMessageObjectProtocol.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright (c) 2015年 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "NIMGlobalDefs.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
14@class NIMMessage;
15@class NIMQChatMessage;
16
17/**
18 * 消息体协议
19 */
20@protocol NIMMessageObject <NSObject>
21
22/**
23 * 消息体所在的消息对象
24 */
25@property (nullable,nonatomic, weak) NIMMessage *message;
26
27/**
28 * 消息体所在的消息对象(圈组消息)
29 */
30@property (nullable,nonatomic, weak) NIMQChatMessage *qchatMessage;
31
32/**
33 * 消息内容类型
34 *
35 * @return 消息内容类型
36 */
37- (NIMMessageType)type;
38
39
40@end
41
42NS_ASSUME_NONNULL_END
NIMMessageType
Definition: NIMGlobalDefs.h:17
Definition: NIMMessage.h:91
Definition: NIMQChatMessage.h:55