当前位置: 首页>>代码示例>>C#>>正文


C# Track.GetAlbum方法代码示例

本文整理汇总了C#中Track.GetAlbum方法的典型用法代码示例。如果您正苦于以下问题:C# Track.GetAlbum方法的具体用法?C# Track.GetAlbum怎么用?C# Track.GetAlbum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Track的用法示例。


在下文中一共展示了Track.GetAlbum方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetInfo

        public void GetInfo()
        {
            var track = new Track("Король и шут", "Лесник", Session);
            
            var album = track.GetAlbum();

            Assert.IsNotNull(album);
            Assert.AreEqual(album.Artist.Name.ToLower(), "король и шут");
        }
开发者ID:haroldma,项目名称:Last.fm,代码行数:9,代码来源:TrackTest.cs

示例2: LastfmComplete

 private void LastfmComplete(Session lastfm)
 {
     try
     {
         Debug.Add("Title = " + this.Title);
         Debug.Add("Artist = " + this.Artists[0]);
         Lastfm.Services.Track tr = new Track(this.Artists[0], this.Title, lastfm);
         Url = tr.URL;
         Lastfm.Services.Album al = tr.GetAlbum();
         if (al != null && this.Picture == @"/WindowsMediaPlayer;component/assets/no_cover.png")
             SetImage(al.GetImageURL(AlbumImageSize.ExtraLarge), al.GetMBID());
         Wiki = tr.Wiki.getContent();
     }
     catch (Exception e)
     {
         Debug.Add(e.ToString() + "\n");
     }
 }
开发者ID:alliaces,项目名称:MyWindowsMediaPlayer,代码行数:18,代码来源:Media.cs

示例3: button4_Click

        private void button4_Click(object sender, EventArgs e)
        {
            // Get your own API_KEY and API_SECRET from http://www.last.fm/api/account
              string API_KEY = "60d35bf7777d870ec958a21872bacb24";
              string API_SECRET = "099158e5216ad77239be5e0a2228cf04";

              // Create your session
              Session session = new Session(API_KEY, API_SECRET);
              //session.Authenticate("",Lastfm.Utilities.md5(""));
              // Set this static property to a System.Net.IWebProxy object
              //Lastfm.ProxySupport.Proxy = new System.Net.WebProxy("221.2.216.38", 8080);

              //Artist artist = new Artist("Lady Gaga", session);
              //string s = artist.Bio.GetURL(SiteLanguage.English);
              //ArtistBio artistBio=new ArtistBio(artist,session);
              //string contents =  Regex.Replace(artistBio.getContent(), "<[^>]*>", "");
              //string img = artist.GetImageURL();

              Country country = new Country("RO", session);
              TopTrack[] tracks = country.GetTopTracks();
              string s = tracks[0].Item.ToString();
              // hzt
              //Connection connection = new Connection("mpm", Assembly.GetEntryAssembly().GetName().Version.ToString(), "", session);
              //ScrobbleManager scrobbleManager=new ScrobbleManager(connection);
              //NowplayingTrack track1 = new NowplayingTrack("Nexx", "Syncronize Lips", new TimeSpan(0, 2, 0));
              //scrobbleManager.ReportNowplaying(track1);
              //Entry entry = new Entry("Nexx", "Syncronize Lips", DateTime.Now, PlaybackSource.User, new TimeSpan(0, 2, 0), ScrobbleMode.Played);
              //scrobbleManager.Queue(entry);
              //scrobbleManager.Submit();
              //      scrobbleManager.Submit();
              // Test it out...
              Track track = new Track("david arnold", "the hot fuzz suite", session);
              Artist artist = track.Artist;
              ArtistBio artistBio = artist.Bio;
              string ss = artistBio.getContent();
              Console.WriteLine(track.GetAlbum());
        }
开发者ID:andrewjswan,项目名称:youtube-fm-for-mediaportal,代码行数:37,代码来源:Form1.cs


注:本文中的Track.GetAlbum方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。