Class: TalkService::GetMessageReadRange_args

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

Constant Summary collapse

CHATIDS =
2
SYNCREASON =
3
FIELDS =
{
  CHATIDS => {:type => ::Thrift::Types::LIST, :name => 'chatIds', :element => {:type => ::Thrift::Types::STRING}},
  SYNCREASON => {:type => ::Thrift::Types::I32, :name => 'syncReason', :enum_class => ::J0_a_e_a_b_rg}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2593
2594
2595
2596
2597
# File 'lib/linerb/gen-rb/talk_service.rb', line 2593

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