Пример #1
0
        public override void Execute(IPlayer player, params string[] parameters)
        {
            if (parameters.Length == 1)
            {
                ConsoleUtils.UOut(ConsoleColor.Red, "You didn't enter an album id. use like this : (/listsongs 211)");
                return;
            }
            string albumid = parameters[1];

            foreach (Song songadong in Subsonic.ListSongsByAlbumId(albumid))
            {
                ConsoleUtils.UOut(ConsoleColor.Yellow, "{0} ({1})", songadong.Name, songadong.Id);
            }
        }