Ejemplo 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);
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
0
        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);
        }