Exemplo n.º 1
0
 /**
  * Set this message as displayed
  */
 public function markdisplayedAction()
 {
     if ($params = $this->getRequest()->getParams()) {
         if (empty($params['device_uid']) or empty($params['message_id'])) {
             return;
         }
         $device = new Push_Model_Iphone_Device();
         $device->find($params['device_uid'], 'device_uid');
         $message = new Push_Model_Message();
         $message->markAsDisplayed($device->getId(), $params['message_id']);
     }
     die;
 }
Exemplo n.º 2
0
 /**
  * Set this message as displayed
  */
 public function markdisplayedAction()
 {
     if ($params = $this->getRequest()->getParams()) {
         if (empty($params['registration_id']) or empty($params['message_id'])) {
             return;
         }
         $device = new Push_Model_Android_Device();
         $device->findByRegistrationId($params['registration_id']);
         $message = new Push_Model_Message();
         $message->markAsDisplayed($device->getId(), $params['message_id']);
     }
     die;
 }