/** * @return object * @throws \Exception */ public function execute() { $viewed_time = $this->secondsViewedFor * 1000; $json = json_encode(array($this->snapId => array("c" => $this->screenshot ? "1" : "0", "replayed" => $this->replayed ? "1" : "0", "sv" => $viewed_time, "t" => time()))); $this->addParam("json", $json); return parent::execute(); }
/** * @return object * @throws \Exception */ public function execute() { $friend_stories = array(); $friend_stories[] = array("id" => $this->storyId, "screenshot_count" => $this->screenshot ? "1" : "0", "timestamp" => RequestUtil::getCurrentMillis()); $this->addParam("friend_stories", json_encode($friend_stories)); return parent::execute(); }
/** * @return FriendResponse * @throws \Exception */ public function execute() { return parent::execute(); }
/** * @return object * @throws \Exception */ public function execute() { return StoryCrypto::decryptStory(parent::execute(), $this->mediaKey, $this->mediaIv); }
/** * @return UploadMediaPayload * @throws \Exception */ public function execute() { parent::execute(); return $this->payload; }