예제 #1
0
 public Images(ServiceModel.Track track)
 {
     Small      = track.Images.SingleOrDefault(x => x.Size == "small")?.Url;
     Medium     = track.Images.SingleOrDefault(x => x.Size == "medium")?.Url;
     Large      = track.Images.SingleOrDefault(x => x.Size == "large")?.Url;
     ExtraLarge = track.Images.SingleOrDefault(x => x.Size == "extralarge")?.Url;
 }
예제 #2
0
 public Track(ServiceModel.Track track)
 {
     Artist    = new Artist(track.Artist);
     Images    = new Images(track);
     Title     = track.Name;
     Timestamp = track.Date == null ? (DateTime?)null : DateTimeHelper.FromUnix(track.Date.Unix);
 }