Record Class InputMediaVenue
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputMediaVenue
- All Implemented Interfaces:
Serializable, ApiResult, InputPollMedia, InputPollOptionMedia
public record InputMediaVenue(float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType)
extends Record
implements InputPollMedia, InputPollOptionMedia
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InputPollMedia
TYPE_NAMEFields inherited from interface InputPollOptionMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputMediaVenue(float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType) Creates an instance of aInputMediaVenuerecord 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.floatlatitude()Returns the value of thelatituderecord component.floatReturns the value of thelongituderecord component.static @NotNull InputMediaVenue.Builder@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputMediaVenue
public InputMediaVenue(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) Creates an instance of aInputMediaVenuerecord 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
-
ofBuilder
@NotNull public static @NotNull InputMediaVenue.Builder ofBuilder(float latitude, float longitude, String title, String address) -
type
- Specified by:
typein interfaceInputPollMedia- Specified by:
typein interfaceInputPollOptionMedia
-
toBuilder
-
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
-