mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
new API methods: getBookId, getBookLastTurningTime (no implementation at this moment)
This commit is contained in:
parent
132af46089
commit
9a3ae79474
5 changed files with 68 additions and 7 deletions
|
@ -70,10 +70,14 @@ public class ApiServerImplementation extends ApiInterface.Stub implements Api, A
|
|||
return ApiObject.envelope(getBookLanguage());
|
||||
case GET_BOOK_TITLE:
|
||||
return ApiObject.envelope(getBookTitle());
|
||||
case GET_BOOK_FILE_NAME:
|
||||
return ApiObject.envelope(getBookFileName());
|
||||
case GET_BOOK_FILE_PATH:
|
||||
return ApiObject.envelope(getBookFilePath());
|
||||
case GET_BOOK_HASH:
|
||||
return ApiObject.envelope(getBookHash());
|
||||
case GET_BOOK_ID:
|
||||
return ApiObject.envelope(getBookId());
|
||||
case GET_BOOK_LAST_TURNING_TIME:
|
||||
return ApiObject.envelope(getBookLastTurningTime());
|
||||
case GET_PARAGRAPHS_NUMBER:
|
||||
return ApiObject.envelope(getParagraphsNumber());
|
||||
case GET_ELEMENTS_NUMBER:
|
||||
|
@ -180,7 +184,7 @@ public class ApiServerImplementation extends ApiInterface.Stub implements Api, A
|
|||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public String getBookFileName() {
|
||||
public String getBookFilePath() {
|
||||
return myReader.Model.Book.File.getPath();
|
||||
}
|
||||
|
||||
|
@ -188,6 +192,16 @@ public class ApiServerImplementation extends ApiInterface.Stub implements Api, A
|
|||
return myReader.Model.Book.getContentHashCode();
|
||||
}
|
||||
|
||||
public String getBookId() {
|
||||
// TODO: implement
|
||||
return null;
|
||||
}
|
||||
|
||||
public Date getBookLastTurningTime() {
|
||||
// TODO: implement
|
||||
return null;
|
||||
}
|
||||
|
||||
// page information
|
||||
public TextPosition getPageStart() {
|
||||
return getTextPosition(myReader.getTextView().getStartCursor());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue