24 public const NETWORK_ID = ProtocolInfo::AGENT_ACTION_EVENT_PACKET;
26 private string $requestId;
29 private string $responseJson;
34 public static function create(
string $requestId,
int $action,
string $responseJson) : self{
36 $result->requestId = $requestId;
37 $result->action = $action;
38 $result->responseJson = $responseJson;
42 public function getRequestId() : string{ return $this->requestId; }
45 public function getAction() : int{ return $this->action; }
47 public function getResponseJson() : string{ return $this->responseJson; }
50 $this->requestId = $in->getString();
56 $out->putString($this->requestId);
57 $out->putLInt($this->action);
58 $out->putString($this->responseJson);
62 return $handler->handleAgentActionEvent($this);