Skip to content

Instantly share code, notes, and snippets.

@RobertApikyan
Created September 22, 2021 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertApikyan/5c1951893243bb14ead8bc546fcad4f5 to your computer and use it in GitHub Desktop.
Save RobertApikyan/5c1951893243bb14ead8bc546fcad4f5 to your computer and use it in GitHub Desktop.
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