1 package com.netease.nimlib.sdk.team.model;
6 import org.json.JSONArray;
7 import org.json.JSONObject;
9 import java.util.ArrayList;
33 private static final String TAG_ACCOUNTS =
"ids";
34 private static final String TAG_ACCOUNT =
"id";
39 private ArrayList<String> targets;
46 public void parse(JSONObject json) {
49 if (json.has(TAG_ACCOUNTS)) {
50 JSONArray array = JSONHelper.getJSONArray(json, TAG_ACCOUNTS);
51 targets =
new ArrayList<>(array.length());
52 for (
int i = 0; i < array.length(); ++i) {
53 targets.add(JSONHelper.getString(array, i));
55 }
else if (json.has(TAG_ACCOUNT)) {
56 targets =
new ArrayList<>(1);
57 targets.add(JSONHelper.getString(json, TAG_ACCOUNT));
群成员变动的通知消息实体。包括群成员变化和管理权限变化。 所有类型的变动,操作者均为消息的fromAccount...
ArrayList< String > getTargets()
void parse(JSONObject json)