class
TD::LocalFile
- TD::LocalFile
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/local_file.crConstructors
- .new(path : String, download_offset : Int32, downloaded_prefix_size : Int32, downloaded_size : Int32, can_be_downloaded : Bool = false, can_be_deleted : Bool = false, is_downloading_active : Bool = false, is_downloading_completed : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #can_be_deleted : Bool
- #can_be_deleted=(can_be_deleted : Bool)
- #can_be_downloaded : Bool
- #can_be_downloaded=(can_be_downloaded : Bool)
- #download_offset : Int32
- #download_offset=(download_offset : Int32)
- #downloaded_prefix_size : Int32
- #downloaded_prefix_size=(downloaded_prefix_size : Int32)
- #downloaded_size : Int32
- #downloaded_size=(downloaded_size : Int32)
- #is_downloading_active : Bool
- #is_downloading_active=(is_downloading_active : Bool)
- #is_downloading_completed : Bool
- #is_downloading_completed=(is_downloading_completed : Bool)
- #object_type : String
- #object_type=(object_type : String)
- #path : String
- #path=(path : String)
Instance methods inherited from class TD::Base
extract_abstract_type(__json : JSON::Any)
extract_abstract_type,
extract_type(__json : JSON::Any, class_type : Class)
extract_type
Macros inherited from class TD::Base
object_attributes(type)
object_attributes,
object_type(type)
object_type
Constructor Detail
def self.new(path : String, download_offset : Int32, downloaded_prefix_size : Int32, downloaded_size : Int32, can_be_downloaded : Bool = false, can_be_deleted : Bool = false, is_downloading_active : Bool = false, is_downloading_completed : Bool = false)
#