Package dev.tobee.telegram.request.body
Record Class AnswerCallbackQueryBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.AnswerCallbackQueryBody
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerCallbackQueryBody(String callbackQueryId, Optional<String> text, Optional<Boolean> showAlert, Optional<String> url, OptionalLong cacheTime) Creates an instance of aAnswerCallbackQueryBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheTimerecord component.Returns the value of thecallbackQueryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theshowAlertrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
AnswerCallbackQueryBody
public AnswerCallbackQueryBody(String callbackQueryId, Optional<String> text, Optional<Boolean> showAlert, Optional<String> url, OptionalLong cacheTime) Creates an instance of aAnswerCallbackQueryBodyrecord class.- Parameters:
callbackQueryId- the value for thecallbackQueryIdrecord componenttext- the value for thetextrecord componentshowAlert- the value for theshowAlertrecord componenturl- the value for theurlrecord componentcacheTime- the value for thecacheTimerecord 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). -
callbackQueryId
Returns the value of thecallbackQueryIdrecord component.- Returns:
- the value of the
callbackQueryIdrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
showAlert
Returns the value of theshowAlertrecord component.- Returns:
- the value of the
showAlertrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
cacheTime
Returns the value of thecacheTimerecord component.- Returns:
- the value of the
cacheTimerecord component
-