| @@ 116-128 (lines=13) @@ | ||
| 113 | * |
|
| 114 | * @return mixed |
|
| 115 | */ |
|
| 116 | public function create($meeting) |
|
| 117 | { |
|
| 118 | if (!$meeting instanceof CreateMeetingParameters) { |
|
| 119 | $meeting = $this->initCreateMeeting($meeting); |
|
| 120 | } |
|
| 121 | ||
| 122 | $this->response = $this->bbb->createMeeting($meeting); |
|
| 123 | if ($this->response->failed()) { |
|
| 124 | return $this->response->getMessage(); |
|
| 125 | } else { |
|
| 126 | return collect(XmlToArray($this->response->getRawXml())); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * @param $meeting |
|
| @@ 190-202 (lines=13) @@ | ||
| 187 | * |
|
| 188 | * @return \Illuminate\Support\Collection |
|
| 189 | */ |
|
| 190 | public function getMeetingInfo($meeting) |
|
| 191 | { |
|
| 192 | if (!$meeting instanceof GetMeetingInfoParameters) { |
|
| 193 | $meeting = $this->initGetMeetingInfo($meeting); |
|
| 194 | } |
|
| 195 | ||
| 196 | $this->response = $this->bbb->getMeetingInfo($meeting); |
|
| 197 | if ($this->response->success()) { |
|
| 198 | return collect(XmlToArray($this->response->getRawXml())); |
|
| 199 | } |
|
| 200 | ||
| 201 | return collect([]); |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| 205 | * @param $parameters |
|