Skip to content

Commit

Permalink
getting the internal meeting-id from the meeting of the recording (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
marineusde authored Sep 13, 2024
1 parent 21f4e46 commit 672f881
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Core/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Record
{
private readonly string $recordId;
private readonly string $meetingId;
private readonly string $internalMeetingId;
private readonly string $name;
private readonly bool $isPublished;
private readonly string $state;
Expand All @@ -45,6 +46,7 @@ public function __construct(\SimpleXMLElement $xml)
{
$this->recordId = $xml->recordID->__toString();
$this->meetingId = $xml->meetingID->__toString();
$this->internalMeetingId = $xml->internalMeetingID->__toString();
$this->name = $xml->name->__toString();
$this->isPublished = $xml->published->__toString() === 'true';
$this->state = $xml->state->__toString();
Expand All @@ -71,6 +73,11 @@ public function getMeetingId(): string
return $this->meetingId;
}

public function getInternalMeetingId(): string
{
return $this->internalMeetingId;
}

public function getName(): string
{
return $this->name;
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/BigBlueButtonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ public function testGetRecordings(): void
<recording>
<recordID>f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120</recordID>
<meetingID>9d287cf50490ca856ca5273bd303a7e321df6051-4-119</meetingID>
<internalMeetingID>c654308ef4b71eeb74eb8436dc52a31415d9a911-1724671588959</internalMeetingID>
<name><![CDATA[SAT- Writing-Humanities (All participants)]]></name>
<published>true</published>
<state>published</state>
Expand Down Expand Up @@ -415,6 +416,7 @@ public function testGetRecordings(): void
$recording = $response->getRecords()[0];
$this->assertEquals('f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120', $recording->getRecordID());
$this->assertEquals('9d287cf50490ca856ca5273bd303a7e321df6051-4-119', $recording->getMeetingID());
$this->assertEquals('c654308ef4b71eeb74eb8436dc52a31415d9a911-1724671588959', $recording->getInternalMeetingID());
$this->assertEquals('SAT- Writing-Humanities (All participants)', $recording->getName());
}

Expand Down

0 comments on commit 672f881

Please sign in to comment.