Class: ONVIF::PtzAction::RemovePreset
- Defined in:
- lib/ruby_onvif_client/ptz/remove_preset.rb
Instance Method Summary collapse
-
#run(options, cb) ⇒ Object
options 的结构 { profile_token: “xxxxxxx”, //[ReferenceToken] A reference to the MediaProfile where the operation should take place. preset_token: “xxxxxxx” //[ReferenceToken] A requested preset token. }.
Methods inherited from Action
#attribute, #callback, #create_event_onvif_message, #create_media_onvif_message, #create_ptz_onvif_message, #initialize, #send_message, #value
Constructor Details
This class inherits a constructor from ONVIF::Action
Instance Method Details
#run(options, cb) ⇒ Object
options 的结构
profile_token: "xxxxxxx", //[ReferenceToken] A reference to the MediaProfile where the operation should take place.
preset_token: "xxxxxxx" //[ReferenceToken] A requested preset token.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ruby_onvif_client/ptz/remove_preset.rb', line 11 def run ,cb = .body = ->(xml) do xml.wsdl(:RemovePreset) do xml.wsdl :ProfileToken, [:profile_token] xml.wsdl :PresetToken, [:preset_token] end end do |success, result| callback cb, success, result end end |