1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-01 00:37:37 +00:00

MPD Tags added.

This commit is contained in:
glucaci
2016-12-02 13:41:53 +01:00
parent e1430d193f
commit 74061bdab4
5 changed files with 59 additions and 143 deletions

View File

@ -13,16 +13,16 @@ namespace LibMpc
public class Find : IMpcCommand
{
private readonly SearchTag _searchTag;
private readonly ITag _tag;
private readonly string _searchText;
public Find(SearchTag searchTag, string searchText)
public Find(ITag tag, string searchText)
{
_searchTag = searchTag;
_tag = tag;
_searchText = searchText;
}
public string Value => string.Join(" ", "find", _searchTag.Value, _searchText);
public string Value => string.Join(" ", "find", _tag.Value, _searchText);
public object ParseResponse(object response)
{
@ -32,14 +32,14 @@ namespace LibMpc
public class List : IMpcCommand
{
private readonly SearchTag _searchTag;
private readonly ITag _tag;
public List(SearchTag searchTag)
public List(ITag tag)
{
_searchTag = searchTag;
_tag = tag;
}
public string Value => string.Join(" ", "list", _searchTag);
public string Value => string.Join(" ", "list", _tag);
public object ParseResponse(object response)
{