protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['Status'] = AdAsyncRequestStatusValues::getInstance()->getValues();
     $ref_enums['Statuses'] = AdAsyncRequestStatusesValues::getInstance()->getValues();
     return $ref_enums;
 }
 public function getRequests(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('statuses' => 'list<statuses_enum>');
     $enums = array('statuses_enum' => AdAsyncRequestStatusesValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/requests', new AdAsyncRequest(), 'EDGE', AdAsyncRequest::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }