Logo Search packages:      
Sourcecode: last-exit version File versions  Download package

Song.cs

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 *  Authors: Iain Holmes <iain@gnome.org>
 *
 *  Copyright 2005 Iain Holmes
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as 
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
 *
 */

using System;
using System.IO;
using System.Net;
using System.Web;

using Gdk;

namespace LastExit 
{
        public class Song : ImageLoader {
            private string artist;
            public string Artist {
                  set { artist = value; }
                  get { return artist; }
            }
            public string SafeArtist {
                  get { return HttpUtility.UrlEncode (artist); }
            }

            private string artist_url;
            public string ArtistUrl {
                  set { artist_url = value; }
                  get { return artist_url; }
            }

            private string album;
            public string Album {
                  set { album = value; }
                  get { return album; }
            }
            public string SafeAlbum {
                  get { return HttpUtility.UrlEncode (album); }
            }

            private string album_url;
            public string AlbumUrl {
                  set { album_url = value; }
                  get { return album_url; }
            }

            private string track;
            public string Track {
                  set { track = value; }
                  get { return track; }
            }
            public string SafeTrack {
                  get { return HttpUtility.UrlEncode (track); }
            }
            
            private string track_url;
            public string TrackUrl {
                  set { track_url = value; }
                  get { return track_url; }
            }

            private string station;
            public string Station {
                  set { station = value; }
                  get { return station; }
            }

            private string station_url;
            public string StationUrl {
                  set { station_url = value; }
                  get { return station_url; }
            }
            
            private string station_feed;
            public string StationFeed {
                  set { station_feed = value; }
                  get { return station_feed; }
            }

            private string station_feed_url;
            public string StationFeedUrl {
                  set { station_feed_url = value; }
                  get { return station_feed_url; }
            }

            private int progress;
            public int Progress {
                  set { progress = value; }
                  get { return progress; }
            }

            private int length;
            public int Length {
                  set { length = value; }
                  get { return length; }
            }

            private bool discovery;
            public bool Discovery {
                  set { discovery = value; }
                  get { return discovery; }
            }

            private bool hated;
            public bool Hated {
                  set { hated = value; }
                  get { return hated; }
            }

            private bool loved;
            public bool Loved {
                  set { loved = value; }
                  get { return loved; }
            }

            public Song () {
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index