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

How to handle REST and GraphQL? #97

Open
gameunite opened this issue Jun 20, 2020 · 1 comment
Open

How to handle REST and GraphQL? #97

gameunite opened this issue Jun 20, 2020 · 1 comment

Comments

@gameunite
Copy link

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

@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... :(

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

No branches or pull requests

2 participants