Android-CleanArchitecture-Kotlin
Android-CleanArchitecture-Kotlin copied to clipboard
How to handle REST and GraphQL?
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... :(