class ReceiveMessage (View source)

Class ReceiveMessage

Methods

__construct(string $recipient, string $sender)

Receive constructor.

$this
setSkip($skip)

Set skip

bool
isSkip()

Is skip the message

string
getSender()

Get sender

$this
setMessage($message)

No description

string
getMessage()

Get message

$this
setPostback($postback)

Set postback

string
getPostback()

Get postback payload

$this
setPayload($payload)

Set payload

boolean
isPayload()

Is playload message

string
getRecipient()

Get recipient id

$this
setAttachments($attachments)

Set attachments

array
getAttachments()

Get attachments

bool
hasAttachments()

Has attachments

Details

__construct(string $recipient, string $sender)

Receive constructor.

Parameters

string $recipient
string $sender

$this setSkip($skip)

Set skip

Parameters

$skip

Return Value

$this

bool isSkip()

Is skip the message

Return Value

bool

string getSender()

Get sender

Return Value

string

$this setMessage($message)

Parameters

$message

Return Value

$this

string getMessage()

Get message

Return Value

string

$this setPostback($postback)

Set postback

Parameters

$postback

Return Value

$this

string getPostback()

Get postback payload

Return Value

string

$this setPayload($payload)

Set payload

Parameters

$payload

Return Value

$this

boolean isPayload()

Is playload message

Return Value

boolean

string getRecipient()

Get recipient id

Return Value

string

$this setAttachments($attachments)

Set attachments

Parameters

$attachments

Return Value

$this

array getAttachments()

Get attachments

Return Value

array

bool hasAttachments()

Has attachments

Return Value

bool