File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -373,6 +373,34 @@ public function getAttendees()
373373 return $ this ->attendees ;
374374 }
375375
376+ /**
377+ * Moderators of Meeting - Subset of Attendees
378+ * @return Attendee[]
379+ */
380+ public function getModerators () {
381+ $ attendees = $ this ->getAttendees ();
382+
383+ $ moderators = array_filter ($ attendees , function ($ attendee ) {
384+ return ($ attendee ->getRole () === "MODERATOR " );
385+ });
386+
387+ return array_values ($ moderators );
388+ }
389+
390+ /**
391+ * Viewers of Meeting - Subset of Attendees
392+ * @return Attendee[]
393+ */
394+ public function getViewers () {
395+ $ attendees = $ this ->getAttendees ();
396+
397+ $ viewers = array_filter ($ attendees , function ($ attendee ) {
398+ return ($ attendee ->getRole () === "VIEWER " );
399+ });
400+
401+ return array_values ($ viewers );
402+ }
403+
376404 /**
377405 * @return array
378406 */
You can’t perform that action at this time.
0 commit comments