# Path: pyfeld/upnpService.py
# class UpnpService:
#     def __init__(self):
#         self.services_list = list()
#         self.xml_location = ""
#         self.network_location = ""
# 
#     def set_location(self, location):
#         self.xml_location = location
#         result = urllib3.util.parse_url(location)
#         self.network_location = result.netloc
#         self.services_list = Services.get_services_from_location(location)
# 
#     def get_network_location(self):
#         return self.network_location
# 
#     def get_services_list(self):
#         return self.services_list


import urllib3
from pyfeld.upnpService import UpnpService
        self.location = location
        base_url_parsed = urllib3.util.parse_url(location)
        base_url = base_url_parsed.scheme + "://" + base_url_parsed.netloc
        #we need to parse these out of the xml to make it robust
        self.scpdurl = base_url+"/rendercontrol.xml"
        self.controlURL = base_url+"/RenderingControl/ctrl"
        self.eventSubURL = base_url+"/RenderingControl/evt"

    def set_volume(self, volume):
        self.volume = volume

    def set_name(self, name):
        self.name = name

    def get_name(self):
        return self.name

    def get_location(self):
        return self.location

    def get_udn(self):
        return self.udn

    def get_renderer_list(self):
        return self.renderer_list

    def get_volume(self):
        return self.volume

    def set_upnp_service(self, location):

# Path: pyfeld/upnpService.py
# class UpnpService:
#     def __init__(self):
#         self.services_list = list()
#         self.xml_location = ""
#         self.network_location = ""
# 
#     def set_location(self, location):
#         self.xml_location = location
#         result = urllib3.util.parse_url(location)
#         self.network_location = result.netloc
#         self.services_list = Services.get_services_from_location(location)
# 
#     def get_network_location(self):
#         return self.network_location
# 
#     def get_services_list(self):
#         return self.services_list


# Path: pyfeld/room.py
import urllib3
from pyfeld.upnpService import UpnpService

        self.location = location
        base_url_parsed = urllib3.util.parse_url(location)
        base_url = base_url_parsed.scheme + "://" + base_url_parsed.netloc
        #we need to parse these out of the xml to make it robust
        self.scpdurl = base_url+"/rendercontrol.xml"
        self.controlURL = base_url+"/RenderingControl/ctrl"
        self.eventSubURL = base_url+"/RenderingControl/evt"

    def set_volume(self, volume):
        self.volume = volume

    def set_name(self, name):
        self.name = name

    def get_name(self):
        return self.name

    def get_location(self):
        return self.location

    def get_udn(self):
        return self.udn

    def get_renderer_list(self):
        return self.renderer_list

    def get_volume(self):
        return self.volume

    def set_upnp_service(self, location):

        self.upnp_service = UpnpService()