/// <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); }
public Video Save(VideoSaveParams @params) { return _vk.Call("video.save", @params); }
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); }
/// <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; }