appKey = $appKey; $this->masterSecret = $masterSecret; if (!is_null($retryTimes)) { $this->retryTimes = $retryTimes; } else { $this->retryTimes = 1; } $this->logFile = $logFile; } public function push() { return new PushPayload($this); } public function report() { return new ReportPayload($this); } public function device() { return new DevicePayload($this); } public function schedule() { return new SchedulePayload($this);} public function getAuthStr() { return $this->appKey . ":" . $this->masterSecret; } public function getRetryTimes() { return $this->retryTimes; } public function getLogFile() { return $this->logFile; } }