public void SendProgressUpdate(Song song, QueryTrackProgress progress) { foreach (var obj in _pcqList) { var prog = new QueryProgress() { Song = new QuerySong() { Artist = song.Artist, Album = song.Album, Title = song.SongTitle, Meta = song.GetMetaObject(obj) }, Progress = progress }; obj.ProgressUpdateReciever(prog); } }
public void SendSongUpdate(Song song) { lock (_lastQuerySongLock) { _lastQuerySong = song; } Log.O("Song Update: {0} | {1} | {2}", song.Artist, song.Album, song.SongTitle); foreach (var obj in _pcqList) { obj.SongUpdateReceiver(new QuerySong() { Artist = song.Artist, Album = song.Album, Title = song.SongTitle, Meta = song.GetMetaObject(obj) }); } }