Class Alert
java.lang.Object
com.github.prominence.openweathermap.api.model.onecall.current.Alert
The type Alert.
-
Constructor Summary
ConstructorsConstructorDescriptionAlert()Instantiates a new Alert.Alert(String senderName, String eventName, LocalDateTime startTime, LocalDateTime endTime, String description) Instantiates a new Alert. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets description.Gets end time.Gets event name.Gets sender name.Gets start time.inthashCode()voidsetDescription(String description) Sets description.voidsetEndTime(LocalDateTime endTime) Sets end time.voidsetEventName(String eventName) Sets event name.voidsetSenderName(String senderName) Sets sender name.voidsetStartTime(LocalDateTime startTime) Sets start time.toString()
-
Constructor Details
-
Alert
public Alert()Instantiates a new Alert. -
Alert
public Alert(String senderName, String eventName, LocalDateTime startTime, LocalDateTime endTime, String description) Instantiates a new Alert.- Parameters:
senderName- the sender nameeventName- the event namestartTime- the start timeendTime- the end timedescription- the description
-
-
Method Details
-
getSenderName
-
setSenderName
Sets sender name.- Parameters:
senderName- the sender name
-
getEventName
-
setEventName
-
getStartTime
-
setStartTime
Sets start time.- Parameters:
startTime- the start time
-
getEndTime
-
setEndTime
-
getDescription
-
setDescription
Sets description.- Parameters:
description- the description
-
equals
-
hashCode
-
toString
-