本文整理汇总了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(), "король и шут");
}
示例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");
}
}
示例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());
}