Skip to content

Latest commit

 

History

History
172 lines (64 loc) · 2.73 KB

LaravelFCM-Response-GroupResponse.md

File metadata and controls

172 lines (64 loc) · 2.73 KB

LaravelFCM\Response\GroupResponse

Class GroupResponse

Constants

FAILED_REGISTRATION_IDS

const FAILED_REGISTRATION_IDS = "failed_registration_ids"

SUCCESS

const SUCCESS = 'success'

FAILURE

const FAILURE = 'failure'

ERROR

const ERROR = "error"

MESSAGE_ID

const MESSAGE_ID = "message_id"

Methods

__construct

mixed LaravelFCM\Response\BaseResponse::__construct(\GuzzleHttp\Psr7\Response $response)

BaseResponse constructor.

Arguments

  • $response GuzzleHttp\Psr7\Response

parseResponse

mixed LaravelFCM\Response\BaseResponse::parseResponse(array $responseInJson)

parse the response

Arguments

  • $responseInJson array

logResponse

mixed LaravelFCM\Response\BaseResponse::logResponse()

Log the response

numberSuccess

integer LaravelFCM\Response\GroupResponseContract::numberSuccess()

Get the number of device reached with success

numberFailure

integer LaravelFCM\Response\GroupResponseContract::numberFailure()

Get the number of device which thrown an error

tokensFailed

array LaravelFCM\Response\GroupResponseContract::tokensFailed()

Get all token in group that fcm cannot reach

isJsonResponse

mixed LaravelFCM\Response\BaseResponse::isJsonResponse(\GuzzleHttp\Psr7\Response $response)

Check if the response given by fcm is parsable

Arguments

  • $response GuzzleHttp\Psr7\Response