Search in sources :

Example 1 with SaveViewHistoryTask

use of com.odysee.app.tasks.localdata.SaveViewHistoryTask in project odysee-android by OdyseeTeam.

the class Helper method saveViewHistory.

public static void saveViewHistory(String url, Claim claim) {
    DatabaseHelper dbHelper = DatabaseHelper.getInstance();
    if (dbHelper != null) {
        ViewHistory viewHistory = ViewHistory.fromClaimWithUrlAndDeviceName(claim, url, getDeviceName());
        new SaveViewHistoryTask(viewHistory, dbHelper, null).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
    }
}
Also used : SaveViewHistoryTask(com.odysee.app.tasks.localdata.SaveViewHistoryTask) DatabaseHelper(com.odysee.app.data.DatabaseHelper) ViewHistory(com.odysee.app.model.ViewHistory)

Aggregations

DatabaseHelper (com.odysee.app.data.DatabaseHelper)1 ViewHistory (com.odysee.app.model.ViewHistory)1 SaveViewHistoryTask (com.odysee.app.tasks.localdata.SaveViewHistoryTask)1