Class: ClientNetworkStatus

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

NETWORKTYPE =
1
FIELDS =
{
  NETWORKTYPE => {:type => ::Thrift::Types::I32, :name => 'networkType', :enum_class => ::P0_a_e_a_b_t7}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



15043
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15043

def struct_fields; FIELDS; end

#validateObject



15045
15046
15047
15048
15049
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15045

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