| | |
| | | import com.yeshi.base.entity.video.VideoDetailInfo; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.entity.video.VideoResource; |
| | | import com.yeshi.base.utils.JsonUtil; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.base.utils.user.UserUtil; |
| | | import com.yeshi.video.R; |
| | |
| | | Header[] headers, JSONObject jsonObject) |
| | | throws Exception { |
| | | if (jsonObject.getBoolean("IsPost")) { |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | VideoResource resource = gson.fromJson( |
| | | |
| | | VideoResource resource = JsonUtil.videoGson.fromJson( |
| | | jsonObject.getJSONObject("Data") |
| | | .getJSONObject("Resource") |
| | | .toString(), |