1 package com.netease.nimlib.sdk.avsignalling.model;
6 import org.json.JSONException;
7 import org.json.JSONObject;
9 import java.io.Serializable;
16 private String accountId;
20 private long joinTime;
22 private long expireTime;
24 public MemberInfo(JSONObject jsonObject)
throws JSONException {
25 accountId = JSONHelper.getString(jsonObject,
"1");
26 uid = JSONHelper.getLong(jsonObject,
"2");
27 joinTime = JSONHelper.getLong(jsonObject,
"3");
28 expireTime = JSONHelper.getLong(jsonObject,
"4");
62 JSONObject jsonObject =
new JSONObject();
64 jsonObject.put(
"accountId", accountId);
65 jsonObject.put(
"uid", uid);
66 jsonObject.put(
"joinTime", joinTime);
67 jsonObject.put(
"expireTime", expireTime);
68 }
catch (JSONException e) {
71 return jsonObject.toString();
long getExpireTime()
获取用户在频道的过期时间
String getAccountId()
获取IM 登录的帐号id
MemberInfo(JSONObject jsonObject)
long getUid()
获取音视频Server对应的id
long getJoinTime()
获取用户加入频道的时间