public function isComplete() { parent::isComplete(); if (!array_key_exists("alias", $this->data) && !array_key_exists("file_id", $this->data)) { throw new Exception("You need to set alias or upload file for customizedcast!"); } }
public function __construct() { parent::__construct(); $this->data["type"] = "broadcast"; }
public function __construct() { parent::__construct(); $this->data["type"] = "groupcast"; $this->data["filter"] = null; }
public function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = null; }
public function __construct() { parent::__construct(); $this->data["type"] = "filecast"; $this->data["file_id"] = null; }