コード例 #1
0
 public void Initialize(INavigationParameters parameters)
 {
     if (parameters.ContainsKey("Track id"))
     {
         Id = parameters["Track id"].ToString();
         GetTrackInfoCommand.Execute();
     }
 }
コード例 #2
0
        public async Task <LastResponse <LastTrack> > GetInfoByMbidAsync(string mbid)
        {
            var command = new GetTrackInfoCommand(Auth)
            {
                TrackMbid = mbid
            };

            return(await command.ExecuteAsync());
        }
コード例 #3
0
        public async Task <LastResponse <LastTrack> > GetInfoAsync(string trackname, string artistname, string username = "")
        {
            var command = new GetTrackInfoCommand(Auth)
            {
                TrackName  = trackname,
                ArtistName = artistname,
                Username   = username
            };

            return(await command.ExecuteAsync());
        }