mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
1. Move all the mpdClient actions into a reducer. 2. Move global stuff into their own global struct
35 lines
640 B
Swift
35 lines
640 B
Swift
//
|
|
// MPDActions.swift
|
|
// Persephone
|
|
//
|
|
// Created by Daniel Barber on 2019/4/30.
|
|
// Copyright © 2019 Dan Barber. All rights reserved.
|
|
//
|
|
|
|
import ReSwift
|
|
|
|
struct MPDConnectAction: Action {
|
|
let host: String
|
|
let port: Int
|
|
}
|
|
struct MPDDisconnectAction: Action {}
|
|
|
|
struct MPDPlayPauseAction: Action {}
|
|
struct MPDStopAction: Action {}
|
|
struct MPDNextTrackAction: Action {}
|
|
struct MPDPrevTrackAction: Action {}
|
|
|
|
struct MPDPlayTrack: Action {
|
|
let queuePos: Int
|
|
}
|
|
|
|
struct MPDPlayAlbum: Action {
|
|
let album: MPDClient.MPDAlbum
|
|
}
|
|
|
|
struct MPDSeekCurrentSong: Action {
|
|
let timeInSeconds: Float
|
|
}
|
|
|
|
struct MPDUpdateDatabaseAction: Action {}
|