Class: Alula::CameraSetRecordingConfigProc
- Inherits:
-
RpcResource
- Object
- RpcResource
- Alula::CameraSetRecordingConfigProc
- Defined in:
- lib/alula/procedures/camera_set_rec_config_proc.rb
Defined Under Namespace
Classes: Response
Class Method Summary collapse
Methods inherited from RpcResource
Class Method Details
.call(serial_number:, record_mode:, pre_seconds:, post_seconds:) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/alula/procedures/camera_set_rec_config_proc.rb', line 16 def self.call(serial_number:, record_mode:, pre_seconds:, post_seconds:) request( http_method: :post, path: "/video/v1/device/#{serial_number}/recordConfig", payload: { event: { recordMode: record_mode, preSeconds: pre_seconds.to_i, postSeconds: post_seconds.to_i }, allday: { mode: 'NULL' } }, handler: Response, wrap: false ) end |