在线用户列表

可以通过以下两个方法获取在线用户总数和在线用户列表(带分页),服务器重启后数据会清空。

//获取在线用户总数
XHClient.getInstance().getAliveUserNum(new IXHResultCallback() {
@Override
public void success(Object data) {
//{"userCount":7,"totalPageNum":1} 总数2,总分页数1
LOG.d("!!!!!!!!!!!!!",data.toString());
}

@Override
public void failed(String errMsg) {
LOG.d("!!!!!!!!!!!!!",errMsg.toString());
}
});

//获取在线用户列表(带分页)
XHClient.getInstance().getAliveUserList(1,new IXHResultCallback() {
@Override
public void success(Object data) {
//{"totalPageNum":1,"reqPageNum":1,"userIdList":"944389,186434,944758,651315,924437,747396,380156"}总数1,当前页数1,id列表逗号分隔
LOG.d("!!!!!!!!!!!!!",data.toString());
}

@Override
public void failed(String errMsg) {
LOG.d("!!!!!!!!!!!!!",errMsg.toString());
}
});