getUserPhotos method
Future<Result<PhotosPhotosBase> >
getUserPhotos({
- required InputUserBase userId,
- required int offset,
- required int maxId,
- required int limit,
Get User Photos.
ID: 91cd32a8
.
Implementation
Future<Result<PhotosPhotosBase>> getUserPhotos({
required InputUserBase userId,
required int offset,
required int maxId,
required int limit,
}) async {
// Preparing the request.
final request = PhotosGetUserPhotos(
userId: userId,
offset: offset,
maxId: maxId,
limit: limit,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<PhotosPhotosBase>();
}