@@ 100-112 (lines=13) @@ | ||
97 | * |
|
98 | * @return mixed |
|
99 | */ |
|
100 | public function create($meeting) |
|
101 | { |
|
102 | if (!$meeting instanceof CreateMeetingParameters) { |
|
103 | $meeting = $this->initCreateMeeting($meeting); |
|
104 | } |
|
105 | ||
106 | $this->response = $this->bbb->createMeeting($meeting); |
|
107 | if ($this->response->failed()) { |
|
108 | return $this->response->getMessage(); |
|
109 | } else { |
|
110 | return collect(XmlToArray($this->response->getRawXml())); |
|
111 | } |
|
112 | } |
|
113 | ||
114 | /** |
|
115 | * @param $meeting |
|
@@ 174-186 (lines=13) @@ | ||
171 | * |
|
172 | * @return \Illuminate\Support\Collection |
|
173 | */ |
|
174 | public function getMeetingInfo($meeting) |
|
175 | { |
|
176 | if (!$meeting instanceof GetMeetingInfoParameters) { |
|
177 | $meeting = $this->initGetMeetingInfo($meeting); |
|
178 | } |
|
179 | ||
180 | $this->response = $this->bbb->getMeetingInfo($meeting); |
|
181 | if ($this->response->success()) { |
|
182 | return collect(XmlToArray($this->response->getRawXml())); |
|
183 | } |
|
184 | ||
185 | return collect([]); |
|
186 | } |
|
187 | ||
188 | /** |
|
189 | * @param $parameters |