mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
more "architecture" around book serialization
This commit is contained in:
parent
ea45b239a1
commit
4d4a495b7c
8 changed files with 134 additions and 19 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
package org.geometerplus.android.fbreader.libraryService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.os.IBinder;
|
||||
|
@ -68,7 +70,11 @@ public class LibraryService extends Service {
|
|||
}
|
||||
|
||||
public String bookById(long id) {
|
||||
return BookSerializerUtil.serialize(myCollection.getBookById(id));
|
||||
return SerializerUtil.serialize(myCollection.getBookById(id));
|
||||
}
|
||||
|
||||
public List<String> allBookmarks() {
|
||||
return SerializerUtil.serialize(myCollection.allBookmarks());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue