Class: OpenZWave::RemoteManager::BeginControllerCommand_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/ansible/zwave/openzwave/ozw_remote_manager.rb

Constant Summary collapse

FIELDS =
{
  _HOMEID => {:type => ::Thrift::Types::I32, :name => '_homeId'},
  _COMMAND => {:type => ::Thrift::Types::I32, :name => '_command', :enum_class => ::OpenZWave::DriverControllerCommand},
  _HIGHPOWER => {:type => ::Thrift::Types::BOOL, :name => '_highPower'},
  _NODEID => {:type => ::Thrift::Types::BYTE, :name => '_nodeId'},
  _ARG => {:type => ::Thrift::Types::BYTE, :name => '_arg'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



6291
# File 'lib/ansible/zwave/openzwave/ozw_remote_manager.rb', line 6291

def struct_fields; FIELDS; end

#validateObject



6293
6294
6295
6296
6297
# File 'lib/ansible/zwave/openzwave/ozw_remote_manager.rb', line 6293

def validate
  unless @_command.nil? || ::OpenZWave::DriverControllerCommand::VALID_VALUES.include?(@_command)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field _command!')
  end
end