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