26.06 26.05 25.12
26.06 26.05 25.12 Russian English

FavoritesApi. Android

Api to manipulate with favorite cameras.

Make camera favorite

Make camera favorite by it's id.

If request was successful, the response would be empty.

@POST(FAVORITES_CRUD)
suspend fun createFavorite(@Path(CAMERA) id: String): VMSCamera

Remove camera from favorites

Remove camera from favorites by it's id.

If request was successful, the response would be empty.

@DELETE(FAVORITES_CRUD)
suspend fun deleteFavorite(@Path(CAMERA) id: String): VMSStatusResponse

Get list of favorite cameras

Get list of favorite cameras. Specify page for request. For the first request set page = 0.

If request was successful you'll get paginated response of cameras.

getFavoritesList(page: Int, completion: (PaginatedResponse<VMSCamera>?, ApiError?))