Search in sources :

Example 1 with NearbyStatusListBean

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

the class NearbyTimeLineDao method get.

public NearbyStatusListBean get() throws WeiboException {
    Map<String, String> map = new HashMap<String, String>();
    map.put("access_token", access_token);
    map.put("lat", lat);
    map.put("long", long_fix);
    String jsonData = HttpUtility.getInstance().executeNormalTask(HttpMethod.Get, URLHelper.NEARBY_STATUS, map);
    try {
        NearbyStatusListBean value = new Gson().fromJson(jsonData, NearbyStatusListBean.class);
        if (value != null) {
            return value;
        }
    } catch (JsonSyntaxException e) {
        AppLogger.e(e.getMessage());
    }
    return null;
}
Also used : NearbyStatusListBean(org.qii.weiciyuan.bean.NearbyStatusListBean) JsonSyntaxException(com.google.gson.JsonSyntaxException) HashMap(java.util.HashMap) Gson(com.google.gson.Gson)

Aggregations

Gson (com.google.gson.Gson)1 JsonSyntaxException (com.google.gson.JsonSyntaxException)1 HashMap (java.util.HashMap)1 NearbyStatusListBean (org.qii.weiciyuan.bean.NearbyStatusListBean)1