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!"); } }
function __construct() { parent::__construct(); $this->data["type"] = "filecast"; $this->data["file_id"] = NULL; }
function __construct() { parent::__construct(); $this->data["type"] = "broadcast"; }
function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; }
function __construct() { parent::__construct(); $this->data["type"] = "groupcast"; $this->data["filter"] = NULL; }