Esempio n. 1
0
        public PhotoAlbum CreateAlbum(string title, long? groupId = null, string description = null, CommentPrivacy? commentPrivacy = null, CommentPrivacy? privacy = null)
        {
            var parameters = new VkParameters
                {
                    {"title", title},
                    {"group_id", groupId},
                    {"description", description},
                    {"comment_privacy", commentPrivacy},
                    {"privacy", privacy}
                };

            VkResponse response = _vk.Call("photos.createAlbum", parameters);

            return response;
        }
Esempio n. 2
0
        public bool EditAlbum(long albumId, string title = null, string description = null, long? ownerId = null, CommentPrivacy? privacy = null, CommentPrivacy? commentPrivacy = null)
        {
            VkErrors.ThrowIfNumberIsNegative(() => albumId);

            var parameters = new VkParameters
                {
                    {"album_id", albumId},
                    {"title", title},
                    {"description", description},
                    {"owner_id", ownerId},
                    {"privacy", privacy},
                    {"comment_privacy", commentPrivacy}
                };

            VkResponse response = _vk.Call("photos.editAlbum", parameters);

            return response;
        }