Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/friend view calendar fetch #149

Merged
merged 6 commits into from
Dec 13, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class BrowseSceneDIContainer {
return DefaultFriendUseCase(questsRepository: makeQuestsRepository())
}

func makeFriendCalendarUseCase(with user: User) -> FriendCalendarUseCase {
func makeFriendCalendarUseCase(with user: User) -> CalendarUseCase {
Copy link
Collaborator

Choose a reason for hiding this comment

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

์ด๋ถ€๋ถ„ ์ฐธ๊ณ ํ•ด์„œ, DI Container ๋ณ€๊ฒฝ๋˜๋Š” ๋ถ€๋ถ„์„ ์ฒ˜๋ฆฌํ•ด์•ผ๊ฒ ์Šต๋‹ˆ๋‹ค. ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

return DefaultFriendCalendarUseCase(user: user, questsRepository: makeQuestsRepository())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import RxCocoa
final class FriendViewModel {
private(set) var user: User
private let friendQuestUseCase: FriendQuestUseCase
private let friendCalendarUseCase: FriendCalendarUseCase
private let friendCalendarUseCase: CalendarUseCase

init(user: User,
friendQuestUseCase: FriendQuestUseCase,
friendCalendarUseCase: FriendCalendarUseCase)
friendCalendarUseCase: CalendarUseCase)
{
self.user = user
self.friendQuestUseCase = friendQuestUseCase
Expand Down