| @@ 226-233 (lines=8) @@ | ||
| 223 | /** |
|
| 224 | * {@inheritDoc} |
|
| 225 | */ |
|
| 226 | public function close() |
|
| 227 | { |
|
| 228 | return $this->client->apiCall('channels.close', [ |
|
| 229 | 'channel' => $this->getId(), |
|
| 230 | ])->then(function ($response) { |
|
| 231 | return !isset($response['no_op']); |
|
| 232 | }); |
|
| 233 | } |
|
| 234 | } |
|
| 235 | ||
| @@ 130-137 (lines=8) @@ | ||
| 127 | * |
|
| 128 | * @return \React\Promise\PromiseInterface |
|
| 129 | */ |
|
| 130 | public function open() |
|
| 131 | { |
|
| 132 | return $this->client->apiCall('groups.open', [ |
|
| 133 | 'channel' => $this->getId(), |
|
| 134 | ])->then(function ($response) { |
|
| 135 | return !isset($response['no_op']); |
|
| 136 | }); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * {@inheritDoc} |
|
| @@ 142-149 (lines=8) @@ | ||
| 139 | /** |
|
| 140 | * {@inheritDoc} |
|
| 141 | */ |
|
| 142 | public function close() |
|
| 143 | { |
|
| 144 | return $this->client->apiCall('groups.close', [ |
|
| 145 | 'channel' => $this->getId(), |
|
| 146 | ])->then(function ($response) { |
|
| 147 | return !isset($response['no_op']); |
|
| 148 | }); |
|
| 149 | } |
|
| 150 | } |
|
| 151 | ||