Package com.aerisweather.aeris.tiles
Class TimeCodeResponse
- java.lang.Object
-
- com.aerisweather.aeris.tiles.TimeCodeResponse
-
public class TimeCodeResponse extends Object
JSON wrapper for the time code response
-
-
Field Summary
Fields Modifier and Type Field Description List<TileTimeInfo>
files
-
Constructor Summary
Constructors Constructor Description TimeCodeResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeCodeResponse
convertFromString(String resp)
Converts the string response to a TimeCodeResponse.TileTimeInfo
get(int index)
Gets the index from the file list.TileTimeInfo
getFirst()
Get the first item from the list of images.
-
-
-
Field Detail
-
files
public List<TileTimeInfo> files
-
-
Method Detail
-
convertFromString
public static TimeCodeResponse convertFromString(String resp)
Converts the string response to a TimeCodeResponse.- Parameters:
resp
- response to convert- Returns:
- TimeCodeResponse object with converted values inserted.
-
getFirst
public TileTimeInfo getFirst()
Get the first item from the list of images.- Returns:
- the first item, null otherwise.
-
get
public TileTimeInfo get(int index)
Gets the index from the file list.- Parameters:
index
- the index to get.- Returns:
- The index from the list, null if out of bounds or list is null.
-
-