Skip to content
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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ekremsenturk
Copy link

No description provided.

/**
* Get a list of the current popular movies on TMDB.
*/
suspend fun getPopularMovies(): List<ApiMovie>
Copy link
Owner

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(
Copy link
Owner

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 {
Copy link
Owner

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 {
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants