PHP Класс RMS\PushNotificationsBundle\Service\OS\AndroidGCMNotification

Наследование: implements RMS\PushNotificationsBundle\Service\OS\OSNotificationServiceInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$apiKey string Google GCM API key
$apiURL string GCM endpoint
$browser Buzz\Browser Browser object
$logger Psr\Log\LoggerInterface Monolog logger
$registrationIdMaxCount integer Max registration count
$responses array Collection of the responses from the GCM communication
$useDryRun boolean Whether or not to use the dry run GCM

Открытые методы

Метод Описание
__construct ( string $apiKey, boolean $useMultiCurl, integer $timeout, Psr\Log\LoggerInterface $logger, Buzz\Client\AbstractCurl $client = null, boolean $dryRun = false ) Constructor
getResponses ( ) : array Returns responses
send ( RMS\PushNotificationsBundle\Message\MessageInterface $message ) : boolean Sends the data to the given registration IDs via the GCM server

Описание методов

__construct() публичный Метод

Constructor
public __construct ( string $apiKey, boolean $useMultiCurl, integer $timeout, Psr\Log\LoggerInterface $logger, Buzz\Client\AbstractCurl $client = null, boolean $dryRun = false )
$apiKey string
$useMultiCurl boolean
$timeout integer
$logger Psr\Log\LoggerInterface
$client Buzz\Client\AbstractCurl (optional)
$dryRun boolean

getResponses() публичный Метод

Returns responses
public getResponses ( ) : array
Результат array

send() публичный Метод

Sends the data to the given registration IDs via the GCM server
public send ( RMS\PushNotificationsBundle\Message\MessageInterface $message ) : boolean
$message RMS\PushNotificationsBundle\Message\MessageInterface
Результат boolean

Описание свойств

$apiKey защищенное свойство

Google GCM API key
protected string $apiKey
Результат string

$apiURL защищенное свойство

GCM endpoint
protected string $apiURL
Результат string

$browser защищенное свойство

Browser object
protected Browser,Buzz $browser
Результат Buzz\Browser

$logger защищенное свойство

Monolog logger
protected LoggerInterface,Psr\Log $logger
Результат Psr\Log\LoggerInterface

$registrationIdMaxCount защищенное свойство

Max registration count
protected int $registrationIdMaxCount
Результат integer

$responses защищенное свойство

Collection of the responses from the GCM communication
protected array $responses
Результат array

$useDryRun защищенное свойство

Whether or not to use the dry run GCM
protected bool $useDryRun
Результат boolean