/** * Will return the {@link com.evernote.edam.type.Notebook} associated with the * {@link com.evernote.edam.type.LinkedNotebook} from the linked account * * @param linkedNotebook */ public Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); return getClient().getNotebook(sharedNotebook.getNotebookGuid()); }
/** * Will return the {@link com.evernote.edam.type.Notebook} associated with the * {@link com.evernote.edam.type.LinkedNotebook} from the linked account * * @param linkedNotebook */ public Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); return getClient().getNotebook(sharedNotebook.getNotebookGuid()); }
/** * Helper method to create a note in a linked notebook * * @param note * @param linkedNotebook * @return * @throws com.evernote.edam.error.EDAMUserException * * @throws com.evernote.edam.error.EDAMSystemException * * @throws com.evernote.thrift.TException * @throws com.evernote.edam.error.EDAMNotFoundException * */ public Note createNote(Note note, LinkedNotebook linkedNotebook) throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); note.setNotebookGuid(sharedNotebook.getNotebookGuid()); return getClient().createNote(note); }
/** * Helper method to create a note in a linked notebook * * @param note * @param linkedNotebook * @return * @throws com.evernote.edam.error.EDAMUserException * * @throws com.evernote.edam.error.EDAMSystemException * * @throws com.evernote.thrift.TException * @throws com.evernote.edam.error.EDAMNotFoundException * */ public Note createNote(Note note, LinkedNotebook linkedNotebook) throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); note.setNotebookGuid(sharedNotebook.getNotebookGuid()); return getClient().createNote(note); }