Search in sources :

Example 6 with UserListBean

use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.

the class SearchDao method getUserList.

public UserListBean getUserList() throws WeiboException {
    String url = URLHelper.USERS_SEARCH;
    Map<String, String> map = new HashMap<String, String>();
    map.put("access_token", access_token);
    map.put("count", count);
    map.put("page", page);
    map.put("q", q);
    String jsonData = null;
    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;
}
Also used : JsonSyntaxException(com.google.gson.JsonSyntaxException) HashMap(java.util.HashMap) Gson(com.google.gson.Gson) UserListBean(org.qii.weiciyuan.bean.UserListBean)

Aggregations

UserListBean (org.qii.weiciyuan.bean.UserListBean)6 Gson (com.google.gson.Gson)3 JsonSyntaxException (com.google.gson.JsonSyntaxException)3 HashMap (java.util.HashMap)3 SearchDao (org.qii.weiciyuan.dao.search.SearchDao)1 FanListDao (org.qii.weiciyuan.dao.user.FanListDao)1 FriendListDao (org.qii.weiciyuan.dao.user.FriendListDao)1