Created
September 22, 2021 12:01
-
-
Save RobertApikyan/5c1951893243bb14ead8bc546fcad4f5 to your computer and use it in GitHub Desktop.
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
package com.hfh.wellbe.smartwatch.api.apiClient.retrofit.services | |
import com.hfh.wellbe.smartwatch.models.* | |
import okhttp3.ResponseBody | |
import retrofit2.Call | |
import retrofit2.http.* | |
interface ClientApiService { | |
companion object{ | |
const val DEVICE_INFO_URL = "device" | |
} | |
@POST("device/activate") | |
fun configDevice(@Body config: WatchConfig): Call<WatchConfig> | |
@GET("device/activationCode/{code}") | |
fun configByActivationCode(@Path("code") code:String): Call<WatchConfig> | |
@GET("preferences/device") | |
fun devicePreferences():Call<PreferencesResult> | |
@POST("device/update") | |
fun deviceUpdate(@Body deviceUpdate: DeviceUpdateRequest?):Call<DeviceUpdateResponse> | |
@DELETE("device/activated") | |
fun deleteDeviceActivationCode():Call<BooleanResult> | |
@GET(DEVICE_INFO_URL) | |
fun deviceInfo():Call<DeviceInfo?> | |
@POST("device/firebasetoken") | |
fun firebaseToken(@Body() notificationToken: NotificationToken):Call<ResponseBody> | |
@POST("device/gps") | |
fun geofencingReport(@Body geofencingReport: GeofencingReport):Call<ResponseBody> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment