public static toSong ( this t, |
||
t | this | |
u | ||
itunes | iTunesAppClass | |
리턴 |
public static Song toSong(this IITTrack t, int position, User u) { var song = Helpers.toSong(t, u); song.Poisition = position; return(song); }
public static Song toSong(this IITTrack t, User u) { var isFavorite = u != null && u.Favorites.Where(s => s.Id == t.TrackDatabaseID).Any(); var song = Helpers.toSong(t); song.IsFavorite = isFavorite; return(song); }