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