Record Class ChosenInlineResult
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChosenInlineResult
- All Implemented Interfaces:
Serializable,ApiResult
public record ChosenInlineResult(String resultId, User from, @Nullable Location location, @Nullable String inlineMessageId, String query)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinlineMessageIdrecord component.@Nullable Locationlocation()Returns the value of thelocationrecord component.query()Returns the value of thequeryrecord component.resultId()Returns the value of theresultIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChosenInlineResult
public ChosenInlineResult(String resultId, User from, @Nullable @Nullable Location location, @Nullable @Nullable String inlineMessageId, String query) Creates an instance of aChosenInlineResultrecord class.- Parameters:
resultId- the value for theresultIdrecord componentfrom- the value for thefromrecord componentlocation- the value for thelocationrecord componentinlineMessageId- the value for theinlineMessageIdrecord componentquery- the value for thequeryrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
resultId
Returns the value of theresultIdrecord component.- Returns:
- the value of the
resultIdrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
inlineMessageId
Returns the value of theinlineMessageIdrecord component.- Returns:
- the value of the
inlineMessageIdrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-