Class BaseResponse
- Class name: BaseResponse
- Namespace: LaravelFCM\Response
- This is an abstract class
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
- $response GuzzleHttp\Psr7\Response
mixed LaravelFCM\Response\BaseResponse::isJsonResponse(\GuzzleHttp\Psr7\Response $response)
Check if the response given by fcm is parsable
- Visibility: private
- $response GuzzleHttp\Psr7\Response
mixed LaravelFCM\Response\BaseResponse::parseResponse(array $responseInJson)
parse the response
- Visibility: protected
- This method is abstract.
- $responseInJson array
mixed LaravelFCM\Response\BaseResponse::logResponse()
Log the response
- Visibility: protected
- This method is abstract.