Beispiel #1
0
        public async Task Init(TrackSearchRequest request = null)
        {
            TracksList.Clear();
            try
            {
                var tracks = await _service.GetTracks <List <Track> >(Playlist.ID, request);

                foreach (var track in tracks)
                {
                    TracksList.Add(new TrackViewModel(track));
                }
            }
            catch
            {
            }
        }
Beispiel #2
0
        public async Task Init(TrackSearchRequest request = null)
        {
            TracksList.Clear();
            try
            {
                int ID = SignedInUserHelper.User.ID;

                var tracks = await _service.GetFavouriteTracks(ID, request);

                foreach (var track in tracks)
                {
                    TracksList.Add(new TrackViewModel(track));
                }
            }
            catch
            {
            }
        }
        public async Task Init(TrackSearchRequest request = null)
        {
            TracksList.Clear();
            try
            {
                var UserID = SignedInUserHelper.User.ID;

                var tracks = await _service.GetActivityTracks(UserID, request);

                foreach (var track in tracks)
                {
                    TracksList.Add(track);
                }
            }
            catch
            {
            }
        }