mirror of
https://github.com/elyby/accounts.git
synced 2024-12-11 16:09:25 +05:30
32 lines
882 B
PHP
32 lines
882 B
PHP
<?php
|
|
namespace api\tests\_pages;
|
|
|
|
class SessionServerRoute extends BasePage {
|
|
|
|
public function join($params) {
|
|
$this->getActor()->sendPOST('/api/minecraft/session/join', $params);
|
|
}
|
|
|
|
public function joinLegacy(array $params) {
|
|
$this->getActor()->sendGET('/api/minecraft/session/legacy/join', $params);
|
|
}
|
|
|
|
public function hasJoined(array $params) {
|
|
$this->getActor()->sendGET('/api/minecraft/session/hasJoined', $params);
|
|
}
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
|
$this->getActor()->sendGET('/api/minecraft/session/legacy/hasJoined', $params);
|
|
}
|
|
|
|
public function profile(string $profileUuid, bool $signed = false) {
|
|
$url = "/api/minecraft/session/profile/{$profileUuid}";
|
|
if ($signed) {
|
|
$url .= '?unsigned=false';
|
|
}
|
|
|
|
$this->getActor()->sendGET($url);
|
|
}
|
|
|
|
}
|