Class GroupResponse
- Class name: GroupResponse
- Namespace: LaravelFCM\Response
- Parent class: LaravelFCM\Response\BaseResponse
- This class implements: LaravelFCM\Response\GroupResponseContract
const FAILED_REGISTRATION_IDS = "failed_registration_ids"
const SUCCESS = 'success'
const FAILURE = 'failure'
const ERROR = "error"
const MESSAGE_ID = "message_id"
mixed LaravelFCM\Response\BaseResponse::__construct(\GuzzleHttp\Psr7\Response $response)
BaseResponse constructor.
- Visibility: public
- This method is defined by LaravelFCM\Response\BaseResponse
- $response GuzzleHttp\Psr7\Response
mixed LaravelFCM\Response\BaseResponse::parseResponse(array $responseInJson)
parse the response
- Visibility: protected
- This method is abstract.
- This method is defined by LaravelFCM\Response\BaseResponse
- $responseInJson array
mixed LaravelFCM\Response\BaseResponse::logResponse()
Log the response
- Visibility: protected
- This method is abstract.
- This method is defined by LaravelFCM\Response\BaseResponse
integer LaravelFCM\Response\GroupResponseContract::numberSuccess()
Get the number of device reached with success
- Visibility: public
- This method is defined by LaravelFCM\Response\GroupResponseContract
integer LaravelFCM\Response\GroupResponseContract::numberFailure()
Get the number of device which thrown an error
- Visibility: public
- This method is defined by LaravelFCM\Response\GroupResponseContract
array LaravelFCM\Response\GroupResponseContract::tokensFailed()
Get all token in group that fcm cannot reach
- Visibility: public
- This method is defined by LaravelFCM\Response\GroupResponseContract
mixed LaravelFCM\Response\BaseResponse::isJsonResponse(\GuzzleHttp\Psr7\Response $response)
Check if the response given by fcm is parsable
- Visibility: private
- This method is defined by LaravelFCM\Response\BaseResponse
- $response GuzzleHttp\Psr7\Response