From 0669995cd06d3c60053f637c71ea39c8a3549325 Mon Sep 17 00:00:00 2001 From: Vladimir Lapskiy Date: Sat, 9 Jan 2021 14:56:38 +0500 Subject: [PATCH] Added additional fields --- VKAPI/Handlers/Users.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/VKAPI/Handlers/Users.php b/VKAPI/Handlers/Users.php index 24deb65d..f075176b 100644 --- a/VKAPI/Handlers/Users.php +++ b/VKAPI/Handlers/Users.php @@ -62,6 +62,27 @@ final class Users extends VKAPIRequestHandler case 'status': $response[$i]->status = $usr->getStatus(); 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; } }