Skip to content

fav search rename and location change#27

Merged
Mikawu73 merged 2 commits intomainfrom
alexander.sun3
Dec 1, 2024
Merged

fav search rename and location change#27
Mikawu73 merged 2 commits intomainfrom
alexander.sun3

Conversation

@GuoYuHeJason
Copy link
Copy Markdown
Owner

No description provided.

@Mikawu73 Mikawu73 self-requested a review December 1, 2024 18:07
Copy link
Copy Markdown
Collaborator

@Mikawu73 Mikawu73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix Presenter and Interactor's initializer method


import use_case.fav_search.FavSearchInputBoundary;

public class FavSearchController {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should leave a Java Doc


public SearchFavouritesPresenter(FavouriteView favouriteView, JokeFrameBuilder jokeFrameBuilder) {
public FavSearchPresenter(FavouriteViewModel favouriteView, JokeFrameBuilder jokeFrameBuilder) {
this.favouriteView = favouriteView;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameter is a FavouriteViewModel, but private variable is a FavouriteView

private final FavSearchDataAccessInterface dataAccess;
private final FavSearchOutputBoundary presenter;

public FavSearchInteractor(FavSearchOutputBoundary presenter) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initializer should import a DataAccessObject with a type of DataAccessInterface

@Mikawu73 Mikawu73 merged commit 430186b into main Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants