1 package com.netease.nimlib.sdk.chatroom.model;
6 import org.json.JSONObject;
16 private static final String TAG_QUEUE_CHANGE =
"queueChange";
17 private static final String TAG_KEYS =
"kvObject";
18 private static final String TAG_TYPE =
"_e";
20 private Map<String, String> contentMap;
31 public void parse(JSONObject json) {
33 if (json.has(TAG_QUEUE_CHANGE)) {
34 String queueChange = JSONHelper.getString(json, TAG_QUEUE_CHANGE);
35 JSONObject jsonObject = JSONHelper.parse(queueChange);
37 if (jsonObject != null && jsonObject.has(TAG_KEYS)) {
38 String content = JSONHelper.getString(jsonObject, TAG_KEYS);
39 JSONObject contentJson = JSONHelper.parse(content);
40 contentMap = JSONHelper.parseMapFromJsonObject(contentJson);
PARTCLEAR
PARTCLEAR: 部分清理操作(发生在提交元素的用户掉线时,清理这个用户对应的key)
void parse(JSONObject json)
Map< String, String > getContentMap()
Created by winnie on 2017/6/27.
ChatRoomQueueChangeType getChatRoomQueueChangeType()
Created by hzxuwen on 2016/12/20.