Class: OpenZWave::RemoteValueID

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

Overview

Delete a handheld button id.

Direct Known Subclasses

Ansible::ZWave::ValueID

Constant Summary collapse

FIELDS =
{
  _HOMEID => {:type => ::Thrift::Types::I32, :name => '_homeId'},
  _NODEID => {:type => ::Thrift::Types::BYTE, :name => '_nodeId'},
  _GENRE => {:type => ::Thrift::Types::I32, :name => '_genre', :enum_class => ::OpenZWave::RemoteValueGenre},
  _COMMANDCLASSID => {:type => ::Thrift::Types::BYTE, :name => '_commandClassId'},
  _INSTANCE => {:type => ::Thrift::Types::BYTE, :name => '_instance'},
  _VALUEINDEX => {:type => ::Thrift::Types::BYTE, :name => '_valueIndex'},
  _TYPE => {:type => ::Thrift::Types::I32, :name => '_type', :enum_class => ::OpenZWave::RemoteValueType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



94
# File 'lib/ansible/zwave/openzwave/ozw_types.rb', line 94

def struct_fields; FIELDS; end

#validateObject



96
97
98
99
100
101
102
103
# File 'lib/ansible/zwave/openzwave/ozw_types.rb', line 96

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