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

60 lines
1.3 KiB
Swift

//
// Playlist.swift
// Music Tools
//
// Created by Andy Pack on 16/02/2020.
// Copyright © 2020 Sarsoo. All rights reserved.
//
import UIKit
class Playlist: Identifiable {
//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
}
}