Merge pull request #34 from TeQuieroRu/patch-3

Added additional fields
This commit is contained in:
Vladimir Barinov 2021-01-09 15:39:12 +03:00 committed by GitHub
commit d3907e58b0
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;
}
}