Message Factory
Responsible for instantiating MintChip messages.
Methods
messageFactory.createValueRequestMessage(payeeId, amount, currencyCode)
|
|
Creates an instance of the ValueRequestMessage object.
- Parameters:
payeeId - the MintChip Id of the payee, the recipient.
amount - the amount to be paid.
currencyCode - the currency to be paid in - one of the CurrencyCode attributes.
- Returns:
- ValueRequestMessage object.
- Exception:
- None.
|
messageFactory.toMessage(base64Message)
|
|
Creates a MintChip Message from an encoded base64 string.
- Parameters:
base64Message - the base64 encoded Message.
- Returns:
- ValueRequestMessage or ValueMessage object.
- Exception:
- if the message can not be decoded correctly or if the message has been tampered with.
|