Class: TalkService::GetMessageBoxes_args

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

Constant Summary collapse

MESSAGEBOXLISTREQUEST =
2
SYNCREASON =
3
FIELDS =
{
  MESSAGEBOXLISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'messageBoxListRequest', :class => ::MessageBoxListRequest},
  SYNCREASON => {:type => ::Thrift::Types::I32, :name => 'syncReason', :enum_class => ::J0_a_e_a_b_rg}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



5068
5069
5070
5071
5072
# File 'lib/linerb/gen-rb/talk_service.rb', line 5068

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