Exemple #1
0
 private AudioEntry buildAudioEntry(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         AudioEntry a = new AudioEntry();
         a.Id       = XmlUtils.Int("aid");
         a.Duration = XmlUtils.Int("duration");
         a.Artist   = XmlUtils.String("artist");
         a.Title    = XmlUtils.String("title");
         a.Url      = XmlUtils.String("url");
         return(a);
     }
     return(null);
 }
 private AudioEntry buildAudioEntry(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         AudioEntry a = new AudioEntry();
         a.Id = XmlUtils.Int("aid");
         a.OwnerId = XmlUtils.Int("owner_id");
         a.Duration = XmlUtils.Int("duration");
         a.Artist = XmlUtils.String("artist");
         a.Title = XmlUtils.String("title");
         a.Url = XmlUtils.String("url");
         return a;
     }
     return null;
 }
Exemple #3
0
 public void SetBroadcast(AudioEntry audio)
 {
     _audioFactory.SetBroadcast(String.Format("{0}_{1}", audio.OwnerId, audio.Id));
 }