mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Naming
This commit is contained in:
parent
982a013839
commit
5ea5d24b7a
@ -23,6 +23,6 @@ namespace LibMpc.Types
|
|||||||
int Disc { get; }
|
int Disc { get; }
|
||||||
int Pos { get; }
|
int Pos { get; }
|
||||||
int Id { get; }
|
int Id { get; }
|
||||||
IDictionary<string, string> UnknownTags { get; }
|
IDictionary<string, string> UnknownMetadata { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -22,7 +22,7 @@ namespace LibMpc.Types
|
|||||||
private const string TagPos = "Pos";
|
private const string TagPos = "Pos";
|
||||||
private const string TagId = "Id";
|
private const string TagId = "Id";
|
||||||
|
|
||||||
private readonly IDictionary<string, string> _unknownTags = new Dictionary<string, string>();
|
private readonly IDictionary<string, string> _unknownMetadata = new Dictionary<string, string>();
|
||||||
|
|
||||||
internal MpdFile(string file)
|
internal MpdFile(string file)
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ namespace LibMpc.Types
|
|||||||
public int Disc { get; private set; } = -1;
|
public int Disc { get; private set; } = -1;
|
||||||
public int Pos { get; private set; } = -1;
|
public int Pos { get; private set; } = -1;
|
||||||
public int Id { get; private set; } = -1;
|
public int Id { get; private set; } = -1;
|
||||||
public IDictionary<string, string> UnknownTags => _unknownTags;
|
public IDictionary<string, string> UnknownMetadata => _unknownMetadata;
|
||||||
|
|
||||||
internal void AddTag(string tag, string value)
|
internal void AddTag(string tag, string value)
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ namespace LibMpc.Types
|
|||||||
Id = int.Parse(value);
|
Id = int.Parse(value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_unknownTags.Add(tag, value);
|
_unknownMetadata.Add(tag, value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user