Interface RikaFirenetApi
public interface RikaFirenetApi
- Author:
- Sebastien Vermeille
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<okhttp3.ResponseBody>authenticate(Auth credentials) retrofit2.Call<okhttp3.ResponseBody>retrofit2.Call<StoveStatus>getStoveStatus(String stoveId) retrofit2.Call<okhttp3.ResponseBody>logout()retrofit2.Call<okhttp3.ResponseBody>updateControls(String stoveId, UpdatableControls fields) Typed api call (safer)
-
Method Details
-
getStoveStatus
@GET("/api/client/{stoveId}/status") @Headers("Content-Type: application/json") retrofit2.Call<StoveStatus> getStoveStatus(@Path("stoveId") String stoveId) -
authenticate
-
logout
@GET("/web/logout") retrofit2.Call<okhttp3.ResponseBody> logout() -
getStoves
@GET("/web/summary") retrofit2.Call<okhttp3.ResponseBody> getStoves() -
updateControls
@POST("/api/client/{stoveId}/controls") retrofit2.Call<okhttp3.ResponseBody> updateControls(@Path("stoveId") String stoveId, @Body UpdatableControls fields) Typed api call (safer)- Parameters:
stoveId-fields-- Returns:
-