| @@ 85-97 (lines=13) @@ | ||
| 82 | * |
|
| 83 | * @return mixed |
|
| 84 | */ |
|
| 85 | public function create($meeting) |
|
| 86 | { |
|
| 87 | if (!$meeting instanceof CreateMeetingParameters) { |
|
| 88 | $meeting = $this->initCreateMeeting($meeting); |
|
| 89 | } |
|
| 90 | ||
| 91 | $this->response = $this->bbb->createMeeting($meeting); |
|
| 92 | if ($this->response->failed()) { |
|
| 93 | return $this->response->getMessage(); |
|
| 94 | } else { |
|
| 95 | return collect(XmlToArray($this->response->getRawXml())); |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @param $meeting |
|
| @@ 159-171 (lines=13) @@ | ||
| 156 | * |
|
| 157 | * @return \Illuminate\Support\Collection |
|
| 158 | */ |
|
| 159 | public function getMeetingInfo($meeting) |
|
| 160 | { |
|
| 161 | if (!$meeting instanceof GetMeetingInfoParameters) { |
|
| 162 | $meeting = $this->initGetMeetingInfo($meeting); |
|
| 163 | } |
|
| 164 | ||
| 165 | $this->response = $this->bbb->getMeetingInfo($meeting); |
|
| 166 | if ($this->response->success()) { |
|
| 167 | return collect(XmlToArray($this->response->getRawXml())); |
|
| 168 | } |
|
| 169 | ||
| 170 | return collect([]); |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * @param $parameters |
|