/// <inheritdoc /> public Task <bool> EditAsync(WallEditParams @params) { return(TypeHelper.TryInvokeMethodAsync(func: () => Edit(@params: @params))); }
/// <summary> /// Редактирует запись на стене. /// </summary> /// <param name="params">Входные параметры выборки.</param> /// <returns> /// После успешного выполнения возвращает <c>true</c>. /// </returns> /// <remarks> /// Страница документации ВКонтакте http://vk.com/dev/wall.edit /// </remarks> public bool Edit(WallEditParams @params) { return(_vk.Call("wall.edit", @params)); }
public bool Edit(WallEditParams @params) { return _vk.Call("wall.edit", @params); }
public bool Edit(long postId, long? ownerId = null, bool friendsOnly = false, string message = null, IEnumerable<MediaAttachment> mediaAttachments = null, string url = null, IEnumerable<Services> services = null, bool signed = false, DateTime? publishDate = null, double? lat = null, double? @long = null, long? placeId = null) { if (string.IsNullOrEmpty(message) && (mediaAttachments == null || !mediaAttachments.Any()) && string.IsNullOrEmpty(url)) throw new ArgumentException("Message and attachments cannot be null or empty at the same time."); VkErrors.ThrowIfNumberIsNegative(() => placeId); VkErrors.ThrowIfNumberIsNegative(() => postId); if (lat.HasValue && (Math.Abs(lat.Value) > 90)) throw new ArgumentOutOfRangeException("lat", lat, "lat must be at range from -90 to 90"); if (@long.HasValue && (Math.Abs(@long.Value) > 180)) throw new ArgumentOutOfRangeException("long", @long, "long must be at range from -90 to 90"); var parameters = new WallEditParams { PostId = postId, OwnerId = ownerId, FriendsOnly = friendsOnly, Message = message, Attachments = mediaAttachments, Services = services, Signed = signed, PublishDate = publishDate, Lat = lat, Long = @long, PlaceId = placeId }; return Edit(parameters); }
/// <inheritdoc /> public bool Edit(WallEditParams @params) { return(_vk.Call(methodName: "wall.edit", parameters: @params)); }
/// <inheritdoc /> public async Task <bool> EditAsync(WallEditParams @params) { return(await TypeHelper.TryInvokeMethodAsync(() => _vk.Wall.Edit(@params))); }
/// <summary> /// Edits a post on a user wall or community wall. /// </summary> /// <param name="methodParams">A <see cref="WallEditParams"/> object with the params.</param> /// <returns>If successfully executed, returns True.</returns> public async Task<Response<bool>> Edit(WallEditParams methodParams) => await Request<bool>("edit", methodParams);