jmessage-api-java-client icon indicating copy to clipboard operation
jmessage-api-java-client copied to clipboard

获取用户状态

Open 479391582 opened this issue 4 years ago • 0 comments

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 私有化 没办法获取

479391582 avatar Sep 24 '21 08:09 479391582