| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class Client extends BaseClient |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * |
||
| 17 | * Query user forbidden words. |
||
| 18 | * |
||
| 19 | * @param string $account |
||
| 20 | * |
||
| 21 | * @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
| 22 | * @throws \EasyIM\Kernel\Exceptions\InvalidConfigException |
||
| 23 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 24 | */ |
||
| 25 | public function getGlobalNoSpeaking(string $account) |
||
| 26 | { |
||
| 27 | $params = [ |
||
| 28 | 'Get_Account' => $account |
||
| 29 | ]; |
||
| 30 | |||
| 31 | return $this->httpPostJson('openconfigsvr/getnospeaking', $params); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set user forbidden words. |
||
| 36 | * |
||
| 37 | * @param string $account |
||
| 38 | * @param int $c2cMsgNoSpeakingTime |
||
| 39 | * @param int $groupMsgNoSpeakingTime |
||
| 40 | * |
||
| 41 | * @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
| 42 | * @throws \EasyIM\Kernel\Exceptions\InvalidConfigException |
||
| 43 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 44 | */ |
||
| 45 | public function setGlobalNoSpeaking(string $account, int $c2cMsgNoSpeakingTime = 0, int $groupMsgNoSpeakingTime = 0) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |