/// <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); }
/// <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; }
/// <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); }
/// <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; }
public bool Edit(PhotoEditParams @params) { return _vk.Call("photos.edit", @params); }