-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/implement the movies db app #2
base: main
Are you sure you want to change the base?
Feature/implement the movies db app #2
Conversation
/** | ||
* Get a list of the current popular movies on TMDB. | ||
*/ | ||
suspend fun getPopularMovies(): List<ApiMovie> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there another way we could return results?
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ApiCastMember( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be accessible outside?
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
@RunWith(AndroidJUnit4::class) | ||
class ExampleInstrumentedTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test used?
private set | ||
|
||
fun onStart(movieId: Int) { | ||
viewModelScope.launch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How could we avoid triggering the coroutine again, if onStart() would be called by mistake several times?
No description provided.