-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: minor refactoring and addition of remote source for favourites
- Loading branch information
Showing
7 changed files
with
28 additions
and
241 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...ata/src/main/kotlin/co/anitrend/data/favourite/datasource/remote/FavouriteRemoteSource.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package co.anitrend.data.favourite.datasource.remote | ||
|
||
import co.anitrend.data.core.GRAPHQL | ||
import co.anitrend.data.core.api.model.GraphQLResponse | ||
import io.github.wax911.library.annotation.GraphQuery | ||
import io.github.wax911.library.model.request.QueryContainerBuilder | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
internal interface FavouriteRemoteSource { | ||
|
||
@GRAPHQL | ||
@POST | ||
@GraphQuery("ToggleAnimeFavorite") | ||
suspend fun toggleAnimeFavorite( | ||
@Body queryContainer: QueryContainerBuilder | ||
): Response<GraphQLResponse<Boolean>> | ||
} |
This file contains 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
This file contains 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
This file contains 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