Skip to content

Commit 8811d86

Browse files
committed
Add offset and limit to getRecordings params and totalElements to its response
1 parent 6bfe6df commit 8811d86

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

src/Parameters/GetRecordingsParameters.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class GetRecordingsParameters extends MetaParameters
3333

3434
private ?string $state = null;
3535

36+
private ?int $offset = null;
37+
38+
private ?int $limit = null;
39+
3640
#[ApiParameterMapper(attributeName: 'meetingID')]
3741
public function getMeetingId(): ?string
3842
{
@@ -72,6 +76,32 @@ public function setState(string $state): self
7276
return $this;
7377
}
7478

79+
#[ApiParameterMapper(attributeName: 'offset')]
80+
public function getOffset(): ?int
81+
{
82+
return $this->offset;
83+
}
84+
85+
public function setOffset(?int $offset): self
86+
{
87+
$this->offset = $offset;
88+
89+
return $this;
90+
}
91+
92+
#[ApiParameterMapper(attributeName: 'limit')]
93+
public function getLimit(): ?int
94+
{
95+
return $this->limit;
96+
}
97+
98+
public function setLimit(?int $limit): self
99+
{
100+
$this->limit = $limit;
101+
102+
return $this;
103+
}
104+
75105
public function getHTTPQuery(): string
76106
{
77107
$queries = $this->toApiDataArray();

src/Responses/GetRecordingsResponse.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
*/
2828
class GetRecordingsResponse extends BaseResponse
2929
{
30+
public function getTotalElements(): ?int
31+
{
32+
if (!$this->rawXml->totalElements) {
33+
return null;
34+
}
35+
36+
return (int) $this->rawXml->totalElements->__toString();
37+
}
38+
3039
/**
3140
* @return Record[]
3241
*/

0 commit comments

Comments
 (0)