-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b7e82f
commit 8322471
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
27 changes: 19 additions & 8 deletions
27
core/entities/src/main/kotlin/org/michaelbel/movies/entities/MovieData.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 |
---|---|---|
@@ -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() | ||
) | ||
} | ||
} |
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