Class: TransferRequestInfo

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

Constant Summary collapse

REQUESTID =
1
REQUESTTYPE =
2
REQUESTLINEMEMBERID =
3
REQUESTLINEUSERNICKNAME =
4
RECEIVELINEMEMBERID =
5
RECEIVELINEUSERNICKNAME =
6
SENDMESSAGE =
9
REQUESTDATE =
10
STATUS =
11
REQUESTRECEIVEDINFO =
13
MESSAGEMETADATA =
14
MONEYAMOUNT =
15
TOTALMEMBERCOUNT =
16
STARTNUM =
17
MESSAGEID =
18
OTHERMEMBERCOUNT =
19
FIELDS =
{
  REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId'},
  REQUESTTYPE => {:type => ::Thrift::Types::I32, :name => 'requestType', :enum_class => ::G_a_b_z0_a_d_w7},
  REQUESTLINEMEMBERID => {:type => ::Thrift::Types::STRING, :name => 'requestLineMemberId'},
  REQUESTLINEUSERNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'requestLineUserNickname'},
  RECEIVELINEMEMBERID => {:type => ::Thrift::Types::STRING, :name => 'receiveLineMemberId'},
  RECEIVELINEUSERNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'receiveLineUserNickname'},
  SENDMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'sendMessage'},
  REQUESTDATE => {:type => ::Thrift::Types::I64, :name => 'requestDate'},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_b_z0_a_d_v7},
  REQUESTRECEIVEDINFO => {:type => ::Thrift::Types::LIST, :name => 'requestReceivedInfo', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TransferRequestReceivedInfo}},
   => {:type => ::Thrift::Types::MAP, :name => 'messageMetadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  MONEYAMOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'moneyAmount', :class => ::DisplayMoney},
  TOTALMEMBERCOUNT => {:type => ::Thrift::Types::I32, :name => 'totalMemberCount'},
  STARTNUM => {:type => ::Thrift::Types::I32, :name => 'startNum'},
  MESSAGEID => {:type => ::Thrift::Types::STRING, :name => 'messageId'},
  OTHERMEMBERCOUNT => {:type => ::Thrift::Types::I32, :name => 'otherMemberCount'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



7892
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7892

def struct_fields; FIELDS; end

#validateObject



7894
7895
7896
7897
7898
7899
7900
7901
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7894

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