jmessage-api-java-client
jmessage-api-java-client copied to clipboard
获取用户状态
UserStateListResult[] results = client.getUsersState("user1", "user2", "user3");
package cn.jmessage.api.user;
import cn.jiguang.common.resp.BaseResult; import com.google.gson.annotations.Expose;
import java.util.ArrayList; import java.util.List;
public class UserStateListResult extends BaseResult {
@Expose List<Device> devices = new ArrayList<Device>();
@Expose String username;
public String getUsername() {
return this.username;
}
private class Device {
@Expose boolean login;
@Expose boolean online;
@Expose String platform;
public boolean getLogin() {
return this.login;
}
public boolean getOnline() {
return this.online;
}
public String getPlatform() {
return this.platform;
}
}
}
@Expose List<Device> devices = new ArrayList<Device>();
没有get怎么获取 还有Device 私有化 没办法获取