app/src/main/java/io/lbry/browser/data/DatabaseHelper.java
// View history items are stream claims
View history items are stream claims
View history items are stream claims
public static void createOrUpdateViewHistoryItem(ViewHistory viewHistory, SQLiteDatabase db) {
        db.execSQL(SQL_INSERT_VIEW_HISTORY, new Object[] {
                viewHistory.getUri().toString(),
                viewHistory.getClaimId(),
                viewHistory.getClaimName(),
                viewHistory.getCost() != null ? viewHistory.getCost().doubleValue() : 0,
                viewHistory.getCurrency(),
                viewHistory.getTitle(),
                viewHistory.getPublisherClaimId(),
                viewHistory.getPublisherName(),
                viewHistory.getPublisherTitle(),
                viewHistory.getThumbnailUrl(),
                viewHistory.getDevice(),
                viewHistory.getReleaseTime(),
                new SimpleDateFormat(Helper.ISO_DATE_FORMAT_PATTERN).format(new Date())
        });
    }
public static void createOrUpdateViewHistoryItem ( ViewHistory viewHistory , SQLiteDatabase db ) { db . execSQL ( SQL_INSERT_VIEW_HISTORY , new Object [ ] { viewHistory . getUri ( ) . toString ( ) , viewHistory . getClaimId ( ) , viewHistory . getClaimName ( ) , viewHistory . getCost ( ) != null ? viewHistory . getCost ( ) . doubleValue ( ) : 0 , viewHistory . getCurrency ( ) , viewHistory . getTitle ( ) , viewHistory . getPublisherClaimId ( ) , viewHistory . getPublisherName ( ) , viewHistory . getPublisherTitle ( ) , viewHistory . getThumbnailUrl ( ) , viewHistory . getDevice ( ) , viewHistory . getReleaseTime ( ) , new SimpleDateFormat ( Helper . ISO_DATE_FORMAT_PATTERN ) . format ( new Date ( ) ) } ) ; }
View history items are stream claims
View history items are stream claims