2016-09-03 01:54:22 +03:00
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
class SessionServerRoute extends BasePage {
|
|
|
|
|
|
|
|
public function join($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/minecraft/session/join', $params);
|
2016-09-03 01:54:22 +03:00
|
|
|
}
|
|
|
|
|
2016-09-05 17:55:38 +03:00
|
|
|
public function joinLegacy(array $params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendGET('/minecraft/session/legacy/join', $params);
|
2016-09-05 17:55:38 +03:00
|
|
|
}
|
|
|
|
|
2016-09-06 12:56:39 +03:00
|
|
|
public function hasJoined(array $params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendGET('/minecraft/session/hasJoined', $params);
|
2016-09-06 12:56:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendGET('/minecraft/session/legacy/hasJoined', $params);
|
2016-09-06 12:56:39 +03:00
|
|
|
}
|
|
|
|
|
2016-09-08 13:07:43 +03:00
|
|
|
public function profile($profileUuid) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendGET("/minecraft/session/profile/{$profileUuid}");
|
2016-09-08 13:07:43 +03:00
|
|
|
}
|
|
|
|
|
2016-09-03 01:54:22 +03:00
|
|
|
}
|