Record Class SwitchInlineQueryChosenChat
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.SwitchInlineQueryChosenChat
- All Implemented Interfaces:
Serializable, ApiResult
-
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
-
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. -
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
-