public static RecentTrackWithSource FromLastFmObject(LastfmUserRecentTrack recentTrack) { return(new RecentTrackWithSource { Album = recentTrack.Album, Artist = recentTrack.Artist, Name = recentTrack.Name, IsNowPlaying = recentTrack.IsNowPlaying, LastPlayed = recentTrack.LastPlayed, SmallImageLocation = recentTrack.SmallImageLocation, MediumImageLocation = recentTrack.MediumImageLocation, LargeImageLocation = recentTrack.LargeImageLocation, ExtraLargeImageLocation = recentTrack.ExtraLargeImageLocation, MusicServiceName = String.Empty, MusicServiceUrl = String.Empty, }); }
public void SetUp() { recentTrack = TestLastfmUserRecentTrack.Create(); }
private static string PopulateLastPlayed(LastfmUserRecentTrack track) { return(track.IsNowPlaying ? NowPlaying : ConvertToLocalString(track.LastPlayed)); }