Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Feb 7, 2023
1 parent 2b7e82f commit 8322471
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
package org.michaelbel.movies.entities

data class MovieData(
val id: Int = 0,
val overview: String = "",
val posterPath: String = "",
val backdropPath: String = "",
val releaseDate: String = "",
val title: String = "",
val voteAverage: Float = 0F,
val genreIds: List<Int> = listOf()
val id: Int,
val overview: String,
val posterPath: String,
val backdropPath: String,
val releaseDate: String,
val title: String,
val voteAverage: Float,
val genreIds: List<Int>
) {
companion object {
const val NOW_PLAYING = "now_playing"
const val DEFAULT_PAGE_SIZE = 10

val Empty: MovieData = MovieData(
id = 0,
overview = "",
posterPath = "",
backdropPath = "",
releaseDate = "",
title = "",
voteAverage = 0F,
genreIds = listOf()
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ internal fun FeedLoading(
modifier = Modifier
.fillMaxWidth()
.padding(
start = 16.dp,
top = 4.dp,
end = 16.dp,
bottom = 4.dp
horizontal = 16.dp,
vertical = 4.dp
)
.placeholder(
visible = true,
color = MaterialTheme.colorScheme.inversePrimary,
shape = MaterialTheme.shapes.small,
highlight = PlaceholderHighlight.fade()
),
movie = MovieData()
movie = MovieData.Empty
)
}
}
Expand Down

0 comments on commit 8322471

Please sign in to comment.