package com.novoda.downloadmanager.demo;

import com.novoda.notils.logger.simple.Log;
import com.novoda.downloadmanager.DownloadBatchId;
import com.novoda.downloadmanager.DownloadBatchStatus;
import com.novoda.downloadmanager.DownloadsBatchPersisted;
import com.novoda.downloadmanager.DownloadsFilePersisted;
import com.novoda.downloadmanager.DownloadsPersistence;

import java.util.Collections;
import java.util.List;

public class CustomDownloadsPersistence implements DownloadsPersistence {

    @Override
    public void startTransaction() {
        Log.v("Start Transaction");
    }

    @Override
    public void endTransaction() {
        Log.v("End Transaction");
    }

    @Override
    public void transactionSuccess() {
        Log.v("Transaction success");
    }

    @Override
    public void persistBatch(DownloadsBatchPersisted batchPersisted) {
        Log.v("Persist batch id: " + batchPersisted.downloadBatchId() + ", status: " + batchPersisted.downloadBatchStatus());
    }

    @Override
    public List<DownloadsBatchPersisted> loadBatches() {
        Log.v("Load batches");
        return Collections.emptyList();
    }

    @Override
    public void persistFile(DownloadsFilePersisted filePersisted) {
        Log.v("Persist file id: " + filePersisted.downloadFileId());
    }

    @Override
    public List<DownloadsFilePersisted> loadFiles(DownloadBatchId batchId) {
        Log.v("Load files for batch id: " + batchId);
        return Collections.emptyList();
    }

    @Override
    public void delete(DownloadBatchId downloadBatchId) {
        Log.v("Delete batch id: " + downloadBatchId.stringValue());
    }

    @Override
    public void update(DownloadBatchId downloadBatchId, DownloadBatchStatus.Status status) {
        Log.v("update batch id: " + downloadBatchId.stringValue() + " with status: " + status);
    }
}

@@ -1287,32 +1287,183 @@
 leId());%0A    %7D%0A%0A
+    @Override%0A    public List%3CDownloadsFilePersisted%3E loadAllFiles() %7B%0A        Log.v(%22Load all files%22);%0A        return Collections.emptyList();%0A    %7D%0A%0A
     @Override%0A  

Add method to CustomDownloadsPersistence