class
Tourmaline::Checklist
- Tourmaline::Checklist
- Reference
- Object
Overview
Describes a checklist.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(title : String, tasks : Array(Tourmaline::ChecklistTask) = [] of Tourmaline::ChecklistTask, title_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, others_can_add_tasks : Bool | Nil = nil, others_can_mark_tasks_as_done : Bool | Nil = nil)
Instance Method Summary
-
#others_can_add_tasks=(others_can_add_tasks : Bool | Nil)
Optional.
-
#others_can_add_tasks? : Bool | Nil
Optional.
-
#others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil)
Optional.
-
#others_can_mark_tasks_as_done? : Bool | Nil
Optional.
-
#tasks : Array(Tourmaline::ChecklistTask)
List of tasks in the checklist
-
#tasks=(tasks : Array(Tourmaline::ChecklistTask))
List of tasks in the checklist
-
#title : String
Title of the checklist
-
#title=(title : String)
Title of the checklist
-
#title_entities : Array(Tourmaline::MessageEntity)
Optional.
-
#title_entities=(title_entities : Array(Tourmaline::MessageEntity))
Optional.
Constructor Detail
def self.new(title : String, tasks : Array(Tourmaline::ChecklistTask) = [] of Tourmaline::ChecklistTask, title_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, others_can_add_tasks : Bool | Nil = nil, others_can_mark_tasks_as_done : Bool | Nil = nil)
#
Instance Method Detail
def others_can_add_tasks=(others_can_add_tasks : Bool | Nil)
#
Optional. True, if users other than the creator of the list can add tasks to the list
def others_can_add_tasks? : Bool | Nil
#
Optional. True, if users other than the creator of the list can add tasks to the list
def others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil)
#
Optional. True, if users other than the creator of the list can mark tasks as done or not done
def others_can_mark_tasks_as_done? : Bool | Nil
#
Optional. True, if users other than the creator of the list can mark tasks as done or not done
def title_entities : Array(Tourmaline::MessageEntity)
#
Optional. Special entities that appear in the checklist title
def title_entities=(title_entities : Array(Tourmaline::MessageEntity))
#
Optional. Special entities that appear in the checklist title