\Overtrue\EasySms\ContractsMessageInterface

Interface MessageInterface.

Summary

Methods
Constants
getMessageType()
getContent()
getTemplate()
getData()
getGateways()
TEXT_MESSAGE
VOICE_MESSAGE
No protected methods found
N/A
No private methods found
N/A

Constants

TEXT_MESSAGE

TEXT_MESSAGE = 'text'

VOICE_MESSAGE

VOICE_MESSAGE = 'voice'

Methods

getMessageType()

getMessageType() : string

Return the message type.

Returns

string —

getContent()

getContent(\Overtrue\EasySms\Contracts\GatewayInterface|null  $gateway = null) : string

Return message content.

Parameters

\Overtrue\EasySms\Contracts\GatewayInterface|null $gateway

Returns

string —

getTemplate()

getTemplate(\Overtrue\EasySms\Contracts\GatewayInterface|null  $gateway = null) : string

Return the template id of message.

Parameters

\Overtrue\EasySms\Contracts\GatewayInterface|null $gateway

Returns

string —

getData()

getData(\Overtrue\EasySms\Contracts\GatewayInterface|null  $gateway = null) : array

Return the template data of message.

Parameters

\Overtrue\EasySms\Contracts\GatewayInterface|null $gateway

Returns

array —

getGateways()

getGateways() : array

Return message supported gateways.

Returns

array —