Параметры метода audio.edit
Esempio n. 1
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(AudioEditParams p)
		{
			var parameters = new VkParameters
			{
				{ "owner_id", p.OwnerId },
				{ "audio_id", p.AudioId },
				{ "artist", p.Artist },
				{ "title", p.Title },
				{ "text", p.Text },
				{ "genre_id", p.GenreId },
				{ "no_search", p.NoSearch }
			};

			return parameters;
		}
Esempio n. 2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(AudioEditParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "audio_id", p.AudioId },
                { "artist", p.Artist },
                { "title", p.Title },
                { "text", p.Text },
                { "genre_id", p.GenreId },
                { "no_search", p.NoSearch }
            };

            return(parameters);
        }
Esempio n. 3
0
        public long Edit(long audioId, long ownerId, string artist, string title, string text, bool? noSearch = null, AudioGenre? genreId = AudioGenre.Other)
        {
            var parameters = new AudioEditParams
            {
                AudioId = audioId,
                OwnerId = ownerId,
                Artist = artist,
                Title = title,
                Text = text,
                NoSearch = noSearch,
                GenreId = genreId
            };

            return Edit(parameters);
        }