Example #1
0
        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();
        }
Example #2
0
        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;
        }
Example #3
0
        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);
        }
Example #4
0
        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;
        }
Example #5
0
        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);
        }
Example #6
0
        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"));
        }