struct
PlaceOS::Model::Playlist::ItemsResponse
- PlaceOS::Model::Playlist::ItemsResponse
- Struct
- Value
- Object
Overview
forward declare so this file can be required before playlist.cr finishes
defining the parent class (the attribute schedules : Array(Playlist::Schedule)
line needs Schedule resolved at macro-expansion time).
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
Defined in:
Constructors
- .new(created_at : Time, updated_at : Time, name : String, description : String, authority_id : String | Nil, orientation : PlaceOS::Model::Playlist::Orientation, play_count : Int64, play_through_count : Int64, default_animation : PlaceOS::Model::Playlist::Animation, random : Bool, enabled : Bool, distribution : Bool, default_duration : Int32, valid_from : Int64 | Nil, valid_until : Int64 | Nil, schedules : Array(PlaceOS::Model::Playlist::Schedule), **_unknown_types)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #authority_id : String | Nil
- #created_at : Time
- #default_animation : PlaceOS::Model::Playlist::Animation
- #default_duration : Int32
- #description : String
- #distribution : Bool
- #enabled : Bool
- #name : String
- #orientation : PlaceOS::Model::Playlist::Orientation
- #play_count : Int64
- #play_through_count : Int64
- #random : Bool
- #schedules : Array(PlaceOS::Model::Playlist::Schedule)
- #updated_at : Time
- #valid_from : Int64 | Nil
- #valid_until : Int64 | Nil
Constructor Detail
def self.new(created_at : Time, updated_at : Time, name : String, description : String, authority_id : String | Nil, orientation : PlaceOS::Model::Playlist::Orientation, play_count : Int64, play_through_count : Int64, default_animation : PlaceOS::Model::Playlist::Animation, random : Bool, enabled : Bool, distribution : Bool, default_duration : Int32, valid_from : Int64 | Nil, valid_until : Int64 | Nil, schedules : Array(PlaceOS::Model::Playlist::Schedule), **_unknown_types)
#