Class Alert

java.lang.Object
com.github.prominence.openweathermap.api.model.onecall.current.Alert

public class Alert extends Object
The type Alert.
  • 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 name
      eventName - the event name
      startTime - the start time
      endTime - the end time
      description - the description
  • Method Details

    • getSenderName

      public String getSenderName()
      Gets sender name.
      Returns:
      the sender name
    • setSenderName

      public void setSenderName(String senderName)
      Sets sender name.
      Parameters:
      senderName - the sender name
    • getEventName

      public String getEventName()
      Gets event name.
      Returns:
      the event name
    • setEventName

      public void setEventName(String eventName)
      Sets event name.
      Parameters:
      eventName - the event name
    • getStartTime

      public LocalDateTime getStartTime()
      Gets start time.
      Returns:
      the start time
    • setStartTime

      public void setStartTime(LocalDateTime startTime)
      Sets start time.
      Parameters:
      startTime - the start time
    • getEndTime

      public LocalDateTime getEndTime()
      Gets end time.
      Returns:
      the end time
    • setEndTime

      public void setEndTime(LocalDateTime endTime)
      Sets end time.
      Parameters:
      endTime - the end time
    • getDescription

      public String getDescription()
      Gets description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets description.
      Parameters:
      description - the description
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object