This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.
Should I just create an interface for the remote api then just process each api on its own class?
GetUserRest.kt
class GetUserRest : RemoteSource {
fun process(): Data {}
}
GetUserGraphQL.kt
class GetUserGraphQL : RemoteSource {
fun process(): Data {}
}
@gameunite That sounds legit. Have you achieve it? I'm interested in more details since I wanted to play around GraphQL too...still did not have time... :(
Should I just create an interface for the remote api then just process each api on its own class?