|
@@ 148-159 (lines=12) @@
|
| 145 |
|
/** |
| 146 |
|
* {@inheritdoc) |
| 147 |
|
*/ |
| 148 |
|
public function loadLocationList(array $locationIds, array $prioritizedLanguages = null, bool $useAlwaysAvailable = null): iterable |
| 149 |
|
{ |
| 150 |
|
// @todo Implement server part, ala: https://gist.github.com/andrerom/f2f328029ae7a9d78b363282b3ddf4a4 |
| 151 |
|
|
| 152 |
|
$response = $this->client->request( |
| 153 |
|
'GET', |
| 154 |
|
$this->requestParser->generate('locationsByIds', ['locations' => $locationIds]), |
| 155 |
|
new Message(['Accept' => $this->outputVisitor->getMediaType('LocationList')]) |
| 156 |
|
); |
| 157 |
|
|
| 158 |
|
return $this->inputDispatcher->parse($response); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
/** |
| 162 |
|
* {@inheritdoc) |
|
@@ 164-175 (lines=12) @@
|
| 161 |
|
/** |
| 162 |
|
* {@inheritdoc) |
| 163 |
|
*/ |
| 164 |
|
public function loadLocationByRemoteId($remoteId, array $prioritizedLanguages = null, bool $useAlwaysAvailable = null) |
| 165 |
|
{ |
| 166 |
|
$response = $this->client->request( |
| 167 |
|
'GET', |
| 168 |
|
$this->requestParser->generate('locationByRemote', array('location' => $remoteId)), |
| 169 |
|
new Message( |
| 170 |
|
array('Accept' => $this->outputVisitor->getMediaType('LocationList')) |
| 171 |
|
) |
| 172 |
|
); |
| 173 |
|
|
| 174 |
|
return reset($this->inputDispatcher->parse($response)); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
/** |
| 178 |
|
* Instantiates a new location update class. |