public LinkedNotebook createBusinessNotebook(@NonNull Notebook notebook, @NonNull EvernoteNoteStoreClient defaultClient)
            throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException {

        Notebook originalNotebook = mClient.createNotebook(notebook);

        List<SharedNotebook> sharedNotebooks = originalNotebook.getSharedNotebooks();
        SharedNotebook sharedNotebook = sharedNotebooks.get(0);

        LinkedNotebook linkedNotebook = new LinkedNotebook();
        linkedNotebook.setShareKey(sharedNotebook.getShareKey());
        linkedNotebook.setShareName(originalNotebook.getName());
        linkedNotebook.setUsername(mBusinessUserName);
        linkedNotebook.setShardId(mBusinessUserShardId);

        return defaultClient.createLinkedNotebook(linkedNotebook);
    }
public LinkedNotebook createBusinessNotebook ( @ NonNull Notebook notebook , @ NonNull EvernoteNoteStoreClient defaultClient ) throws TException , EDAMUserException , EDAMSystemException , EDAMNotFoundException { Notebook originalNotebook = mClient . createNotebook ( notebook ) ; List < SharedNotebook > sharedNotebooks = originalNotebook . getSharedNotebooks ( ) ; SharedNotebook sharedNotebook = sharedNotebooks . get ( 0 ) ; LinkedNotebook linkedNotebook = new LinkedNotebook ( ) ; linkedNotebook . setShareKey ( sharedNotebook . getShareKey ( ) ) ; linkedNotebook . setShareName ( originalNotebook . getName ( ) ) ; linkedNotebook . setUsername ( mBusinessUserName ) ; linkedNotebook . setShardId ( mBusinessUserShardId ) ; return defaultClient . createLinkedNotebook ( linkedNotebook ) ; }
@param notebook The new business notebook.
@param defaultClient The note store client, which references the user's note store.
@return The new created {@link LinkedNotebook}, which has an business ID.