function __construct($ticker, $title, $text, $device_tokens, $type = 0, $param = '') { parent::__construct(); $this->timestamp = strval(time()); $this->validation_token = md5(strtolower($this->appkey[$type]) . strtolower($this->masterSecret[$type]) . strtolower($this->timestamp)); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; $this->setPredefinedKeyValue("appkey", $this->appkey[$type]); $this->setPredefinedKeyValue("timestamp", $this->timestamp); $this->setPredefinedKeyValue("validation_token", $this->validation_token); $this->setPredefinedKeyValue("device_tokens", $device_tokens); $this->setPredefinedKeyValue("ticker", $ticker); $this->setPredefinedKeyValue("title", $title); $this->setPredefinedKeyValue("text", $text); $this->setPredefinedKeyValue("after_open", "go_custom"); $this->setPredefinedKeyValue("custom", $param); $this->setPredefinedKeyValue("production_mode", "true"); }
function __construct() { parent::__construct(); $this->data["type"] = "customizedcast"; $this->data["alias_type"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'filecast'; $this->data['file_id'] = null; }
public function __construct() { parent::__construct(); $this->data['type'] = 'broadcast'; }
function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'customizedcast'; $this->data['alias_type'] = null; }
function __construct() { parent::__construct(); $this->data["type"] = "broadcast"; }
function __construct() { parent::__construct(); $this->data["type"] = "groupcast"; $this->data["filter"] = NULL; }
function __construct() { parent::__construct(); $this->data["type"] = "filecast"; $this->data["file_id"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'unicast'; $this->data['device_tokens'] = null; }
public function __construct() { parent::__construct(); $this->data['type'] = 'groupcast'; $this->data['filter'] = null; }