| @@ 39-47 (lines=9) @@ | ||
| 36 | * |
|
| 37 | * @return User|ResponseInterface |
|
| 38 | */ |
|
| 39 | public function update($user, $param) |
|
| 40 | { |
|
| 41 | Assert::stringNotEmpty($user); |
|
| 42 | $param['user'] = $user; |
|
| 43 | ||
| 44 | $response = $this->httpPost('/api/user/update/profile', $param); |
|
| 45 | ||
| 46 | return $this->hydrateResponse($response, User::class); |
|
| 47 | } |
|
| 48 | /** |
|
| 49 | * @param string $user the user ID we should merge personality data to. |
|
| 50 | * @param string $from the user ID we should merge personality data from. |
|
| @@ 104-113 (lines=10) @@ | ||
| 101 | * |
|
| 102 | * @return TopUser|ResponseInterface |
|
| 103 | */ |
|
| 104 | public function topUser($pattern, array $params = []) |
|
| 105 | { |
|
| 106 | Assert::stringNotEmpty($pattern); |
|
| 107 | ||
| 108 | $params['pattern'] = $pattern; |
|
| 109 | ||
| 110 | $response = $this->httpGet('/api/match/top/users', $params); |
|
| 111 | ||
| 112 | return $this->hydrateResponse($response, TopUser::class); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||