public class SearchResults extends Object
Constructor and Description |
---|
SearchResults(String term,
SearchWeightClass weightClass,
Sherdog sherdog) |
Modifier and Type | Method and Description |
---|---|
List<SherdogBaseObject> |
getEvents()
Gets the simple version of the events(name and url only)
|
List<Event> |
getEventsWithCompleteData()
Gets the events with the full data
This method can be long as it will query each event page
|
List<SherdogBaseObject> |
getFighters()
Gets the simple version of the fighters (name and url only)
|
List<Fighter> |
getFightersWithCompleteData()
Gets the fighter with the full data
This method can be long as it will query each fighter page
|
SearchResults |
nextPage()
Gets the next result page
|
public SearchResults(String term, SearchWeightClass weightClass, Sherdog sherdog) throws IOException
IOException
public SearchResults nextPage() throws IOException
IOException
- if the search http query failspublic List<SherdogBaseObject> getFighters()
public List<SherdogBaseObject> getEvents()
public List<Fighter> getFightersWithCompleteData()
Copyright © 2019. All rights reserved.