public async Task <Dictionary <string, ICcuParameterInfo> > GetParameterInfoAsync(string deviceAddress, string paramSetKey) { var parameterDescription = await XmlRpcApi.GetParameterDescriptionAsync(deviceAddress, paramSetKey); return(parameterDescription.Keys.ToDictionary(key => key, key => (ICcuParameterInfo)ParameterInfoCreator.Create(parameterDescription[key]))); }
public async Task <IEnumerable <ICcuDeviceInfo> > GetDeviceInfosAsync() { var deviceDescriptions = await XmlRpcApi.ListDevicesAsync(); return(deviceDescriptions .Select(DeviceInfoCreator.Create) .ToArray()); }
public async Task <IEnumerable <IBidcosInterfaceInfo> > GetBidcosInterfacesAsync() { var bidcosInterfaces = await XmlRpcApi .ListBidcosInterfacesAsync(); return(bidcosInterfaces .Select(BidcosInterfaceInfoCreator.Create)); }
public async Task <IEnumerable <IServiceMessage> > GetServiceMessagesAsync() { var messages = await XmlRpcApi.GetServiceMessagesAsync(); return(messages .Select(x => x.ToArray()) .Select(message => new ServiceMessage((string)message[0], (string)message[1], message[2])) .ToArray()); }
public Task WriteValueAsync(string deviceAddress, string valueKey, object value) { return(XmlRpcApi.SetValueAsync(deviceAddress, valueKey, value)); }
public Task <T> ReadValueAsync <T>(string deviceAddress, string valueKey) { return(XmlRpcApi.GetValueAsync <T>(deviceAddress, valueKey)); }
public async Task <ICcuDeviceInfo> GetDeviceInfoAsync(string deviceAddress) { var deviceDescription = await XmlRpcApi.GetDeviceDescriptionAsync(deviceAddress); return(DeviceInfoCreator.Create(deviceDescription)); }
public Task <bool> PingAsync(string callerId) { return(XmlRpcApi.PingAsync(callerId)); }
public Task WriteParamsetAsync(string deviceAddress, string paramSetKey, IDictionary <string, object> paramSet) { return(XmlRpcApi.PutParamsetAsync(deviceAddress, paramSetKey, paramSet)); }
public Task <Dictionary <string, object> > ReadParamSetAsync(string deviceAddress, string paramSetKey) { return(XmlRpcApi.GetParamSetAsync(deviceAddress, paramSetKey)); }
public async Task <CcuLogLevel> GetLogLevelAsync() { return((CcuLogLevel)await XmlRpcApi.GetLogLevelAsync()); }
public async Task <CcuLogLevel> SetLogLevelAsync(CcuLogLevel logLevel) { return((CcuLogLevel)await XmlRpcApi.SetLogLevelAsync((int)logLevel)); }
public Task UnregisterEventServerAsync() { return(XmlRpcApi.InitAsync(EventXmlRpcUrl, string.Empty)); }
public Task RegisterEventServerAsync() { return(XmlRpcApi.InitAsync(EventXmlRpcUrl, InterfaceId)); }