public bool EditAlbum(int albumId, string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description) { this.Manager.Method("photos.editAlbum", new object[] { "aid", albumId, "title", title, "privacy", access, "comment_privacy", comment, "description", description }); XmlUtils.UseNode(this.Manager.Execute().GetResponseXml()); return XmlUtils.BoolVal(); }
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; }
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); }
public bool EditAlbum(int albumId, string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description) { this.Manager.Method("photos.editAlbum"); this.Manager.Params("aid", albumId); 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) { XmlUtils.UseNode(result); return XmlUtils.BoolVal(); } return false; }
public bool EditAlbum(int albumId, string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description) { this.Manager.Method("photos.editAlbum"); this.Manager.Params("aid", albumId); 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) { XmlUtils.UseNode(result); return(XmlUtils.BoolVal()); } return(false); }
public AlbumEntry CreateAlbum(string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description) { this.Manager.Method("photos.createAlbum", new object[] { "title", title, "privacy", access, "comment_privacy", comment, "description", description }); return this.buildAlbumEntry(this.Manager.Execute().GetResponseXml().SelectSingleNode("album")); }