\Gomoob\Pushwoosh\Model\RequestGetNearestZoneRequest

Class which represents Pushwoosh '/getNearestZone' request.

Summary

Methods
Properties
Constants
create()
getApplication()
getHwid()
getLat()
getLng()
setApplication()
setHwid()
setLat()
setLng()
toJSON()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$application
$hwid
$lat
$lng
N/A

Properties

$application

$application : string

The Pushwoosh application ID where you send the message to.

Type

string

$hwid

$hwid : string

The hardware device id used in registerDevice function call.

Type

string

$lat

$lat : float

The latitude of the device.

Type

float

$lng

$lng : float

The longitude of the device.

Type

float

Methods

getApplication()

getApplication() : string

Gets the Pushwoosh application ID where you send the message to.

Returns

string —

Pushwoosh application ID where you send the message to.

getHwid()

getHwid() : string

Gets the hardware device id used in registerDevice function call.

Returns

string —

the hardware device id used in registerDevice function call.

getLat()

getLat() : float

Gets the latitude of the device.

Returns

float —

the latitude of the device.

getLng()

getLng() : float

Gets the longitude of the device.

Returns

float —

the longitude of the device.

setApplication()

setApplication(string $application) : \Gomoob\Pushwoosh\Model\Request\GetNearestZoneRequest

Sets the Pushwoosh application ID where you send the message to.

Parameters

string $application

Pushwoosh application ID where you send the message to.

Returns

\Gomoob\Pushwoosh\Model\Request\GetNearestZoneRequest

this instance.

setHwid()

setHwid(string $hwid) : \Gomoob\Pushwoosh\Model\Request\GetNearestZoneRequest

Sets the hardware device id used in registerDevice function call.

Parameters

string $hwid

the the hardware device id used in registerDevice function call.

Returns

\Gomoob\Pushwoosh\Model\Request\GetNearestZoneRequest

this instance.

toJSON()

toJSON() : array

Creates a JSON representation of this request.

Returns

array —

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