| | |
| | | |
| | | import android.content.Context; |
| | | |
| | | import com.bytedance.novel.pangolin.NovelSDK; |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | | import com.weikou.beibeivideo.BeibeiVideoAPI; |
| | | |
| | |
| | | public static void playDrawVideo(Context context, Map<String, Object> map, String type, String from, boolean complete) { |
| | | |
| | | BeibeiVideoAPI.playDrawVideo(context, type, from, complete, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 上传小说阅读时间 |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void uploadNovelReadTime(Context context) { |
| | | long time = NovelSDK.INSTANCE.getNovelReadingDuration(); |
| | | if (time <= 0) |
| | | return; |
| | | BeibeiVideoAPI.readNovel(context, time, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | |