Gcm Response
category | Zend |
---|---|
package | Zend_Mobile |
subpackage | Zend_Mobile_Push |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
version | $Id$ |
__construct(string $responseString= null
, \Zend_Mobile_Push_Message_Gcm $message= null
) : \Zend_Mobile_Push_Response_Gcm
string
JSON encoded response
\Zend_Mobile_Push_Message_Gcm
\Zend_Mobile_Push_Exception_ServerUnavailable |
---|
\Zend_Mobile_Push_Response_Gcm
getCanonicalCount() : integer
integer
getFailureCount() : integer
integer
getMessage() : \Zend_Mobile_Push_Message_Gcm
\Zend_Mobile_Push_Message_Gcm
getResponse() : array
array
getResult(integer $flag) : array
integer
one of the RESULT_* flags
array
singular array with keys being registration id
value is the type of resultgetResults() : array
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'
)getSuccessCount() : integer
integer
setMessage(\Zend_Mobile_Push_Message_Gcm $message) : \Zend_Mobile_Push_Response_Gcm
\Zend_Mobile_Push_Message_Gcm
\Zend_Mobile_Push_Response_Gcm
setResponse(array $response) : \Zend_Mobile_Push_Response_Gcm
array
\Zend_Mobile_Push_Exception |
---|
\Zend_Mobile_Push_Response_Gcm
_correlate() : array
array
$_canonicalCnt : integer
$_failureCnt : integer
$_id : integer
$_response : array
$_results : array
$_successCnt : integer
RESULT_CANONICAL = 'registration_id'
RESULT_ERROR = 'error'
RESULT_MESSAGE_ID = 'message_id'