/// <summary> /// Loads group's posts /// </summary> /// <param name="options"><see cref="LinkedInGetGroupPostsOptions"/> object representing posts retrieval options</param> /// <returns>Request result</returns> /// <remarks>This is synchronous operation, i.e. the current thread will be suspended until it finishes to load all posts. If you want to load group's posts asynchronously, consider to use <see cref="LinkedInClient.GetGroupPosts"/> function instead</remarks> public LinkedInResponse <bool> LoadPosts(LinkedInGetGroupPostsOptions options) { try { if (_Posts == null) { _Posts = new List <LinkedInGroupPost>(); } else { _Posts.Clear(); } options.GroupId = Id; _Posts.AddRange(RequestRunner.GetGroupPosts(options)); return(new LinkedInResponse <bool>(true, LinkedInResponseStatus.OK, null)); } catch (WebException wex) { return(Utils.GetResponse(false, wex, null)); } catch (Exception ex) { return(new LinkedInResponse <bool>(false, LinkedInResponseStatus.OtherException, null, ex)); } }