-
Notifications
You must be signed in to change notification settings - Fork 200
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
Added logic to add bookmark #118
Conversation
8b66073
to
e2738cc
Compare
streamTimetable: unimplemented("TimetableClient.streamTimetable"), | ||
streamTimetableItemWithFavorite: unimplemented("TimetableClient.streamTimetableItemWithFavorite"), | ||
toggleBookmark: unimplemented("TimetableClient.toggleBookmark") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to use unimplemented as recommended in swift-dependencies libraries.
I changed to mock functions that are needed in unit tests.
https://pointfreeco.github.io/swift-dependencies/main/documentation/dependencies/livepreviewtest/#Test-value
b699899
to
a871d00
Compare
a871d00
to
d3acfea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THX!!!
I left a comment. please check it👍
do { | ||
await send(.bookmarkResponse(.success( | ||
try await timetableClient.toggleBookmark(id: TimetableItemId(value: "")) | ||
))) | ||
} catch { | ||
await send(.bookmarkResponse(.failure(error))) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do { | |
await send(.bookmarkResponse(.success( | |
try await timetableClient.toggleBookmark(id: TimetableItemId(value: "")) | |
))) | |
} catch { | |
await send(.bookmarkResponse(.failure(error))) | |
} | |
await send(.bookmarkResponse(Result { | |
try await timetableClient.toggleBookmark(id: TimetableItemId(value: "")) | |
})) |
I guess you could change these like that🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's smarter that way. Thx!
@MrSmart00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼 Thanks!
Overview (Required)
Movie (Optional)
2024-07-12.1.21.12.mov