Mobile/Push/Response/Gcm.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Mobile
- Subpackage
- Zend_Mobile_Push
- Version
- $Id$
\Zend_Mobile_Push_Response_Gcm
Package: Zend_Mobile\Zend_Mobile_Push
Gcm Response
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Constants
Properties
Methods
__construct(string $responseString = null, \Zend_Mobile_Push_Message_Gcm $message = null) : \Zend_Mobile_Push_Response_Gcm
Constructor
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$responseString | string | JSON encoded response |
$message | \Zend_Mobile_Push_Message_Gcm |
Type | Description |
---|---|
\Zend_Mobile_Push_Response_Gcm |
Exception | Description |
---|---|
\Zend_Mobile_Push_Exception_ServerUnavailable |
getMessage() : \Zend_Mobile_Push_Message_Gcm
Get Message
Returns
Type | Description |
---|---|
\Zend_Mobile_Push_Message_Gcm |
getResult(int $flag) : array
Get Singular Result
Parameters
Returns
Name | Type | Description |
---|---|---|
$flag | int | one of the RESULT_* flags |
Type | Description |
---|---|
array | singular array with keys being registration id value is the type of result |
getResults() : array
Get Results
Returns
Type | Description |
---|---|
array | multi dimensional array of: NOTE: key is registration_id if the message is passed. 'registration_id' => array( 'message_id' => 'id', 'error' => 'error', 'registration_id' => 'id' ) |
setMessage(\Zend_Mobile_Push_Message_Gcm $message) : \Zend_Mobile_Push_Response_Gcm
Set Message
Parameters
Returns
Name | Type | Description |
---|---|---|
$message | \Zend_Mobile_Push_Message_Gcm |
Type | Description |
---|---|
\Zend_Mobile_Push_Response_Gcm |
setResponse(array $response) : \Zend_Mobile_Push_Response_Gcm
Set Response
Parameters
Returns
Name | Type | Description |
---|---|---|
$response | array |
Type | Description |
---|---|
\Zend_Mobile_Push_Response_Gcm |