/// <summary> /// search code /// http://developer.github.com/v3/search/#search-code /// </summary> /// <param name="search"></param> /// <returns>List of files</returns> public Task <IReadOnlyList <SearchCode> > SearchCode(SearchCodeRequest search) { Ensure.ArgumentNotNull(search, "search"); return(ApiConnection.GetAll <SearchCode>(ApiUrls.SearchCode(), search.Parameters)); }
public Task <SearchCodeResult> SearchCode(SearchCodeRequest search) { Ensure.ArgumentNotNull(search, nameof(search)); return(ApiConnection.Get <SearchCodeResult>(ApiUrls.SearchCode(), search.Parameters)); }