X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff..269195b3729c1bdc22e9053ee4ebca667ea8549d:/Android/folioreader/src/main/java/com/folioreader/model/HighLight.java diff --git a/Android/folioreader/src/main/java/com/folioreader/model/HighLight.java b/Android/folioreader/src/main/java/com/folioreader/model/HighLight.java new file mode 100755 index 0000000..60c9457 --- /dev/null +++ b/Android/folioreader/src/main/java/com/folioreader/model/HighLight.java @@ -0,0 +1,74 @@ +package com.folioreader.model; + +import java.util.Date; + +/** + * Interface to access Highlight data. + * + * @author gautam chibde on 9/10/17. + */ + +public interface HighLight { + + /** + * Highlight action + */ + enum HighLightAction { + NEW, DELETE, MODIFY + } + + /** + *

Returns Book id, which can be provided to intent to folio reader, if not provided id is + * used from epub's dc:identifier field in metadata. + *

for reference, look here: + * IDPF.

+ * in case identifier is not found in the epub, + * hash code + * of book title is used also if book title is not found then + * hash code of the book file name is used. + *

+ */ + String getBookId(); + + /** + * Returns Highlighted text content text content. + */ + String getContent(); + + /** + * Returns Date time when highlight is created (format:- MMM dd, yyyy | HH:mm). + */ + Date getDate(); + + /** + * Returns Field defines the color of the highlight. + */ + String getType(); + + /** + * Returns Page index in the book taken from Epub spine reference. + */ + int getPageNumber(); + + /** + * Returns href of the page from the Epub spine list. + */ + String getPageId(); + + /** + *

Contains highlight meta data in terms of rangy format.

+ * format :- start$end$id$class$containerId. + *

for reference, look here: rangy.

+ */ + String getRangy(); + + /** + * returns Unique identifier. + */ + String getUUID(); + + /** + * Returns Note linked to the highlight (optional) + */ + String getNote(); +}