mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-01 08:47:36 +00:00
UrlHandlers command implemented and tested. Print MPD version in test.
This commit is contained in:
@ -41,7 +41,18 @@ namespace LibMpc
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: urlhandlers
|
||||
public class UrlHandlers : IMpcCommand<IEnumerable<string>>
|
||||
{
|
||||
public string Value => "urlhandlers";
|
||||
|
||||
public IEnumerable<string> FormatResponse(IList<KeyValuePair<string, string>> response)
|
||||
{
|
||||
var result = response.Where(item => item.Key.Equals("handler")).Select(item => item.Value);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: decoders
|
||||
}
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ namespace LibMpc
|
||||
}
|
||||
|
||||
public bool IsConnected => _connection?.IsConnected ?? false;
|
||||
public string Version => _connection?.Version ?? "Unknown";
|
||||
|
||||
public async Task<bool> ConnectAsync()
|
||||
{
|
||||
|
Reference in New Issue
Block a user