PHP Class RMS\PushNotificationsBundle\Service\OS\BlackberryNotification

Inheritance: implements RMS\PushNotificationsBundle\Service\OS\OSNotificationServiceInterface
Show file Open project: richsage/RMSPushNotificationsBundle

Protected Properties

Property Type Description
$appID string App ID
$evaluation string Evaluation mode or not
$logger Psr\Log\LoggerInterface Monolog logger
$password string Password for auth
$timeout integer Timeout in seconds for the connecting client

Public Methods

Method Description
__construct ( $evaluation, $appID, $password, $timeout, $logger ) Constructor
send ( RMS\PushNotificationsBundle\Message\MessageInterface $message ) : boolean Sends a Blackberry Push message

Protected Methods

Method Description
constructMessageBody ( RMS\PushNotificationsBundle\Message\BlackberryMessage $message, $separator ) : string Builds the actual body of the message
doSend ( RMS\PushNotificationsBundle\Message\BlackberryMessage $message ) : boolean Does the actual sending
parseResponse ( Buzz\Message\Response $response ) : boolean Handles and parses the response Returns a value indicating success/fail

Private Methods

Method Description
getXMLBody ( RMS\PushNotificationsBundle\Message\BlackberryMessage $message, $messageID ) : string Create the XML body that accompanies the actual push data

Method Details

__construct() public method

Constructor
public __construct ( $evaluation, $appID, $password, $timeout, $logger )
$evaluation
$appID
$password
$timeout
$logger

constructMessageBody() protected method

Builds the actual body of the message
protected constructMessageBody ( RMS\PushNotificationsBundle\Message\BlackberryMessage $message, $separator ) : string
$message RMS\PushNotificationsBundle\Message\BlackberryMessage
$separator
return string

doSend() protected method

Does the actual sending
protected doSend ( RMS\PushNotificationsBundle\Message\BlackberryMessage $message ) : boolean
$message RMS\PushNotificationsBundle\Message\BlackberryMessage
return boolean

parseResponse() protected method

Handles and parses the response Returns a value indicating success/fail
protected parseResponse ( Buzz\Message\Response $response ) : boolean
$response Buzz\Message\Response
return boolean

send() public method

Sends a Blackberry Push message
public send ( RMS\PushNotificationsBundle\Message\MessageInterface $message ) : boolean
$message RMS\PushNotificationsBundle\Message\MessageInterface
return boolean

Property Details

$appID protected property

App ID
protected string $appID
return string

$evaluation protected property

Evaluation mode or not
protected string $evaluation
return string

$logger protected property

Monolog logger
protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$password protected property

Password for auth
protected string $password
return string

$timeout protected property

Timeout in seconds for the connecting client
protected int $timeout
return integer