mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
58 lines
970 B
Swift
58 lines
970 B
Swift
//
|
|
// Command.swift
|
|
// Persephone
|
|
//
|
|
// Created by Daniel Barber on 2019/3/19.
|
|
// Copyright © 2019 Dan Barber. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension MPDClient {
|
|
enum MPDCommand {
|
|
case connect
|
|
case disconnect
|
|
|
|
// Transport commands
|
|
case prevTrack
|
|
case nextTrack
|
|
case playPause
|
|
case stop
|
|
case seekCurrentSong
|
|
|
|
case setShuffleState
|
|
case setRepeatState
|
|
|
|
case setVolume
|
|
|
|
// Database commands
|
|
case updateDatabase
|
|
|
|
// Status commands
|
|
case fetchStatus
|
|
|
|
// Queue commands
|
|
case fetchQueue
|
|
case playTrack
|
|
case clearQueue
|
|
case replaceQueue
|
|
case appendSong
|
|
case removeSong
|
|
case moveSongInQueue
|
|
case addSongToQueue
|
|
case addAlbumToQueue
|
|
|
|
// Artist commands
|
|
case fetchAllArtists
|
|
|
|
// Album commands
|
|
case fetchAlbums
|
|
case playAlbum
|
|
case getAlbumFirstSong
|
|
case getAlbumSongs
|
|
|
|
// Song commands
|
|
case fetchAlbumArt
|
|
}
|
|
}
|