/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="responsefields">Get extra information from the requested users</param> /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection <User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, HyvesUserResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage) { if (sortType == HyvesUserSortType.Unknown) { throw new ArgumentNullException("sortType"); } HyvesRequest request = new HyvesRequest(this.session); request.Parameters["sorttype"] = EnumHelper.GetDescription(sortType); request.Parameters["ha_responsefields"] = ConvertResponsefieldsToString(responsefields, HyvesUserPrivateResponsefield.None); HyvesResponse response = request.InvokeMethod(HyvesMethod.UsersGetFriendsByLoggedinSorted, useFancyLayout, page, resultsPerPage); if (response.Status == HyvesResponseStatus.Succeeded) { return(response.ProcessResponse <User>("user")); } return(null); }
/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="responsefields">Get extra information from the requested users</param> /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection<User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, HyvesUserResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage) { if (sortType == HyvesUserSortType.Unknown) { throw new ArgumentNullException("sortType"); } HyvesRequest request = new HyvesRequest(this.session); request.Parameters["sorttype"] = EnumHelper.GetDescription(sortType); request.Parameters["ha_responsefields"] = ConvertResponsefieldsToString(responsefields, HyvesUserPrivateResponsefield.None); HyvesResponse response = request.InvokeMethod(HyvesMethod.UsersGetFriendsByLoggedinSorted, useFancyLayout, page, resultsPerPage); if (response.Status == HyvesResponseStatus.Succeeded) { return response.ProcessResponse<User>("user"); } return null; }
/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection<User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, bool useFancyLayout) { return GetFriendsByLoggedinSorted(sortType, HyvesUserResponsefield.All, useFancyLayout, -1, -1); }
/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="responsefields">Get extra information from the requested users</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection<User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, HyvesUserResponsefield responsefields) { return GetFriendsByLoggedinSorted(sortType, responsefields, false, -1, -1); }
/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection <User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, bool useFancyLayout) { return(GetFriendsByLoggedinSorted(sortType, HyvesUserResponsefield.All, useFancyLayout, -1, -1)); }
/// <summary> /// Gets the desired information about the friends for the current loggedin user with different sort-options. /// </summary> /// <param name="sortType">The sort type.</param> /// <param name="responsefields">Get extra information from the requested users</param> /// <returns>The information about the friends; null if the call fails.</returns> public Collection <User> GetFriendsByLoggedinSorted(HyvesUserSortType sortType, HyvesUserResponsefield responsefields) { return(GetFriendsByLoggedinSorted(sortType, responsefields, false, -1, -1)); }