ApiCore.Photos.PhotosFactory.CreateAlbum C# (CSharp) Метод

CreateAlbum() публичный Метод

public CreateAlbum ( string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description ) : AlbumEntry
title string
access AlbumAccessPrivacy
comment AlbumCommentPrivacy
description string
Результат AlbumEntry
        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;
        }