/// <summary>
        /// Gets the scraps from the specified hub. This corresponds to the
        /// hubs.getScraps Hyves method.
        /// </summary>
        /// <param name="targetHubId">The requested hub Id.</param>
        /// <param name="sortOrder">The sort order of the results.</param>
        /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param>
        /// <param name="page">The requested page.</param>
        /// <param name="resultsPerPage">The number of results per page.</param>
        /// <returns>The information about the specified hub; null if the call fails.</returns>
        public Collection <Scrap> GetScraps(string targetHubId, HyvesSortOrder sortOrder, bool useFancyLayout, int page, int resultsPerPage)
        {
            if (string.IsNullOrEmpty(targetHubId))
            {
                throw new ArgumentNullException("targetHubId");
            }

            HyvesRequest request = new HyvesRequest(this.session);

            request.Parameters["target_hubid"] = targetHubId;
            request.Parameters["sortorder"]    = EnumHelper.GetDescription(sortOrder);

            HyvesResponse response = request.InvokeMethod(HyvesMethod.HubsGetScraps, useFancyLayout, page, resultsPerPage);

            if (response.Status == HyvesResponseStatus.Succeeded)
            {
                return(response.ProcessResponse <Scrap>("scrap"));
            }

            return(null);
        }
    /// <summary>
    /// Gets the scraps from the specified hub. This corresponds to the
    /// hubs.getScraps Hyves method.
    /// </summary>
    /// <param name="targetHubId">The requested hub Id.</param>
    /// <param name="sortOrder">The sort order of the results.</param>
    /// <param name="useFancyLayout">Display information the same way that that is being done on the site, including things like smilies.</param>
    /// <param name="page">The requested page.</param>
    /// <param name="resultsPerPage">The number of results per page.</param>
    /// <returns>The information about the specified hub; null if the call fails.</returns>
    public Collection<Scrap> GetScraps(string targetHubId, HyvesSortOrder sortOrder, bool useFancyLayout, int page, int resultsPerPage)
    {
      if (string.IsNullOrEmpty(targetHubId))
      {
        throw new ArgumentNullException("targetHubId");
      }

      HyvesRequest request = new HyvesRequest(this.session);
      request.Parameters["target_hubid"] = targetHubId;
      request.Parameters["sortorder"] = EnumHelper.GetDescription(sortOrder);

      HyvesResponse response = request.InvokeMethod(HyvesMethod.HubsGetScraps, useFancyLayout, page, resultsPerPage);
      if (response.Status == HyvesResponseStatus.Succeeded)
      {
        return response.ProcessResponse<Scrap>("scrap");
      }

      return null;
    }