1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
5
|
|
|
* |
6
|
|
|
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below). |
7
|
|
|
* |
8
|
|
|
* This program is free software; you can redistribute it and/or modify it under the |
9
|
|
|
* terms of the GNU Lesser General Public License as published by the Free Software |
10
|
|
|
* Foundation; either version 3.0 of the License, or (at your option) any later |
11
|
|
|
* version. |
12
|
|
|
* |
13
|
|
|
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
14
|
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
15
|
|
|
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
16
|
|
|
* |
17
|
|
|
* You should have received a copy of the GNU Lesser General Public License along |
18
|
|
|
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>. |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace BigBlueButton\Responses; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Class PutRecordingTextTracksResponse. |
25
|
|
|
*/ |
26
|
|
|
class PutRecordingTextTrackResponse extends BaseJsonResponse |
27
|
|
|
{ |
28
|
|
|
public const KEY_SUCCESS = 'upload_text_track_success'; |
29
|
|
|
public const KEY_FAILED = 'upload_text_track_failed'; |
30
|
|
|
public const KEY_EMPTY = 'empty_uploaded_text_track'; |
31
|
|
|
public const KEY_PARAM_ERROR = 'paramError'; |
32
|
|
|
|
33
|
|
|
public function getRecordId(): string |
34
|
|
|
{ |
35
|
|
|
return $this->data->response->recordId; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function isUploadTrackSuccess(): bool |
39
|
|
|
{ |
40
|
|
|
return self::KEY_SUCCESS === $this->getMessageKey(); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function isUploadTrackFailed(): bool |
44
|
|
|
{ |
45
|
|
|
return self::KEY_FAILED === $this->getMessageKey(); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function isUploadTrackEmpty(): bool |
49
|
|
|
{ |
50
|
|
|
return self::KEY_EMPTY === $this->getMessageKey(); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function isKeyParamError(): bool |
54
|
|
|
{ |
55
|
|
|
return self::KEY_PARAM_ERROR === $this->getMessageKey(); |
56
|
|
|
} |
57
|
|
|
} |
58
|
|
|
|