Class: GetGnbBadgeStatusResponse

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

UENREVISION =
1
BADGESTATUS =
2
FIELDS =
{
  UENREVISION => {:type => ::Thrift::Types::STRING, :name => 'uenRevision'},
  BADGESTATUS => {:type => ::Thrift::Types::I32, :name => 'badgeStatus', :enum_class => ::G_a_m_a0_a}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



12662
12663
12664
12665
12666
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12662

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