/** * Send list to device * * @param $title * @param array $list * * @return bool */ public function sendList($title, array $list) { try { $this->dataProvider->post('pushes', ['type' => 'list', 'device_id' => $this->getId(), 'title' => $title, 'items' => $list]); return true; } catch (\Exception $e) { return false; } }