Параметры метода video.save
Ejemplo n.º 1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(VideoSaveParams p)
        {
            var parameters = new VkParameters
            {
                { "name", p.Name },
                { "description", p.Description },
                { "is_private", p.IsPrivate },
                { "wallpost", p.Wallpost },
                { "link", p.Link },
                { "group_id", p.GroupId },
                { "album_id", p.AlbumId },
                { "privacy_view", p.PrivacyView },
                { "privacy_comment", p.PrivacyComment },
                { "no_comments", p.NoComments },
                { "repeat", p.Repeat }
            };

            return(parameters);
        }
Ejemplo n.º 2
0
 public Video Save(VideoSaveParams @params)
 {
     return _vk.Call("video.save", @params);
 }
Ejemplo n.º 3
0
		public Video Save(string name = null, string description = null, bool isPrivate = false, bool isPostToWall = false, string link = null, long? groupId = null, long? albumId = null, bool isRepeat = false)
        {
            var parameters = new VideoSaveParams
				{
					Name = name,
					Description = description,
					IsPrivate = isPrivate,
					Wallpost = isPostToWall,
					Link = link,
					GroupId = groupId,
					AlbumId = albumId,
					Repeat = isRepeat
                };

            return Save(parameters);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(VideoSaveParams p)
        {
            var parameters = new VkParameters
            {
                { "name", p.Name },
                { "description", p.Description },
                { "is_private", p.IsPrivate },
                { "wallpost", p.Wallpost },
                { "link", p.Link },
                { "group_id", p.GroupId },
                { "album_id", p.AlbumId },
                { "privacy_view", p.PrivacyView },
                { "privacy_comment", p.PrivacyComment },
                { "no_comments", p.NoComments },
                { "repeat", p.Repeat }
            };

            return parameters;
        }