| @@ 325-338 (lines=14) @@ | ||
| 322 | * |
|
| 323 | * @return ProgressionValueObject |
|
| 324 | */ |
|
| 325 | public function getProgression() |
|
| 326 | { |
|
| 327 | $requestModel = $this->prepareRequestModel('progression'); |
|
| 328 | $response = $this->requestService->doRequest($requestModel); |
|
| 329 | $responseObject = json_decode($response); |
|
| 330 | ||
| 331 | $raids = $this->prepareRaidValueObject($responseObject); |
|
| 332 | ||
| 333 | $progression = new ProgressionValueObject( |
|
| 334 | $raids |
|
| 335 | ); |
|
| 336 | ||
| 337 | return $progression; |
|
| 338 | } |
|
| 339 | ||
| 340 | /** |
|
| 341 | * A map of pvp information including arena team membership and rated battlegrounds information |
|
| @@ 345-358 (lines=14) @@ | ||
| 342 | * |
|
| 343 | * @return PvpValueObject |
|
| 344 | */ |
|
| 345 | public function getPvp() |
|
| 346 | { |
|
| 347 | $requestModel = $this->prepareRequestModel('pvp'); |
|
| 348 | $response = $this->requestService->doRequest($requestModel); |
|
| 349 | $responseObject = json_decode($response); |
|
| 350 | ||
| 351 | $brackets = $this->prepareBracketValueObject($responseObject); |
|
| 352 | ||
| 353 | $progression = new PvpValueObject( |
|
| 354 | $brackets |
|
| 355 | ); |
|
| 356 | ||
| 357 | return $progression; |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * A list of quests completed by the character |
|
| @@ 365-376 (lines=12) @@ | ||
| 362 | * |
|
| 363 | * @return QuestsValueObject |
|
| 364 | */ |
|
| 365 | public function getQuests() |
|
| 366 | { |
|
| 367 | $requestModel = $this->prepareRequestModel('quests'); |
|
| 368 | $response = $this->requestService->doRequest($requestModel); |
|
| 369 | $responseObject = json_decode($response); |
|
| 370 | ||
| 371 | $quests = new QuestsValueObject( |
|
| 372 | $responseObject->quests |
|
| 373 | ); |
|
| 374 | ||
| 375 | return $quests; |
|
| 376 | } |
|
| 377 | ||
| 378 | /** |
|
| 379 | * A list of the factions that the character has an associated reputation with |
|