Search in sources :

Example 1 with EvernoteSession

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();
}
Also used : LinkedNotebook(com.evernote.edam.type.LinkedNotebook) EvernoteSession(com.evernote.client.android.EvernoteSession)

Aggregations

EvernoteSession (com.evernote.client.android.EvernoteSession)1 LinkedNotebook (com.evernote.edam.type.LinkedNotebook)1