private static void SerializeSong(SongMeaningsSong song)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(SongMeaningsSong));

            TextWriter writer = new StreamWriter(SAVE_LOCATION + "songmeanings" + song.songId + ".xml");
            serializer.Serialize(writer, song);
            writer.Close();
        }
 public SongNode(SongMeaningsSong song) : base(@"http://songmeanings.com/songs/view/" + song.songId + "/", tryResumeSearch: false, isTerminalNode: true)
 {
     if (song.Lyrics == null)
     {
         song.Lyrics = GetTextBetweenTags(GetPageSource(this.Url), LYRICS_START_TAG, LYRICS_END_TAG);
     }
     _song = song;
 }
Exemplo n.º 3
0
        private static void SerializeSong(SongMeaningsSong song)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(SongMeaningsSong));

            TextWriter writer = new StreamWriter(SAVE_LOCATION + "songmeanings" + song.songId + ".xml");

            serializer.Serialize(writer, song);
            writer.Close();
        }
Exemplo n.º 4
0
 public override bool Equals(object obj)
 {
     if (obj is SongMeaningsSong)
     {
         SongMeaningsSong otherSong = (SongMeaningsSong)obj;
         return(otherSong.songId.Equals(this.songId));
     }
     else
     {
         return(false);
     }
 }
 public SongNode(SongMeaningsSong song)
     : base(@"http://songmeanings.com/songs/view/" + song.songId + "/", tryResumeSearch:false, isTerminalNode:true)
 {
     if (song.Lyrics == null)
     {
         song.Lyrics = GetTextBetweenTags(GetPageSource(this.Url), LYRICS_START_TAG, LYRICS_END_TAG);
     }
     _song = song;
 }