public List<AlbumEntry> GetAlbums(int? userId, int[] albums)
{
this.Manager.Method("photos.getAlbums");
if (userId != null)
{
this.Manager.Params("uid", userId);
}
if (albums != null)
{
this.Manager.Params("aids", string.Join(",", CommonUtils.ArrayIntToString(albums)));
}
XmlNode result = this.Manager.Execute().GetResponseXml();
if (this.Manager.MethodSuccessed)
{
return this.buildAlbumsList(result);
}
return null;
}