| | |
| | | import com.yeshi.base.entity.db.DownloadTable; |
| | | 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.SDCardUtil; |
| | | import com.yeshi.base.utils.downutil.DownloadUtils; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | |
| | | videoDetailInfo.getId()); |
| | | values.put(DownloadTable.VIDEO_THIRD_TYPE, |
| | | mVideoInfo.getThirdType()); |
| | | Gson gson = new GsonBuilder() |
| | | .setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | values.put(DownloadTable.VIDEO_DETAIL, |
| | | gson.toJson(mVideoInfo)); |
| | | JsonUtil.videoGson.toJson(mVideoInfo)); |
| | | getContext().getContentResolver().insert( |
| | | DownloadTable.CONTENT_URI, values); |
| | | EventBus.getDefault().post(values); |