Record Class SwitchInlineQueryChosenChat
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.SwitchInlineQueryChosenChat
- All Implemented Interfaces:
Serializable,ApiResult
public record SwitchInlineQueryChosenChat(@Nullable String query, boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSwitchInlineQueryChosenChat(@Nullable String query, boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats) Creates an instance of aSwitchInlineQueryChosenChatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowBotChatsrecord component.booleanReturns the value of theallowChannelChatsrecord component.booleanReturns the value of theallowGroupChatsrecord component.booleanReturns the value of theallowUserChatsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringquery()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SwitchInlineQueryChosenChat
public SwitchInlineQueryChosenChat(@Nullable @Nullable String query, boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats) Creates an instance of aSwitchInlineQueryChosenChatrecord class.- Parameters:
query- the value for thequeryrecord componentallowUserChats- the value for theallowUserChatsrecord componentallowBotChats- the value for theallowBotChatsrecord componentallowGroupChats- the value for theallowGroupChatsrecord componentallowChannelChats- the value for theallowChannelChatsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
allowUserChats
public boolean allowUserChats()Returns the value of theallowUserChatsrecord component.- Returns:
- the value of the
allowUserChatsrecord component
-
allowBotChats
public boolean allowBotChats()Returns the value of theallowBotChatsrecord component.- Returns:
- the value of the
allowBotChatsrecord component
-
allowGroupChats
public boolean allowGroupChats()Returns the value of theallowGroupChatsrecord component.- Returns:
- the value of the
allowGroupChatsrecord component
-
allowChannelChats
public boolean allowChannelChats()Returns the value of theallowChannelChatsrecord component.- Returns:
- the value of the
allowChannelChatsrecord component
-