\Gomoob\Pushwoosh\Model\NotificationAndroid

Class which represents specific Pushwoosh notification informations for Android (Google Cloud Messaging).

Summary

Methods
Properties
Constants
create()
getBanner()
getCustomIcon()
getGcmTtl()
getHeader()
getIcon()
getRootParams()
getSound()
setBanner()
setCustomIcon()
setGcmTtl()
setHeader()
setIcon()
setRootParams()
setSound()
toJSON()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$banner
$customIcon
$gcmTtl
$header
$icon
$rootParams
$sound
N/A

Properties

$banner

$banner

$customIcon

$customIcon

$gcmTtl

$gcmTtl : int

The Google Cloud Messaging Time To Live, this indicates how long (in seconds) the message should be kept on GCM storage if the device is offline. Optional (default time-to-live is 4 weeks, and must be set as a JSON number).

Type

int

$header

$header

$icon

$icon

$rootParams

$rootParams

$sound

$sound

Methods

getBanner()

getBanner()

getCustomIcon()

getCustomIcon()

getGcmTtl()

getGcmTtl() : int

Gets the Google Cloud Messaging Time To Live, this indicates how long (in seconds) the message should be kept on GCM storage if the device is offline. Optional (default time-to-live is 4 weeks, and must be set as a JSON number).

Returns

int —

the Google Cloud Messaging Time To Live.

getHeader()

getHeader()

getIcon()

getIcon()

getRootParams()

getRootParams()

getSound()

getSound()

setBanner()

setBanner( $banner)

Parameters

$banner

setCustomIcon()

setCustomIcon( $customIcon)

Parameters

$customIcon

setGcmTtl()

setGcmTtl(int $gcmTtl)

Sets the Google Cloud Messaging Time To Live, this indicates how long (in seconds) the message should be kept on GCM storage if the device is offline. Optional (default time-to-live is 4 weeks, and must be set as a JSON number).

Parameters

int $gcmTtl

the Google Cloud Messaging Time To Live.

setHeader()

setHeader( $header)

Parameters

$header

setIcon()

setIcon( $icon)

Parameters

$icon

setRootParams()

setRootParams( $rootParams)

Parameters

$rootParams

setSound()

setSound( $sound)

Parameters

$sound

toJSON()

toJSON() : array

Creates a JSON representation of this request.

Returns

array —

a PHP array which can be passed to the 'json_encode' PHP method.