Record Class GoogleEvent

java.lang.Object
java.lang.Record
org.localify.data.queue.dto.google.GoogleEvent
Record Components:
eventName - The name of the event.
startTime - The start time of the event.
endTime - The end time of the event.
venue - The venue of the event.
venueAddress - The address of the venue.
ticketUrl - The URL for tickets.

@Deprecated public record GoogleEvent(@NotNull String eventName, Instant startTime, Instant endTime, @NotNull String venue, String venueAddress, String ticketUrl) extends Record
Deprecated.
This record is deprecated and may be removed in a future version.
Represents a Google event.
  • Constructor Details

    • GoogleEvent

      public GoogleEvent(@NotNull @NotNull String eventName, Instant startTime, Instant endTime, @NotNull @NotNull String venue, String venueAddress, String ticketUrl)
      Deprecated.
      Creates an instance of a GoogleEvent record class.
      Parameters:
      eventName - the value for the eventName record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      venue - the value for the venue record component
      venueAddress - the value for the venueAddress record component
      ticketUrl - the value for the ticketUrl record component
  • Method Details

    • toString

      public final String toString()
      Deprecated.
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Deprecated.
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Deprecated.
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • eventName

      @NotNull public @NotNull String eventName()
      Deprecated.
      Returns the value of the eventName record component.
      Returns:
      the value of the eventName record component
    • startTime

      public Instant startTime()
      Deprecated.
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • endTime

      public Instant endTime()
      Deprecated.
      Returns the value of the endTime record component.
      Returns:
      the value of the endTime record component
    • venue

      @NotNull public @NotNull String venue()
      Deprecated.
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • venueAddress

      public String venueAddress()
      Deprecated.
      Returns the value of the venueAddress record component.
      Returns:
      the value of the venueAddress record component
    • ticketUrl

      public String ticketUrl()
      Deprecated.
      Returns the value of the ticketUrl record component.
      Returns:
      the value of the ticketUrl record component