Record Class InlineQueryResultVenue
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultVenue
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultVenue(@NotNull String id, float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent, @Nullable String thumbnailUrl, int thumbnailWidth, int thumbnailHeight)
extends Record
implements InlineQueryResult
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InlineQueryResult
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultVenue(@NotNull String id, float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent, @Nullable String thumbnailUrl, int thumbnailWidth, int thumbnailHeight) Creates an instance of aInlineQueryResultVenuerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringaddress()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.@NotNull Stringid()Returns the value of theidrecord component.@Nullable InputMessageContentReturns the value of theinputMessageContentrecord component.floatlatitude()Returns the value of thelatituderecord component.floatReturns the value of thelongituderecord component.static @NotNull lombok.Builder@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.intReturns the value of thethumbnailHeightrecord component.@Nullable StringReturns the value of thethumbnailUrlrecord component.intReturns the value of thethumbnailWidthrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultVenue
public InlineQueryResultVenue(@NotNull @NotNull String id, float latitude, float longitude, @NotNull @NotNull String title, @NotNull @NotNull String address, @Nullable @Nullable String foursquareId, @Nullable @Nullable String foursquareType, @Nullable @Nullable String googlePlaceId, @Nullable @Nullable String googlePlaceType, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent, @Nullable @Nullable String thumbnailUrl, int thumbnailWidth, int thumbnailHeight) Creates an instance of aInlineQueryResultVenuerecord class.- Parameters:
id- the value for theidrecord componentlatitude- 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 componentreplyMarkup- the value for thereplyMarkuprecord componentinputMessageContent- the value for theinputMessageContentrecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentthumbnailWidth- the value for thethumbnailWidthrecord componentthumbnailHeight- the value for thethumbnailHeightrecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInlineQueryResult
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
inputMessageContent
Returns the value of theinputMessageContentrecord component.- Returns:
- the value of the
inputMessageContentrecord component
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
thumbnailWidth
public int thumbnailWidth()Returns the value of thethumbnailWidthrecord component.- Returns:
- the value of the
thumbnailWidthrecord component
-
thumbnailHeight
public int thumbnailHeight()Returns the value of thethumbnailHeightrecord component.- Returns:
- the value of the
thumbnailHeightrecord component
-