|
10 | 10 |
|
11 | 11 | namespace SinusBot; |
12 | 12 |
|
| 13 | +/** |
| 14 | + * Class Instance |
| 15 | + * |
| 16 | + * Instance represents a single instance of the SinusBot |
| 17 | + */ |
13 | 18 | class Instance extends RestClient |
14 | 19 | { |
| 20 | + /** |
| 21 | + * UUID stores the SinusBot Instance UUID |
| 22 | + * @var string |
| 23 | + */ |
15 | 24 | public $uuid = null; |
| 25 | + /** |
| 26 | + * Instance holds the Instance array |
| 27 | + * @var array |
| 28 | + */ |
16 | 29 | public $instance = null; |
| 30 | + /** |
| 31 | + * __construct |
| 32 | + * |
| 33 | + * @param string $token SinusBot auth token |
| 34 | + * @param string $url SinusBot Bot URL |
| 35 | + * @param int $timeout HTTP Timeout which is used to perform HTTP API requests |
| 36 | + * @param array $instance SinusBot Instance array. |
| 37 | + * @return void |
| 38 | + */ |
17 | 39 | public function __construct($token, $url, $timeout, $instance) |
18 | 40 | { |
19 | 41 | $this->token = $token; |
@@ -135,9 +157,8 @@ public function getVolume() |
135 | 157 | /** |
136 | 158 | * setVolume |
137 | 159 | * |
138 | | - * @param string $volume {0-100} |
139 | | - * @param string $instanceUUID 6421eedc-9705-4706-a269-cf6f38fa1a33 |
140 | | - * @return array status |
| 160 | + * @param string $volume {0-100} |
| 161 | + * @return array status |
141 | 162 | * @api |
142 | 163 | */ |
143 | 164 | public function setVolume($volume = 50) |
@@ -286,7 +307,7 @@ public function prependQueueTrack($trackUUID) |
286 | 307 | * @param integer $trackPosition first entry = 0 |
287 | 308 | * @return array status |
288 | 309 | */ |
289 | | - public function deleteQueueTrack($trackPosition, $instanceUUID) |
| 310 | + public function deleteQueueTrack($trackPosition) |
290 | 311 | { |
291 | 312 | $currentTracks = $this->getQueueTracks(); |
292 | 313 | if ($currentTracks == null or !is_array($currentTracks)) { |
@@ -327,9 +348,8 @@ public function say($text, $locale) |
327 | 348 | /** |
328 | 349 | * playTrack |
329 | 350 | * |
330 | | - * @param string $trackUUID 6da519a3-5aa3-4f5e-9e2d-81c88e9159ea |
331 | | - * @param string $instanceUUID 6421eedc-9705-4706-a269-cf6f38fa1a33 |
332 | | - * @return array status |
| 351 | + * @param string $trackUUID UUID of the track |
| 352 | + * @return array status |
333 | 353 | */ |
334 | 354 | public function playTrack($trackUUID) |
335 | 355 | { |
|
0 commit comments