Added additional fields

This commit is contained in:
Vladimir Lapskiy 2021-01-09 14:56:38 +05:00 committed by GitHub
parent e4d738737c
commit 0669995cd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}