-
-
Notifications
You must be signed in to change notification settings - Fork 30
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 #66 from RajashekarRaju/v0.3.0
Merge all completed roadmap tasks into master
- Loading branch information
Showing
36 changed files
with
1,167 additions
and
656 deletions.
There are no files selected for viewing
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
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
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
83 changes: 83 additions & 0 deletions
83
app/src/main/java/com/developersbreach/composeactors/data/datasource/fake/ActorData.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,83 @@ | ||
package com.developersbreach.composeactors.data.datasource.fake | ||
|
||
import com.developersbreach.composeactors.data.model.Actor | ||
import com.developersbreach.composeactors.data.model.ActorDetail | ||
import com.developersbreach.composeactors.data.model.Cast | ||
import com.developersbreach.composeactors.data.model.FavoriteActor | ||
|
||
private val actorsData = listOf( | ||
"John travolta", | ||
"Samuel L Jackson", | ||
"Uma Thurman", | ||
"Bruce Willis", | ||
"Ving Rhames", | ||
"Harvey Keitel", | ||
"Tim Roth", | ||
"Amanda Plummer", | ||
"Quentin Tarantino", | ||
"Christopher Walken", | ||
"Eric Stoltz", | ||
"Maria de Medeiros", | ||
"Rosanna Arquette", | ||
"Sophia Lillis", | ||
) | ||
|
||
fun fakeActorsList(): MutableList<Actor> { | ||
val actors = mutableListOf<Actor>() | ||
actorsData.forEachIndexed { index, name -> | ||
actors.add(Actor(index, name, "")) | ||
} | ||
return actors | ||
} | ||
|
||
fun fakeFavoriteActorsList(): MutableList<FavoriteActor> { | ||
val actors = mutableListOf<FavoriteActor>() | ||
actorsData.forEachIndexed { index, name -> | ||
actors.add(FavoriteActor(index, name, "", "Berlin")) | ||
} | ||
return actors | ||
} | ||
|
||
fun fakeMovieCastList(): MutableList<Cast> { | ||
val cast = mutableListOf<Cast>() | ||
actorsData.forEachIndexed { index, name -> | ||
cast.add(Cast(index, name, "")) | ||
} | ||
return cast | ||
} | ||
|
||
val popularActorList = listOf( | ||
Actor( | ||
actorId = 28782, | ||
actorName = "Monica Bellucci", | ||
profileUrl = "z3sLuRKP7hQVrvSTsqdLjGSldwG.jpg" | ||
), | ||
Actor( | ||
actorId = 287, | ||
actorName = "Brad Pitt", | ||
profileUrl = "kU3B75TyRiCgE270EyZnHjfivoq.jpg" | ||
) | ||
) | ||
|
||
val trendingActorList = listOf( | ||
Actor( | ||
actorId = 8784, | ||
actorName = "Daniel Craig", | ||
profileUrl = "rFuETZeyOAfIqBahOObF7Soq5Dh.jpg" | ||
), | ||
Actor( | ||
actorId = 1892, | ||
actorName = "Matt Damon", | ||
profileUrl = "7wbHIn7GziFlJLPl8Zu1XVl24EG.jpg" | ||
), | ||
) | ||
|
||
val fakeActorDetail = ActorDetail( | ||
actorId = 28782, | ||
actorName = "Monica Bellucci", | ||
profileUrl = "z3sLuRKP7hQVrvSTsqdLjGSldwG.jpg", | ||
biography = "This is fake biography for the actor added here to see how the actual preview looks in the screen so don't get any serious about this.", | ||
dateOfBirth = "59", | ||
placeOfBirth = "Italy", | ||
popularity = 43.0 | ||
) |
65 changes: 65 additions & 0 deletions
65
app/src/main/java/com/developersbreach/composeactors/data/datasource/fake/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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.developersbreach.composeactors.data.datasource.fake | ||
|
||
import com.developersbreach.composeactors.data.model.Genre | ||
import com.developersbreach.composeactors.data.model.Movie | ||
import com.developersbreach.composeactors.data.model.MovieDetail | ||
|
||
fun fakeMovieList(): MutableList<Movie> { | ||
val movies = mutableListOf<Movie>() | ||
listOf( | ||
"Pulp Fiction", | ||
"Kill Bill: Volume 1", | ||
"Taxi Driver", | ||
"Goodfellas", | ||
"Kill Bill: Volume 2", | ||
"Heat", | ||
"Scarface", | ||
"Scent of a Woman", | ||
"The Devil's Advocate", | ||
"The Prestige", | ||
"Prisoners", | ||
"American Psycho", | ||
"Logan", | ||
).forEachIndexed { index, name -> | ||
movies.add(Movie(index, name, "", "")) | ||
} | ||
|
||
return movies | ||
} | ||
|
||
val upcomingMoviesList = listOf( | ||
Movie( | ||
movieId = 363736, movieName = "Oppenheimer", posterPathUrl = "", bannerUrl = "" | ||
), | ||
Movie( | ||
movieId = 123434, movieName = "Dune", posterPathUrl = "", bannerUrl = "" | ||
) | ||
) | ||
|
||
val nowPlayingMoviesList = listOf( | ||
Movie( | ||
movieId = 157336, movieName = "Interstellar", posterPathUrl = "", bannerUrl = "" | ||
), | ||
Movie( | ||
movieId = 244786, movieName = "Whiplash", posterPathUrl = "", bannerUrl = "" | ||
) | ||
) | ||
|
||
val fakeMovieDetail = MovieDetail( | ||
movieId = 12345, | ||
movieTitle = "Pulp Fiction", | ||
banner = "banner-url.jpeg", | ||
budget = "20 Million", | ||
genres = listOf(Genre(1, "Thriller"), Genre(2, "Crime")), | ||
originalLanguage = "English", | ||
overview = "In the realm of underworld, a series of incidents intertwines the lives of two Los Angeles mobsters, a gangster's wife, a boxer and two small-time criminals.", | ||
popularity = 99.0, | ||
poster = "poster-url.jpeg", | ||
productionCompanies = listOf("Whatever, WhoCares"), | ||
releaseDate = "1994", | ||
revenue = 21400000, | ||
runtime = 154, | ||
status = "Released", | ||
tagline = "You won't know the facts until you've seen the fiction.", | ||
voteAverage = 99.0, | ||
) |
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
Oops, something went wrong.