private void OnEndUploadNewPlaylist(RestResponse response) { if (response.StatusCode != HttpStatusCode.Created) { m_Listener.Error(CreateErrorDescription(response)); return; } var deserializer = new XmlDeserializer { Namespace = "", RootElement = "" }; var playList = deserializer.Deserialize <playlist>(response); m_Listener.NewPlayListUploaded(CreatePlayList(playList)); }
public void NewPlayListUploaded(PlayList playList) { Synchronize(() => m_Listener.NewPlayListUploaded(playList)); }