Last active
November 6, 2021 20:02
-
-
Save murattuzel/aa55344ea1b1b7ff884a200ecdd74094 to your computer and use it in GitHub Desktop.
Attaching a tag for GET method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum class MockRequestType(val filePath: String) { | |
MOVIES(MovieService.MOVIES) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface MovieService { | |
@GET(MOVIES) | |
suspend fun fetchMovies( | |
@Tag type: MockRequestType = MockRequestType.MOVIES | |
): MoviesResponse | |
companion object { | |
const val MOVIES = "local/response_movies_success.json" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment