RCChatroomKVNotificationMessage Class Reference

Inherits from RCMessageContent : NSObject
Declared in RCChatroomKVNotificationMessage.h

Overview

聊天室自定义属性通知消息

不要随意构造此类消息发送,调用设置或者删除接口时会自动构建。

此消息不存储不计入未读消息数。

@remarks 通知类消息

  type

聊天室操作的类型

@property (nonatomic, assign) RCChatroomKVNotificationType type

Discussion

聊天室操作的类型

Declared In

RCChatroomKVNotificationMessage.h

  key

聊天室属性名称

@property (nonatomic, copy) NSString *key

Discussion

聊天室属性名称

Declared In

RCChatroomKVNotificationMessage.h

  value

聊天室属性对应的值

@property (nonatomic, copy) NSString *value

Discussion

聊天室属性对应的值

Declared In

RCChatroomKVNotificationMessage.h

  extra

通知消息的自定义字段,最大长度 2 kb

@property (nonatomic, copy) NSString *extra

Discussion

通知消息的自定义字段,最大长度 2 kb

Declared In

RCChatroomKVNotificationMessage.h

+ notificationWithType:key:value:extra:

初始化聊天室自定义属性通知消息

+ (instancetype)notificationWithType:(RCChatroomKVNotificationType)type key:(NSString *)key value:(NSString *_Nullable)value extra:(NSString *)extra

Parameters

key

聊天室属性名称

value

聊天室属性对应的值(删除 key 时不用传)

extra

通知消息的自定义字段

Return Value

聊天室自定义属性通知消息的对象

Discussion

初始化聊天室自定义属性通知消息

Declared In

RCChatroomKVNotificationMessage.h