/** * @return The notebook for this linked notebook. */ public Notebook getCorrespondingNotebook() throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook = mClient.getSharedNotebookByAuth(); return mClient.getNotebook(sharedNotebook.getNotebookGuid()); }
/** * @param note The new note. * @return The new created note from the server. */ public Note createNoteInLinkedNotebook(@NonNull Note note) throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { SharedNotebook sharedNotebook = mClient.getSharedNotebookByAuth(); note.setNotebookGuid(sharedNotebook.getNotebookGuid()); return mClient.createNote(note); }
/** * 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); }
OMElement omSharedNotebook = EvernoteUtil.createOMElement("sharednotebook"); EvernoteUtil.addAttribute(omSharedNotebook,"id",createdSharedNotebook.getId()+""); EvernoteUtil.addElement(omSharedNotebook,"notebookGuid",createdSharedNotebook.getNotebookGuid()); EvernoteUtil.addElement(omSharedNotebook,"email",createdSharedNotebook.getEmail()); EvernoteUtil.addElement(omSharedNotebook,"shareKey",createdSharedNotebook.getShareKey());