Список параметров для метода photos.edit
Example #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);
        }
Example #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;
        }
Example #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);
        }
Example #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;
		}
Example #5
0
 public bool Edit(PhotoEditParams @params)
 {
     return _vk.Call("photos.edit", @params);
 }