Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the SearchResultsResponse class.
 /// </summary>
 /// <param name="id">The id of the search, which includes the full
 /// url.</param>
 /// <param name="metadata">The metadata from search results.</param>
 /// <param name="value">The array of result values.</param>
 /// <param name="error">The error.</param>
 public SearchResultsResponse(string id = default(string), SearchMetadata metadata = default(SearchMetadata), System.Collections.Generic.IList <object> value = default(System.Collections.Generic.IList <object>), SearchError error = default(SearchError))
 {
     Id       = id;
     Metadata = metadata;
     Value    = value;
     Error    = error;
 }
Ejemplo n.º 2
0
 public PSSearchError(SearchError error)
 {
     if (error != null)
     {
         this.Type = error.Type;
         this.Message = error.Message;
     }
 }