Список параметров для метода photos.edit
Пример #1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(PhotoEditParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "photo_id", p.PhotoId },
                { "caption", p.Caption },
                { "latitude", p.Latitude },
                { "longitude", p.Longitude },
                { "place_str", p.PlaceStr },
                { "foursquare_id", p.FoursquareId },
                { "delete_place", p.DeletePlace }
            };

            return(parameters);
        }
Пример #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(PhotoEditParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "photo_id", p.PhotoId },
                { "caption", p.Caption },
                { "latitude", p.Latitude },
                { "longitude", p.Longitude },
                { "place_str", p.PlaceStr },
                { "foursquare_id", p.FoursquareId },
                { "delete_place", p.DeletePlace }
            };

            return parameters;
        }
Пример #3
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(PhotoEditParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "photo_id", p.PhotoId },
                { "caption", HttpUtility.UrlEncode(p.Caption) },
                { "latitude", p.Latitude },
                { "longitude", p.Longitude },
                { "place_str", p.PlaceStr },
                { "foursquare_id", p.FoursquareId },
                { "delete_place", p.DeletePlace },
                { "captcha_sid", p.CaptchaSid },
                { "captcha_key", p.CaptchaKey }
            };

            return(parameters);
        }
Пример #4
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(PhotoEditParams p)
		{
			var parameters = new VkParameters
			{
				{ "owner_id", p.OwnerId },
				{ "photo_id", p.PhotoId },
				{ "caption", HttpUtility.UrlEncode(p.Caption) },
				{ "latitude", p.Latitude },
				{ "longitude", p.Longitude },
				{ "place_str", p.PlaceStr },
				{ "foursquare_id", p.FoursquareId },
				{ "delete_place", p.DeletePlace },
                { "captcha_sid", p.CaptchaSid },
                { "captcha_key", p.CaptchaKey }
            };

			return parameters;
		}
Пример #5
0
 public bool Edit(PhotoEditParams @params)
 {
     return _vk.Call("photos.edit", @params);
 }