/// <summary> /// Unlikes current post /// </summary> /// <returns>Request result</returns> /// <exception cref="LinkedInInvalidOperationException">Thrown when user attempts to unlike the post which is not marked as available for this action</exception> public LinkedInResponse <bool> Unlike() { if (!AvailableAction[LinkedInGroupPostAction.Like]) { throw new LinkedInInvalidOperationException("Unlike action is not available for current post"); } return(RequestRunner.LikeUnlikePost(Id, false)); }