Skip to main content
Skip table of contents

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.

CODE
@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.

CODE
@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.

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.