|
@@ 60-74 (lines=15) @@
|
| 57 |
|
return $this->executeCustomQuery($param); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
public function listMarketCatalogue(array $eventTypes) |
| 61 |
|
{ |
| 62 |
|
$filter = $this->createMarketFilter(); |
| 63 |
|
$filter->setEventTypeIds($eventTypes); |
| 64 |
|
|
| 65 |
|
$param = $this->createParam($filter); |
| 66 |
|
|
| 67 |
|
$param->setMaxResults(self::MAX_RESULT); |
| 68 |
|
|
| 69 |
|
$this->restoreDefaultsProperties(); |
| 70 |
|
|
| 71 |
|
return $this->adapter->adaptResponse( |
| 72 |
|
$this->apiNgRequest(self::API_METHOD_NAME, $param) |
| 73 |
|
); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
public function getMarketCatalogueFilteredByEventIds(array $eventIds) |
| 77 |
|
{ |
|
@@ 76-90 (lines=15) @@
|
| 73 |
|
); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
public function getMarketCatalogueFilteredByEventIds(array $eventIds) |
| 77 |
|
{ |
| 78 |
|
$marketFilter = $this->createMarketFilter(); |
| 79 |
|
$marketFilter->setEventIds($eventIds); |
| 80 |
|
|
| 81 |
|
$param = $this->createParam($marketFilter); |
| 82 |
|
|
| 83 |
|
$param->setMaxResults(self::MAX_RESULT); |
| 84 |
|
|
| 85 |
|
$this->restoreDefaultsProperties(); |
| 86 |
|
|
| 87 |
|
return $this->adapter->adaptResponse( |
| 88 |
|
$this->apiNgRequest(self::API_METHOD_NAME, $param) |
| 89 |
|
); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
public function getMarketCatalogueFilteredBy(array $eventIds, array $marketTypes) |
| 93 |
|
{ |
|
@@ 92-107 (lines=16) @@
|
| 89 |
|
); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
public function getMarketCatalogueFilteredBy(array $eventIds, array $marketTypes) |
| 93 |
|
{ |
| 94 |
|
$marketFilter = $this->createMarketFilter(); |
| 95 |
|
$marketFilter->setEventIds($eventIds); |
| 96 |
|
$marketFilter->setMarketTypeCodes($marketTypes); |
| 97 |
|
|
| 98 |
|
$param = $this->createParam($marketFilter); |
| 99 |
|
|
| 100 |
|
$param->setMaxResults(self::MAX_RESULT); |
| 101 |
|
|
| 102 |
|
$this->restoreDefaultsProperties(); |
| 103 |
|
|
| 104 |
|
return $this->adapter->adaptResponse( |
| 105 |
|
$this->apiNgRequest(self::API_METHOD_NAME, $param) |
| 106 |
|
); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
private function restoreDefaultsProperties() |
| 110 |
|
{ |