-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from 07jasjeet/main
Feed: Move to callbacks architecture
- Loading branch information
Showing
2 changed files
with
89 additions
and
86 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
app/src/main/java/org/listenbrainz/android/model/feed/FeedCallbacks.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.listenbrainz.android.model.feed | ||
|
||
import androidx.compose.runtime.Immutable | ||
|
||
@Immutable | ||
data class FeedCallbacks( | ||
val onScrollToTop: (suspend () -> Unit) -> Unit, | ||
val onDeleteOrHide: (event: FeedEvent, eventType: FeedEventType, parentUser: String) -> Unit, | ||
val onErrorShown: () -> Unit, | ||
val onRecommend: (event: FeedEvent) -> Unit, | ||
val onPersonallyRecommend: (event: FeedEvent, users: List<String>, blurbContent: String) -> Unit, | ||
val onReview: (event: FeedEvent, entityType: ReviewEntityType, blurbContent: String, rating: Int?, locale: String) -> Unit, | ||
val onPin: (event: FeedEvent, blurbContent: String?) -> Unit, | ||
val searchFollower: (String) -> Unit, | ||
val isCritiqueBrainzLinked: suspend () -> Boolean?, | ||
val onPlay: (event: FeedEvent) -> Unit, | ||
val goToUserPage: (String) -> Unit, | ||
val goToArtistPage: (String) -> Unit | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters