mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Added additional fields
This commit is contained in:
parent
e4d738737c
commit
0669995cd0
1 changed files with 21 additions and 0 deletions
|
@ -62,6 +62,27 @@ final class Users extends VKAPIRequestHandler
|
||||||
case 'status':
|
case 'status':
|
||||||
$response[$i]->status = $usr->getStatus();
|
$response[$i]->status = $usr->getStatus();
|
||||||
break;
|
break;
|
||||||
|
case 'screen_name':
|
||||||
|
$response[$i]->screen_name = $usr->getShortCode();
|
||||||
|
break;
|
||||||
|
case 'music':
|
||||||
|
$response[$i]->music = $usr->getFavoriteMusic();
|
||||||
|
break;
|
||||||
|
case 'movies':
|
||||||
|
$response[$i]->movies = $usr->getFavoriteFilms();
|
||||||
|
break;
|
||||||
|
case 'tv':
|
||||||
|
$response[$i]->tv = $usr->getFavoriteShows();
|
||||||
|
break;
|
||||||
|
case 'books':
|
||||||
|
$response[$i]->books = $usr->getFavoriteBooks();
|
||||||
|
break;
|
||||||
|
case 'city':
|
||||||
|
$response[$i]->city = $usr->getCity();
|
||||||
|
break;
|
||||||
|
case 'interests':
|
||||||
|
$response[$i]->interests = $usr->getInterests();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue