using System.Text;
namespace UMP
{
public class MediaTrackInfo
{
private readonly int _trackId;
private readonly string _trackName;
///
/// Create a new track info.
///
/// Track ID
/// Track Name
internal MediaTrackInfo(int trackId, string trackName)
{
_trackId = trackId;
_trackName = trackName;
}
///
/// Get the track id.
///
public int Id
{
get { return _trackId; }
}
///
/// Get the track name.
///
public string Name
{
get { return _trackName; }
}
public override string ToString()
{
StringBuilder sb = new StringBuilder(100);
sb.Append("TrackInfo").Append('[');
sb.Append("ID=").Append(_trackId).Append(',');
sb.Append("NAME=").Append(_trackName).Append(']');
return sb.ToString();
}
}
}