class Tourmaline::Checklist

Overview

Describes a checklist.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

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


[View source]
def others_can_add_tasks? : Bool | Nil #

Optional. True, if users other than the creator of the list can add tasks to the list


[View source]
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


[View source]
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


[View source]
def tasks : Array(Tourmaline::ChecklistTask) #

List of tasks in the checklist


[View source]
def tasks=(tasks : Array(Tourmaline::ChecklistTask)) #

List of tasks in the checklist


[View source]
def title : String #

Title of the checklist


[View source]
def title=(title : String) #

Title of the checklist


[View source]
def title_entities : Array(Tourmaline::MessageEntity) #

Optional. Special entities that appear in the checklist title


[View source]
def title_entities=(title_entities : Array(Tourmaline::MessageEntity)) #

Optional. Special entities that appear in the checklist title


[View source]