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