Iterables.getOnlyElement(optionalMediaItemIds),
request.getFields(), request.getToken());
} else {
return service.getMediaItems(Iterables.getOnlyElement(userIds),
request.getAppId(), albumId, optionalMediaItemIds,
request.getFields(), new CollectionOptions(request),
request.getToken());
}
}
// Retrieve by Album
if (albumId != null) {
return service.getMediaItems(Iterables.getOnlyElement(userIds),
request.getAppId(), albumId, request.getFields(),
new CollectionOptions(request), request.getToken());
}
// Retrieve by users and groups
return service.getMediaItems(userIds, request.getGroup(), request
.getAppId(), request.getFields(),
new CollectionOptions(request), request.getToken());
}