mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-02 00:57:38 +00:00
Each command can format the mpd response. User response is a MpdMessage which conatins the requested command and the formatted response.
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
namespace LibMpc
|
||||
{
|
||||
public interface IMpdRequest
|
||||
public interface IMpdRequest<T>
|
||||
{
|
||||
IMpcCommand Command { get; }
|
||||
IMpcCommand<T> Command { get; }
|
||||
}
|
||||
|
||||
public class MpdRequest : IMpdRequest
|
||||
public class MpdRequest<T> : IMpdRequest<T>
|
||||
{
|
||||
public MpdRequest(IMpcCommand command)
|
||||
public MpdRequest(IMpcCommand<T> command)
|
||||
{
|
||||
Command = command;
|
||||
}
|
||||
|
||||
public IMpcCommand Command { get; }
|
||||
public IMpcCommand<T> Command { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user