PHP 클래스 LaravelFCM\Response\TopicResponse

상속: extends BaseResponse, implements LaravelFCM\Response\TopicResponseContract
파일 보기 프로젝트 열기: brozot/laravel-fcm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$error string
$messageId string
$needRetry boolean
$topic string

공개 메소드들

메소드 설명
__construct ( Response $response, Topics $topic ) TopicResponse constructor.
error ( ) : string return error message you should test if it's necessary to resent it
isSuccess ( ) : boolean true if topic sent with success
shouldRetry ( ) : boolean return true if it's necessary resent it using exponential backoff

보호된 메소드들

메소드 설명
logResponse ( ) Log the response
parseResponse ( $responseInJson ) parse the response

비공개 메소드들

메소드 설명
parseError ( $responseInJson )
parseSuccess ( $responseInJson )

메소드 상세

__construct() 공개 메소드

TopicResponse constructor.
public __construct ( Response $response, Topics $topic )
$response GuzzleHttp\Psr7\Response
$topic LaravelFCM\Message\Topics

error() 공개 메소드

return error message you should test if it's necessary to resent it
public error ( ) : string
리턴 string error

isSuccess() 공개 메소드

true if topic sent with success
public isSuccess ( ) : boolean
리턴 boolean

logResponse() 보호된 메소드

Log the response
protected logResponse ( )

parseResponse() 보호된 메소드

parse the response
protected parseResponse ( $responseInJson )
$responseInJson

shouldRetry() 공개 메소드

return true if it's necessary resent it using exponential backoff
public shouldRetry ( ) : boolean
리턴 boolean

프로퍼티 상세

$error 보호되어 있는 프로퍼티

protected string $error
리턴 string

$messageId 보호되어 있는 프로퍼티

protected string $messageId
리턴 string

$needRetry 보호되어 있는 프로퍼티

protected bool $needRetry
리턴 boolean

$topic 보호되어 있는 프로퍼티

protected string $topic
리턴 string