1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Shared/Models/Playlist.swift

26 lines
478 B
Swift

//
// Playlist.swift
// Persephone
//
// Created by Dan Barber on 2020-4-25.
// Copyright © 2020 Dan Barber. All rights reserved.
//
struct Playlist {
var mpdPlaylist: MPDClient.MPDPlaylist
init(mpdPlaylist: MPDClient.MPDPlaylist) {
self.mpdPlaylist = mpdPlaylist
}
var path: String {
return mpdPlaylist.pathString
}
}
extension Playlist: Equatable {
static func == (lhs: Playlist, rhs: Playlist) -> Bool {
return lhs.path == rhs.path
}
}