예제 #1
0
 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,
     });
 }
예제 #2
0
 public void SetUp()
 {
     recentTrack = TestLastfmUserRecentTrack.Create();
 }
예제 #3
0
 private static string PopulateLastPlayed(LastfmUserRecentTrack track)
 {
     return(track.IsNowPlaying ? NowPlaying : ConvertToLocalString(track.LastPlayed));
 }