コード例 #1
0
            /// <summary>
            /// Retrieves refiners for a given product search criteria.
            /// </summary>
            /// <param name="request">The product refiners request.</param>
            /// <returns>The product refiners response.</returns>
            public static GetProductRefinersServiceResponse GetProductRefiners(GetProductRefinersRequest request)
            {
                var dataRequest = new GetProductRefinersDataRequest(request.SearchCriteria);

                var dataResponse = request.RequestContext.Execute <GetProductRefinersDataResponse>(dataRequest);

                var refiners = AssembleRefiners(dataResponse.Refiners, dataResponse.RefinerValues);

                return(new GetProductRefinersServiceResponse(refiners));
            }
コード例 #2
0
 private static GetProductRefinersServiceResponse GetProductRefiners(GetProductRefinersRequest request)
 {
     return(ProductRefinement.GetProductRefiners(request));
 }