Record Class InputChecklistTask
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputChecklistTask
- All Implemented Interfaces:
Serializable,ApiResult
public record InputChecklistTask(int id, String text, @Nullable ParseMode parseMode, @Nullable MessageEntity[] textEntities)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputChecklistTask(int id, String text, @Nullable ParseMode parseMode, @Nullable MessageEntity[] textEntities) Creates an instance of aInputChecklistTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.static @NotNull lombok.Builder@Nullable ParseModeReturns the value of theparseModerecord component.text()Returns the value of thetextrecord component.@Nullable MessageEntity[]Returns the value of thetextEntitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputChecklistTask
public InputChecklistTask(int id, String text, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] textEntities) Creates an instance of aInputChecklistTaskrecord class.- Parameters:
id- the value for theidrecord componenttext- the value for thetextrecord componentparseMode- the value for theparseModerecord componenttextEntities- the value for thetextEntitiesrecord component
-
-
Method Details
-
ofBuilder
-
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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
textEntities
Returns the value of thetextEntitiesrecord component.- Returns:
- the value of the
textEntitiesrecord component
-