Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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