Record Class InlineQueryResultContact
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultContact
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultContact(@NotNull String id, @NotNull String phoneNumber, @NotNull String firstName, @Nullable String lastName, @Nullable String vcard, @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
ConstructorsConstructorDescriptionInlineQueryResultContact(@NotNull String id, @NotNull String phoneNumber, @NotNull String firstName, @Nullable String lastName, @Nullable String vcard, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent, @Nullable String thumbnailUrl, int thumbnailWidth, int thumbnailHeight) Creates an instance of aInlineQueryResultContactrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the value of thefirstNamerecord 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.@Nullable StringlastName()Returns the value of thelastNamerecord component.static @NotNull lombok.Builder@NotNull StringReturns the value of thephoneNumberrecord component.@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.final StringtoString()Returns a string representation of this record class.type()@Nullable Stringvcard()Returns the value of thevcardrecord component.
-
Constructor Details
-
InlineQueryResultContact
public InlineQueryResultContact(@NotNull @NotNull String id, @NotNull @NotNull String phoneNumber, @NotNull @NotNull String firstName, @Nullable @Nullable String lastName, @Nullable @Nullable String vcard, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent, @Nullable @Nullable String thumbnailUrl, int thumbnailWidth, int thumbnailHeight) Creates an instance of aInlineQueryResultContactrecord class.- Parameters:
id- the value for theidrecord componentphoneNumber- the value for thephoneNumberrecord componentfirstName- the value for thefirstNamerecord componentlastName- the value for thelastNamerecord componentvcard- the value for thevcardrecord 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
-
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
vcard
Returns the value of thevcardrecord component.- Returns:
- the value of the
vcardrecord 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
-