getScreenshot
@GetMapping(value="/{id}")
public java.util.concurrent.Callable<org.springframework.http.ResponseEntity<byte[]>> getScreenshot(@PathVariable(value="id")
java.util.UUID monitoredAreaId,
@RequestParam(value="refresh",required=false,defaultValue="false")
java.lang.Boolean refresh)
Lazily returns a screenshot of the monitored area. If there is screenshot of the area in the
database and the refresh argument is false, the screenshot is retrieved from the database,
otherwise a fresh screenshot is retrieved from the camera device, stored into the database,
and returned.
- Parameters:
monitoredAreaId
- the ID of the monitored area whose screenshot is to be fetched
refresh
- if true, a fresh screenshot is retrieved from tha camera
- Returns:
- a callable that returns the screenshot of the monitored area