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 => ::P0_a_e_a_b_sg}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2664
2665
2666
2667
2668
# File 'lib/linerb/gen-rb/talk_service.rb', line 2664

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