Example #1
0
 /// <summary>
 /// Changes item comment's text.
 /// </summary>
 /// <param name="ownerId">Identifier of an item owner community.</param>
 /// <param name="commentId">Comment Id.</param>
 /// <param name="message">New comment text (required if <c>attachments</c> are not specified). 2048 symbols max.</param>
 /// <param name="attachments">List of objects attached to a comment.</param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task<Response<bool>> EditComment(int ownerId, int commentId, string message = null,
     List<IMediaAttachment> attachments = null)
     => await EditComment(ownerId, commentId, message, attachments?.GetCommentAttachments());
Example #2
0
 /// <summary>
 /// Edits a comment on a user wall or community wall.
 /// </summary>
 /// <param name="commentId">Comment ID. </param>
 /// <param name="ownerId">User ID or community ID. Use a negative value to designate a community ID. </param>
 /// <param name="text">New comment text.</param>
 /// <param name="attachments">List of objects attached to the comment.</param>
 /// <returns>If successfully executed, returns True.</returns>
 public async Task<Response<bool>> EditComment(int commentId, int? ownerId = null, string text = null,
     List<IMediaAttachment> attachments = null)
     => await EditComment(commentId, ownerId, text, attachments?.GetCommentAttachments());