Esempio n. 1
0
        public override PlayableBase ToPlayable()
        {
            var result   = (ApiResult)Result;
            var newtrack = new SoundCloudTrack
            {
                Url       = Url,
                TimeAdded = DateTime.Now,
                IsChecked = false
            };

            newtrack.LoadInformation(result);
            return(newtrack);
        }
        public override PlayableBase ToPlayable()
        {
            var result = (ApiResult) Result;
            var newtrack = new SoundCloudTrack
            {
                Url = Url,
                TimeAdded = DateTime.Now,
                IsChecked = false
            };

            newtrack.LoadInformation(result);
            return newtrack;
        }
        public async override Task <PlayableBase> ToPlayable()
        {
            var result   = (ApiResult)Result;
            var newtrack = new SoundCloudTrack
            {
                Url       = Url,
                TimeAdded = DateTime.Now
            };

            if (_soundSourceInfo == null && !(await CheckIfAvailable()))
            {
                throw new Exception();
            }

            newtrack.LoadInformation(result, _soundSourceInfo);
            return(newtrack);
        }