Record Class Venue
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.Venue
- All Implemented Interfaces:
Serializable,ApiResult
public record Venue(Location location, String title, String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of thefoursquareIdrecord component.@Nullable StringReturns the value of thefoursquareTyperecord component.@Nullable StringReturns the value of thegooglePlaceIdrecord component.@Nullable StringReturns the value of thegooglePlaceTyperecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Venue
public Venue(Location location, String title, String address, @Nullable @Nullable String foursquareId, @Nullable @Nullable String foursquareType, @Nullable @Nullable String googlePlaceId, @Nullable @Nullable String googlePlaceType) Creates an instance of aVenuerecord class.- Parameters:
location- the value for thelocationrecord componenttitle- the value for thetitlerecord componentaddress- the value for theaddressrecord componentfoursquareId- the value for thefoursquareIdrecord componentfoursquareType- the value for thefoursquareTyperecord componentgooglePlaceId- the value for thegooglePlaceIdrecord componentgooglePlaceType- the value for thegooglePlaceTyperecord component
-
-
Method Details
-
toString
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
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 withObjects::equals(Object,Object). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
foursquareId
Returns the value of thefoursquareIdrecord component.- Returns:
- the value of the
foursquareIdrecord component
-
foursquareType
Returns the value of thefoursquareTyperecord component.- Returns:
- the value of the
foursquareTyperecord component
-
googlePlaceId
Returns the value of thegooglePlaceIdrecord component.- Returns:
- the value of the
googlePlaceIdrecord component
-
googlePlaceType
Returns the value of thegooglePlaceTyperecord component.- Returns:
- the value of the
googlePlaceTyperecord component
-