use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class FriendListDao method getGSONMsgList.
public UserListBean getGSONMsgList() throws WeiboException {
String url = URLHelper.FRIENDS_LIST_BYID;
Map<String, String> map = new HashMap<String, String>();
map.put("access_token", access_token);
map.put("uid", uid);
map.put("cursor", cursor);
map.put("trim_status", trim_status);
map.put("count", count);
map.put("screen_name", screen_name);
String jsonData = HttpUtility.getInstance().executeNormalTask(HttpMethod.Get, url, map);
Gson gson = new Gson();
UserListBean value = null;
try {
value = gson.fromJson(jsonData, UserListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
}
return value;
}
use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class FanUserLoader method loadData.
public UserListBean loadData() throws WeiboException {
FanListDao dao = new FanListDao(token, uid);
dao.setCursor(cursor);
UserListBean result = null;
lock.lock();
try {
result = dao.getGSONMsgList();
} finally {
lock.unlock();
}
return result;
}
use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class FriendUserLoader method loadData.
public UserListBean loadData() throws WeiboException {
FriendListDao dao = new FriendListDao(token, uid);
dao.setCursor(cursor);
UserListBean result = null;
lock.lock();
try {
result = dao.getGSONMsgList();
} finally {
lock.unlock();
}
return result;
}
use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class SearchUserLoader method loadData.
public UserListBean loadData() throws WeiboException {
SearchDao dao = new SearchDao(token, searchWord);
dao.setPage(page);
UserListBean result = null;
lock.lock();
try {
result = dao.getUserList();
} finally {
lock.unlock();
}
return result;
}
use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class FanListDao method getGSONMsgList.
public UserListBean getGSONMsgList() throws WeiboException {
String url = URLHelper.FOLLOWERS_LIST_BYID;
Map<String, String> map = new HashMap<String, String>();
map.put("access_token", access_token);
map.put("uid", uid);
map.put("cursor", cursor);
map.put("trim_status", trim_status);
map.put("count", count);
map.put("screen_name", screen_name);
String jsonData = HttpUtility.getInstance().executeNormalTask(HttpMethod.Get, url, map);
Gson gson = new Gson();
UserListBean value = null;
try {
value = gson.fromJson(jsonData, UserListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
}
return value;
}
Aggregations