Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function pushStat(PushStatRequest $pushStatRequest)
 {
     // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
     // client
     if ($pushStatRequest->getApplication() === null) {
         // The 'application' must be set
         if (!isset($this->application)) {
             throw new PushwooshException('The  \'application\' property is not set !');
         }
         $pushStatRequest->setApplication($this->application);
     }
     $response = $this->cURLClient->pushwooshCall('pushState', $pushStatRequest->jsonSerialize());
     return PushStatResponse::create($response);
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function pushStat(PushStatRequest $pushStatRequest)
 {
     $this->pushwhooshRequests[] = $pushStatRequest;
     return PushStatResponse::create(json_decode('{
             "status_code":200,
             "status_message":"OK"
         }', true));
 }
Exemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 public function pushStat(PushStatRequest $pushStatRequest)
 {
     // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
     // client
     $this->setApplicationIfNotSet($pushStatRequest);
     $response = $this->cURLClient->pushwooshCall('pushStat', $pushStatRequest->jsonSerialize());
     return PushStatResponse::create($response);
 }