public void Deconstruct(out LikeEnum likeValue, out TimeSpan duration, out string title, out string artistName, out Genre genre, out byte[] thumbnale, out string albumName, out int albumYear) { likeValue = LikeValue; duration = Duration; title = Title; artistName = string.Empty; genre = Artist.Genre; thumbnale = new byte[0]; albumName = string.Empty; albumYear = Album.Year; }
public static void TraceInfo(Player player, string title, int minutes, int seconds, int albumYear, LikeEnum likeValue, Genre genre, bool isSongNext) { var output = $"Title {title.ThreeDots(25)}" + Environment.NewLine + $"Minutes {minutes}" + Environment.NewLine + $"Seconds {seconds}" + Environment.NewLine + $"AlbumYear {albumYear}" + Environment.NewLine + $"Genre {genre}" + Environment.NewLine + $"IsNextSong {isSongNext}" + Environment.NewLine; switch (likeValue) { case LikeEnum.NoneLike: Console.ForegroundColor = ConsoleColor.Gray; break; case LikeEnum.Like: Console.ForegroundColor = ConsoleColor.Green; break; case LikeEnum.Dislike: Console.ForegroundColor = ConsoleColor.Red; break; } }