@@ 136-148 (lines=13) @@ | ||
133 | * |
|
134 | * @return mixed |
|
135 | */ |
|
136 | public function create($meeting) |
|
137 | { |
|
138 | if (! $meeting instanceof CreateMeetingParameters) { |
|
139 | $meeting = $this->initCreateMeeting($meeting); |
|
140 | } |
|
141 | ||
142 | $this->response = $this->bbb->createMeeting($meeting); |
|
143 | if ($this->response->failed()) { |
|
144 | return $this->response->getMessage(); |
|
145 | } else { |
|
146 | return collect(XmlToArray($this->response->getRawXml())); |
|
147 | } |
|
148 | } |
|
149 | ||
150 | /** |
|
151 | * @param $meeting |
|
@@ 210-222 (lines=13) @@ | ||
207 | * |
|
208 | * @return \Illuminate\Support\Collection |
|
209 | */ |
|
210 | public function getMeetingInfo($meeting) |
|
211 | { |
|
212 | if (! $meeting instanceof GetMeetingInfoParameters) { |
|
213 | $meeting = $this->initGetMeetingInfo($meeting); |
|
214 | } |
|
215 | ||
216 | $this->response = $this->bbb->getMeetingInfo($meeting); |
|
217 | if ($this->response->success()) { |
|
218 | return collect(XmlToArray($this->response->getRawXml())); |
|
219 | } |
|
220 | ||
221 | return collect([]); |
|
222 | } |
|
223 | ||
224 | /** |
|
225 | * @param $parameters |