zoyasiddiqui / NoteNinja

A note-taking app with python code snippets and AI helpers.
MIT License
3 stars 1 forks source link

SaveNote use case heavy modifications #16

Closed mrdandelion6 closed 10 months ago

mrdandelion6 commented 10 months ago

Implemented execute() in SaveController: we now create a saveNoteInputData object and pass it into saveNoteInteractor.execute(). Adjusted SaveNoteInputBoundary to now take a saveNoteInputData object as parameter, before it was just empty. removed note object from SaveNoteInteractor's constructor parameter. Note objects should not be directly passed into the constructor but rather be created or updated within the Interactor's execute() method. Added noteFactory attribute to saveNoteInteractor so that new notes may be created when we call execute(). Heavily adjusted EditNoteUseCaseFactory to account for passing in the correct attributes when creating Interactor. noteFactory attribute to saveNoteInteractor so that new notes may be created when we call execute(). Heavily adjusted EditNoteUseCaseFactory to account for passing in the correct attributes when creating Interactor.