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 => ::P0_a_e_a_b_ad},
  TARGET => {:type => ::Thrift::Types::STRING, :name => 'target'},
  ENABLEMENT => {:type => ::Thrift::Types::BOOL, :name => 'enablement'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



5694
5695
5696
5697
5698
# File 'lib/linerb/gen-rb/talk_service.rb', line 5694

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