public AlbumEntry CreateAlbum(string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description)
{
this.Manager.Method("photos.createAlbum");
this.Manager.Params("title", title);
this.Manager.Params("privacy", access);
this.Manager.Params("comment_privacy", comment);
if (description != null)
{
this.Manager.Params("description", description);
}
XmlNode result = this.Manager.Execute().GetResponseXml();
if (this.Manager.MethodSuccessed)
{
return this.buildAlbumEntry(result.SelectSingleNode("album"));
}
return null;
}