|
@@ 13-19 (lines=7) @@
|
| 10 |
|
|
| 11 |
|
class Thread extends AbstractApi |
| 12 |
|
{ |
| 13 |
|
public function pass(ThreadControl $threadControl): ThreadResponse |
| 14 |
|
{ |
| 15 |
|
$request = new ThreadRequest($this->pageToken, $threadControl); |
| 16 |
|
$response = $this->client->post('me/pass_thread_control', $request->build()); |
| 17 |
|
|
| 18 |
|
return new ThreadResponse($response); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
public function take(ThreadControl $threadControl): ThreadResponse |
| 22 |
|
{ |
|
@@ 21-27 (lines=7) @@
|
| 18 |
|
return new ThreadResponse($response); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
public function take(ThreadControl $threadControl): ThreadResponse |
| 22 |
|
{ |
| 23 |
|
$request = new ThreadRequest($this->pageToken, $threadControl); |
| 24 |
|
$response = $this->client->post('me/take_thread_control', $request->build()); |
| 25 |
|
|
| 26 |
|
return new ThreadResponse($response); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function request(ThreadControl $threadControl): ThreadResponse |
| 30 |
|
{ |
|
@@ 29-35 (lines=7) @@
|
| 26 |
|
return new ThreadResponse($response); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function request(ThreadControl $threadControl): ThreadResponse |
| 30 |
|
{ |
| 31 |
|
$request = new ThreadRequest($this->pageToken, $threadControl); |
| 32 |
|
$response = $this->client->post('me/request_thread_control', $request->build()); |
| 33 |
|
|
| 34 |
|
return new ThreadResponse($response); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|