Example #1
0
 /// <summary>
 /// Follows current post
 /// </summary>
 /// <returns>Request result</returns>
 /// <exception cref="LinkedInInvalidOperationException">Thrown when user attempts to unfollow the post which is not marked as available for this action</exception>
 public LinkedInResponse <bool> Unfollow()
 {
     if (!AvailableAction[LinkedInGroupPostAction.Follow])
     {
         throw new LinkedInInvalidOperationException("Unfollow action is not available for current post");
     }
     return(RequestRunner.FollowUnfollowPost(Id, false));
 }