/// <summary> /// Get list of locations, e.g. /hdd/movie /// </summary> /// <returns></returns> public LocationList GetLocationList() { LocationList result = null; using (var da = new Enigma2WebInterfaceDataAdapter <LocationList>(this.connectionManager.ActiveConnection)) { try { result = da.Execute(Enigma2WebInterfacesMethods.GetLocationList); } catch (Exception ex) { // TODO: Exception-Handling } } return(result); }
/// <summary> /// Get device info /// </summary> /// <returns></returns> public DeviceInfo GetDeviceInfo() { DeviceInfo result = null; using (var da = new Enigma2WebInterfaceDataAdapter <DeviceInfo>(this.connectionManager.ActiveConnection)) { try { result = da.Execute(Enigma2WebInterfacesMethods.GetDeviceInfo); } catch (Exception ex) { // TODO } } return(result); }
/// <summary> /// Get sub service list /// </summary> /// <param name="parentService">The parent service</param> /// <returns></returns> public ServiceList GetSubServiceList(string parentService) { ServiceList result = null; using (var da = new Enigma2WebInterfaceDataAdapter <ServiceList>(this.connectionManager.ActiveConnection)) { try { Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("sRef", parentService); result = da.Execute(Enigma2WebInterfacesMethods.GetServiceList, parameters); } catch (Exception ex) { // TODO: Exception-Handling } } return(result); }
/// <summary> /// Get device info /// </summary> /// <returns></returns> public DeviceInfo GetDeviceInfo() { DeviceInfo result = null; using (var da = new Enigma2WebInterfaceDataAdapter<DeviceInfo>(this.connectionManager.ActiveConnection)) { try { result = da.Execute(Enigma2WebInterfacesMethods.GetDeviceInfo); } catch (Exception ex) { // TODO } } return result; }
/// <summary> /// Get list with timer entries /// </summary> /// <returns></returns> public TimerList GetTimerList() { TimerList result = null; using (var da = new Enigma2WebInterfaceDataAdapter<TimerList>(this.connectionManager.ActiveConnection)) { try { result = da.Execute(Enigma2WebInterfacesMethods.GetTimerList); } catch (Exception ex) { // TODO: Exception-Handling } } return result; }
/// <summary> /// Get sub service list /// </summary> /// <param name="parentService">The parent service</param> /// <returns></returns> public ServiceList GetSubServiceList(string parentService) { ServiceList result = null; using (var da = new Enigma2WebInterfaceDataAdapter<ServiceList>(this.connectionManager.ActiveConnection)) { try { Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters.Add("sRef", parentService); result = da.Execute(Enigma2WebInterfacesMethods.GetServiceList, parameters); } catch (Exception ex) { // TODO: Exception-Handling } } return result; }