public function GetDispatchList($page, $destinationId = null, $courseId = null, $dispatchId = null, $tagList = null) { $request = new ServiceRequest($this->_configuration); $params = array("page" => $page); if ($destinationId != null) { $params['destinationid'] = $destinationId; } if ($courseId != null) { $params['courseid'] = $courseId; } if ($tagList != null && count($tagList) > 0) { $params['tags'] = implode(',', $tagList); } $request->setMethodParams($params); $response = $request->CallService("rustici.dispatch.getDispatchList"); return Dispatch::parseDispatchList($response); }