use of com.evernote.client.android.EvernoteSession in project Notes by lguipeng.
the class NoteRefHelper method getNoteStore.
public static EvernoteNoteStoreClient getNoteStore(NoteRef noteRef) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException {
EvernoteSession session = getSession();
if (!noteRef.isLinked()) {
return getSession().getEvernoteClientFactory().getNoteStoreClient();
}
LinkedNotebook linkedNotebook = getLinkedNotebook(noteRef.getNotebookGuid());
if (linkedNotebook == null) {
return null;
}
return session.getEvernoteClientFactory().getLinkedNotebookHelper(linkedNotebook).getClient();
}
Aggregations