Class: TalkService::RemoveFriendRequest_args

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

Constant Summary collapse

DIRECTION =
1
MIDOREMID =
2
FIELDS =
{
  DIRECTION => {:type => ::Thrift::Types::I32, :name => 'direction', :enum_class => ::P0_a_e_a_b_xa},
  MIDOREMID => {:type => ::Thrift::Types::STRING, :name => 'midOrEMid'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2627
2628
2629
2630
2631
# File 'lib/linerb/gen-rb/talk_service.rb', line 2627

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