using FNZCM.Shared.Helpers;

namespace FNZCM.BlazorWasm.Models.Fe
{
    public class FeTrack
    {
        public string LibKey { get; set; }

        public FeLibrary Lib { get; set; }

        public string DiscKey { get; set; }

        public FeDisc Disc { get; set; }

        public string TrackSetKey { get; set; }

        public FeTrackSet TrackSet { get; set; }

        public string Key { get; set; }

        public string Name { get; set; }

        public string Path { get; set; }

        public FeMediaTag Tag { get; set; }

        public string GetTitleOrFilename() => (Tag?.Title).NullOrEmptyEscape(Name);
    }
}
