1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Persephone/Models/Song.swift
Dan Barber 27c0e32e48
WIP: Refactor album art service
We need to make it more flexible and less coupled
2019-03-25 22:23:07 -04:00

26 lines
417 B
Swift

//
// SongItem.swift
// Persephone
//
// Created by Daniel Barber on 2019/3/25.
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Foundation
struct Song {
var mpdSong: MPDClient.MPDSong
var title: String {
return mpdSong.getTag(.title)
}
var artist: String {
return mpdSong.getTag(.artist)
}
var album: Album {
return Album(mpdAlbum: mpdSong.album, coverArt: nil)
}
}