Class WeatherWarning
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherWarning
- All Implemented Interfaces:
Comparable<WeatherWarning>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlonggetPlainTextWarning(Context context, boolean includeCredentials) intstatic StringgetUnderlineString(String source, String underlineChar) intbooleanhasReferenceID(String referenceID) voidinitPolygons(Context context) booleanisInPolygonGeo(float testy, float testx) booleanisInPolygonGeo(Weather.WeatherLocation weatherLocation) booleanbooleanisUpdate()Checks if this warning is an update of a previously issued warning.
-
Field Details
-
ID_UPDATE
- See Also:
-
ID_SILENT_UPDATE
- See Also:
-
-
Constructor Details
-
WeatherWarning
public WeatherWarning()
-
-
Method Details
-
initPolygons
public void initPolygons(Context context) -
isInPolygonGeo
public boolean isInPolygonGeo(float testy, float testx) -
isInPolygonGeo
-
getWarningColor
public int getWarningColor() -
isUpdate
public boolean isUpdate()Checks if this warning is an update of a previously issued warning.- Returns:
- true if the warning is an update
-
isSilentUpdate
public boolean isSilentUpdate() -
hasReferenceID
-
getSeverity
public int getSeverity() -
getUnderlineString
-
getPlainTextWarning
-
compareTo
- Specified by:
compareToin interfaceComparable<WeatherWarning>
-
getApplicableExpires
public long getApplicableExpires()
-