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_b_z0_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_b_z0_a_d_v7},
  MONEYAMOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'moneyAmount', :class => ::DisplayMoney}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



7842
7843
7844
7845
7846
7847
7848
7849
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7842

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