Last active
April 14, 2020 16:23
-
-
Save Nimrodda/9363a081bf539409b114b79ff351f35e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
data class WorkoutSummaryViewState( | |
val workoutId: Int, | |
val coverImagesItem: ViewState<CoverImagesItem>, | |
val likesItem: ViewState<LikesItem>, | |
val commentsItem: ViewState<CommentsItem>, | |
val workoutSummaryItem: ViewState<WorkoutSummaryItem> | |
) | |
typealias OnClickHandler = (workoutId: Int) -> Unit | |
data class CoverImagesItem( | |
val imagesUrls: List<String>, | |
val onClickHandler: OnClickHandler | |
) | |
data class LikesItem( | |
val hasUserLiked: Boolean, | |
val likesCount: Int, | |
val userAvatars: List<String>, | |
val onClickHandler: OnClickHandler | |
) | |
data class CommentsItem( | |
val comments: List<UserComment> | |
) | |
data class WorkoutSummaryItem( | |
... | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment