Class: TalkService::SetNotificationsEnabled_args

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

Constant Summary collapse

REQSEQ =
1
TYPE =
2
TARGET =
3
ENABLEMENT =
4
FIELDS =
{
  REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::J0_a_e_a_b_zc},
  TARGET => {:type => ::Thrift::Types::STRING, :name => 'target'},
  ENABLEMENT => {:type => ::Thrift::Types::BOOL, :name => 'enablement'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



5593
# File 'lib/linerb/gen-rb/talk_service.rb', line 5593

def struct_fields; FIELDS; end

#validateObject



5595
5596
5597
5598
5599
# File 'lib/linerb/gen-rb/talk_service.rb', line 5595

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