| | |
| | | * @param context |
| | | * @param from |
| | | */ |
| | | public static void playDrawVideo(Context context, Map<String, Object> map, String from,boolean complete) { |
| | | HttpApiUtil.playDrawVideo(context, from,complete, new BasicTextHttpResponseHandler() { |
| | | public static void playDrawVideo(Context context, Map<String, Object> map, String from, boolean complete) { |
| | | HttpApiUtil.playDrawVideo(context, from, complete, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | |
| | |
| | | long time = NovelSDK.INSTANCE.getNovelReadingDuration(); |
| | | if (time <= 0) |
| | | return; |
| | | HttpApiUtil.readNovel(context, time); |
| | | HttpApiUtil.readNovel(context, time, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |