Example #1
0
        public IHeartRadioSource(StationProvider provider, LiveStationData data) : base(provider)
        {
            this.data = data;

            //Set data
            this.band        = data.band;
            this.callsign    = data.callLetters.Substring(0, 4);
            this.freq        = data.freq;
            this.name        = data.name;
            this.description = data.description;
            this.website     = data.website;
            this.logo_url    = data.logo;
        }
        public RadioDotComSource(StationProvider provider, LiveStationData data) : base(provider)
        {
            this.data = data;

            //Set data
            this.band        = data.bband;
            this.callsign    = data.callsign.Substring(0, 4);
            this.freq        = data.frequency;
            this.name        = data.name;
            this.description = data.description;
            this.website     = data.website;
            this.logo_url    = data.square_logo_large;
        }