Files
palemoon27/mobile/android/base/reading/ReadingListChangeAccumulator.java
T
2018-07-24 23:11:02 +08:00

21 lines
776 B
Java

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.goanna.reading;
/**
* Grab one of these, then you can add records to it by parsing
* server responses. Finishing it will flush those changes (e.g.,
* via UPDATE) to the DB.
*/
public interface ReadingListChangeAccumulator {
void addDeletion(String guid);
void addDeletion(ClientReadingListRecord record);
void addChangedRecord(ClientReadingListRecord record);
void addUploadedRecord(ClientReadingListRecord up, ServerReadingListRecord down);
void addDownloadedRecord(ServerReadingListRecord down);
void finish() throws Exception;
}