Skip to content

Commit 672f881

Browse files
authored
getting the internal meeting-id from the meeting of the recording (#208)
1 parent 21f4e46 commit 672f881

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/Core/Record.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Record
2929
{
3030
private readonly string $recordId;
3131
private readonly string $meetingId;
32+
private readonly string $internalMeetingId;
3233
private readonly string $name;
3334
private readonly bool $isPublished;
3435
private readonly string $state;
@@ -45,6 +46,7 @@ public function __construct(\SimpleXMLElement $xml)
4546
{
4647
$this->recordId = $xml->recordID->__toString();
4748
$this->meetingId = $xml->meetingID->__toString();
49+
$this->internalMeetingId = $xml->internalMeetingID->__toString();
4850
$this->name = $xml->name->__toString();
4951
$this->isPublished = $xml->published->__toString() === 'true';
5052
$this->state = $xml->state->__toString();
@@ -71,6 +73,11 @@ public function getMeetingId(): string
7173
return $this->meetingId;
7274
}
7375

76+
public function getInternalMeetingId(): string
77+
{
78+
return $this->internalMeetingId;
79+
}
80+
7481
public function getName(): string
7582
{
7683
return $this->name;

tests/unit/BigBlueButtonTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ public function testGetRecordings(): void
380380
<recording>
381381
<recordID>f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120</recordID>
382382
<meetingID>9d287cf50490ca856ca5273bd303a7e321df6051-4-119</meetingID>
383+
<internalMeetingID>c654308ef4b71eeb74eb8436dc52a31415d9a911-1724671588959</internalMeetingID>
383384
<name><![CDATA[SAT- Writing-Humanities (All participants)]]></name>
384385
<published>true</published>
385386
<state>published</state>
@@ -415,6 +416,7 @@ public function testGetRecordings(): void
415416
$recording = $response->getRecords()[0];
416417
$this->assertEquals('f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120', $recording->getRecordID());
417418
$this->assertEquals('9d287cf50490ca856ca5273bd303a7e321df6051-4-119', $recording->getMeetingID());
419+
$this->assertEquals('c654308ef4b71eeb74eb8436dc52a31415d9a911-1724671588959', $recording->getInternalMeetingID());
418420
$this->assertEquals('SAT- Writing-Humanities (All participants)', $recording->getName());
419421
}
420422

0 commit comments

Comments
 (0)