Mixonomer-iOS/Music Tools/Model/Playlist.swift

60 lines
1.3 KiB
Swift
Raw Normal View History

2020-02-16 18:47:09 +00:00
//
// Playlist.swift
// Music Tools
//
// Created by Andy Pack on 16/02/2020.
// Copyright © 2020 Sarsoo. All rights reserved.
//
import UIKit
class Playlist: Identifiable {
2020-02-16 18:47:09 +00:00
//MARK: Properties
var name: String
var uri: String
var username: String
var include_recommendations: Bool
var recommendation_sample: Int
var include_library_tracks: Bool
var parts: Array<String>
var playlist_references: Array<String>
var shuffle: Bool
//MARK: Initialization
init(name: String,
uri: String,
username: String,
include_recommendations: Bool,
recommendation_sample: Int,
include_library_tracks: Bool,
parts: Array<String>,
playlist_references: Array<String>,
shuffle: Bool){
self.name = name
self.uri = uri
self.username = username
self.include_recommendations = include_recommendations
self.recommendation_sample = recommendation_sample
self.include_library_tracks = include_library_tracks
self.parts = parts
self.playlist_references = playlist_references
self.shuffle = shuffle
}
}