handler = $handler; } public function markUserMessagesRead(MarkUserMessagesReadMessage $message) { $message->validateInput(); $this->handler->markUserMessagesRead($message); $message->validateOutput(); return $message->getResponse(); } public function delete(DeleteMessage $message) { $message->validateInput(); $this->handler->delete($message); $message->validateOutput(); return $message->getResponse(); } public function revoke(RevokeMessage $message) { $message->validateInput(); $this->handler->revoke($message); $message->validateOutput(); return $message->getResponse(); } public function send(SendMessage $message) { $message->validateInput(); $this->handler->send($message); $message->validateOutput(); return $message->getResponse(); } public function getUsersLatests(GetUsersLatestsMessage $message) { $message->validateInput(); $this->handler->getUsersLatests($message); $message->validateOutput(); return $message->getResponse(); } }