AVDMessage

Superclass:
NSObject
Declared In:

Introduction

聊天消息结构.

聊天消息定义了一次传输聊天的信息。



Methods

-initWithFromId:fromName:message:

initWithFromId:fromName:message:


- (instancetype) initWithFromId:(NSString*) fromId fromName:(NSString*) fromName 
        message:(NSString*) message; 
Discussion

< 消息内容


Properties

fromId
fromName
message

fromId


@property(nonatomic,
    strong,
    readonly) AVDUserId fromId; 
Discussion

< 消息时间戳,对应用层是本地时间,传输中用GMT时间


fromName


@property(nonatomic,
    strong,
    readonly) NSString* fromName; 
Discussion

< 消息发送者Id


message


@property(nonatomic,
    strong,
    readonly) NSString* message; 
Discussion

< 消息发送者名