Class: TransferRequestReceivedInfo

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
RECEIVELINEMEMBERID =
3
RECEIVELINEUSERNICKNAME =
4
SENDMESSAGE =
7
REQUESTDATE =
8
STATUS =
9
MONEYAMOUNT =
10
FIELDS =
{
  REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId'},
  REQUESTTYPE => {:type => ::Thrift::Types::I32, :name => 'requestType', :enum_class => ::G_a_c_u0_a_d_w7},
  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_c_u0_a_d_v7},
  MONEYAMOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'moneyAmount', :class => ::DisplayMoney}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



6278
6279
6280
6281
6282
6283
6284
6285
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6278

def validate
  unless @requestType.nil? || ::G_a_c_u0_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_c_u0_a_d_v7::VALID_VALUES.include?(@status)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
  end
end