use of com.evernote.edam.type.LinkedNotebook in project Notes by lguipeng.
the class NoteRef method loadLinkedNotebook.
/**
* @return The linked notebook if this is a linked note.
* @see #isLinked()
*/
public LinkedNotebook loadLinkedNotebook() throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException {
if (!mLinked) {
return null;
}
EvernoteNoteStoreClient noteStore = NoteRefHelper.getSession().getEvernoteClientFactory().getNoteStoreClient();
if (noteStore == null) {
return null;
}
List<LinkedNotebook> linkedNotebooks = noteStore.listLinkedNotebooks();
for (LinkedNotebook linkedNotebook : linkedNotebooks) {
if (linkedNotebook.getGuid().equals(mNotebookGuid)) {
return linkedNotebook;
}
}
return null;
}
Aggregations