| @@ 52-62 (lines=11) @@ | ||
| 49 | * |
|
| 50 | * @return CollectionInterface |
|
| 51 | */ |
|
| 52 | public function show($force = false) |
|
| 53 | { |
|
| 54 | return $this->factory->collection( |
|
| 55 | $this->client->get( |
|
| 56 | "rooms/{$this->roomId}/messages", |
|
| 57 | [ |
|
| 58 | 'force' => (int) $force, |
|
| 59 | ] |
|
| 60 | ) |
|
| 61 | ); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param $id |
|
| @@ 70-80 (lines=11) @@ | ||
| 67 | * |
|
| 68 | * @return Message|EntityInterface |
|
| 69 | */ |
|
| 70 | public function detail($id, $force = false) |
|
| 71 | { |
|
| 72 | return $this->factory->entity( |
|
| 73 | $this->client->get( |
|
| 74 | "rooms/{$this->roomId}/messages/{$id}", |
|
| 75 | [ |
|
| 76 | 'force' => (int) $force, |
|
| 77 | ] |
|
| 78 | ) |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @param Message $message |
|