Record Class InputVenueMessageContent
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputVenueMessageContent
- All Implemented Interfaces:
Serializable, ApiResult, InputMessageContent
-
Constructor Summary
ConstructorsConstructorDescriptionInputVenueMessageContent(float latitude, float longitude, String title, String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType) Creates an instance of aInputVenueMessageContentrecord class. -
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.floatlatitude()Returns the value of thelatituderecord component.floatReturns the value of thelongituderecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputVenueMessageContent
public InputVenueMessageContent(float latitude, float longitude, String title, String address, @Nullable @Nullable String foursquareId, @Nullable @Nullable String foursquareType, @Nullable @Nullable String googlePlaceId, @Nullable @Nullable String googlePlaceType) Creates an instance of aInputVenueMessageContentrecord class.- Parameters:
latitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord 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
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
latitude
public float latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public float longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord 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
-