src/Utils/getaway.php
/**
     * Determine the action (command) to be taken based on the JSON input
     *
     * @param object $json JSON object, parsed from API response
     */
Determine the action (command) to be taken based on the JSON input
@param object $json JSON object, parsed from API response
Determine the action ( command ) to be taken based on the JSON input @param object $json JSON object parsed from API response
public function action($json)
    {
        $op = $this->ops[$json->op];
        if ($op == "Dispatch") {
            $this->send($json);
        }
        if ($op == "Heartbeatack") {
            $this->send_log ?
                $this->log('Execute: HEARTBEAT-ACK') : null;
        }
        if ($op == "Hello") {
           $this->hello($json);
        }
    }
public function action ( $ json ) { $ op = $ this -> ops [ $ json -> op ] ; if ( $ op == " Dispatch " ) { $ this -> send ( $ json ) ; } if ( $ op == " Heartbeatack " ) { $ this -> send_log ? $ this -> log ( 'Execute: HEARTBEAT-ACK' ) : null ; } if ( $ op == " Hello " ) { $ this -> hello ( $ json ) ; } }
Determine the action (command) to be taken based on the JSON input
 @param object $json JSON object, parsed from API response
Determine the action ( command ) to be taken based on the JSON input @param object $json JSON object parsed from API response