public interface APIConsumer
| Modifier and Type | Method and Description |
|---|---|
HolidayAPIResponse |
getHolidays(QueryParams queryParams)
Call the holidays api and send back the response encapsulatd in a
HolidayAPIResponse object |
String |
getHolidaysAsString(QueryParams queryParams)
Call the holidays api and send back the response as a json string
|
HolidayAPIResponse getHolidays(QueryParams queryParams) throws IOException
HolidayAPIResponse objectqueryParams - - the params encapsulated in an objectIOException - - when there are connection issues or the URL is malformedString getHolidaysAsString(QueryParams queryParams) throws IOException
queryParams - - the params encapsulated in an objectIOException - - when there are connection issues or the URL is malformedCopyright © 2020. All rights reserved.