Record Class InputChecklist
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputChecklist
- All Implemented Interfaces:
Serializable, ApiResult
public record InputChecklist(String title, @Nullable ParseMode parseMode, @Nullable MessageEntity[] titleEntities, InputChecklistTask[] tasks, boolean othersCanAddTasks, boolean othersCanMarkTasksAsDone)
extends Record
implements ApiResult
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInputChecklist(String title, @Nullable ParseMode parseMode, @Nullable MessageEntity[] titleEntities, InputChecklistTask[] tasks, boolean othersCanAddTasks, boolean othersCanMarkTasksAsDone) Creates an instance of aInputChecklistrecord 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.static @NotNull InputChecklist.BuilderofBuilder(String title, InputChecklistTask[] tasks) booleanReturns the value of theothersCanAddTasksrecord component.booleanReturns the value of theothersCanMarkTasksAsDonerecord component.@Nullable ParseModeReturns the value of theparseModerecord component.tasks()Returns the value of thetasksrecord component.title()Returns the value of thetitlerecord component.@Nullable MessageEntity[]Returns the value of thetitleEntitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputChecklist
public InputChecklist(String title, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] titleEntities, InputChecklistTask[] tasks, boolean othersCanAddTasks, boolean othersCanMarkTasksAsDone) Creates an instance of aInputChecklistrecord class.- Parameters:
title- the value for thetitlerecord componentparseMode- the value for theparseModerecord componenttitleEntities- the value for thetitleEntitiesrecord componenttasks- the value for thetasksrecord componentothersCanAddTasks- the value for theothersCanAddTasksrecord componentothersCanMarkTasksAsDone- the value for theothersCanMarkTasksAsDonerecord component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull InputChecklist.Builder ofBuilder(String title, InputChecklistTask[] tasks) -
toBuilder
-
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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
titleEntities
Returns the value of thetitleEntitiesrecord component.- Returns:
- the value of the
titleEntitiesrecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
othersCanAddTasks
public boolean othersCanAddTasks()Returns the value of theothersCanAddTasksrecord component.- Returns:
- the value of the
othersCanAddTasksrecord component
-
othersCanMarkTasksAsDone
public boolean othersCanMarkTasksAsDone()Returns the value of theothersCanMarkTasksAsDonerecord component.- Returns:
- the value of the
othersCanMarkTasksAsDonerecord component
-