/// <summary> /// Create a SearchRequest using specified information /// </summary> /// <param name="searchStores">Specified SearchStore arrays</param> /// <returns>A SearchRequest instance</returns> public static SearchRequest CreateSearchRequest(Request.SearchStore[] searchStores) { SearchRequest request = new SearchRequest(); Request.Search requestData = new Request.Search { Items = searchStores }; request.RequestData = requestData; return request; }
/// <summary> /// Create an empty SearchRequest instance /// </summary> /// <returns>An empty SearchRequest instance</returns> public static SearchRequest CreateSearchRequest() { SearchRequest request = new SearchRequest(); Request.Search requestData = new Request.Search(); request.RequestData = requestData; return request; }