Record Class ChecklistTask
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChecklistTask
- All Implemented Interfaces:
Serializable,ApiResult
public record ChecklistTask(int id, String text, @Nullable MessageEntity[] textEntities, @Nullable User completedByUser, @Nullable Chat completedByChat, @Nullable Date completionDate)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChecklistTask(int id, String text, @Nullable MessageEntity[] textEntities, @Nullable User completedByUser, @Nullable Chat completedByChat, @Nullable Date completionDate) Creates an instance of aChecklistTaskrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ChatReturns the value of thecompletedByChatrecord component.@Nullable UserReturns the value of thecompletedByUserrecord component.@Nullable DateReturns the value of thecompletionDaterecord component.final 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.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
-
ChecklistTask
public ChecklistTask(int id, String text, @Nullable @Nullable MessageEntity[] textEntities, @Nullable @Nullable User completedByUser, @Nullable @Nullable Chat completedByChat, @Nullable @Nullable Date completionDate) Creates an instance of aChecklistTaskrecord class.- Parameters:
id- the value for theidrecord componenttext- the value for thetextrecord componenttextEntities- the value for thetextEntitiesrecord componentcompletedByUser- the value for thecompletedByUserrecord componentcompletedByChat- the value for thecompletedByChatrecord componentcompletionDate- the value for thecompletionDaterecord 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 '=='. -
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
-
textEntities
Returns the value of thetextEntitiesrecord component.- Returns:
- the value of the
textEntitiesrecord component
-
completedByUser
Returns the value of thecompletedByUserrecord component.- Returns:
- the value of the
completedByUserrecord component
-
completedByChat
Returns the value of thecompletedByChatrecord component.- Returns:
- the value of the
completedByChatrecord component
-
completionDate
Returns the value of thecompletionDaterecord component.- Returns:
- the value of the
completionDaterecord component
-