| | |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.yeshi.base.entity.video.VideoDetailInfo; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.utils.JsonUtil; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.video.R; |
| | | import com.yeshi.video.entity.Comment; |
| | |
| | | + jsonObject.optJSONObject("Data") |
| | | .toString()); |
| | | |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | // if (mList == null) { |
| | | // mList = new ArrayList<Comment>(); |
| | | // } |
| | | |
| | | List<Comment> list = gson.fromJson(jsonObject |
| | | List<Comment> list = JsonUtil.videoGson.fromJson(jsonObject |
| | | .optJSONObject("Data").optJSONArray("data") |
| | | .toString(), |
| | | new TypeToken<List<Comment>>() { |