Beispiel #1
0
        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])));
        }
Beispiel #2
0
        public async Task <IEnumerable <ICcuDeviceInfo> > GetDeviceInfosAsync()
        {
            var deviceDescriptions = await XmlRpcApi.ListDevicesAsync();

            return(deviceDescriptions
                   .Select(DeviceInfoCreator.Create)
                   .ToArray());
        }
Beispiel #3
0
        public async Task <IEnumerable <IBidcosInterfaceInfo> > GetBidcosInterfacesAsync()
        {
            var bidcosInterfaces = await XmlRpcApi
                                   .ListBidcosInterfacesAsync();

            return(bidcosInterfaces
                   .Select(BidcosInterfaceInfoCreator.Create));
        }
Beispiel #4
0
        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());
        }
Beispiel #5
0
 public Task WriteValueAsync(string deviceAddress, string valueKey, object value)
 {
     return(XmlRpcApi.SetValueAsync(deviceAddress, valueKey, value));
 }
Beispiel #6
0
 public Task <T> ReadValueAsync <T>(string deviceAddress, string valueKey)
 {
     return(XmlRpcApi.GetValueAsync <T>(deviceAddress, valueKey));
 }
Beispiel #7
0
        public async Task <ICcuDeviceInfo> GetDeviceInfoAsync(string deviceAddress)
        {
            var deviceDescription = await XmlRpcApi.GetDeviceDescriptionAsync(deviceAddress);

            return(DeviceInfoCreator.Create(deviceDescription));
        }
Beispiel #8
0
 public Task <bool> PingAsync(string callerId)
 {
     return(XmlRpcApi.PingAsync(callerId));
 }
Beispiel #9
0
 public Task WriteParamsetAsync(string deviceAddress, string paramSetKey, IDictionary <string, object> paramSet)
 {
     return(XmlRpcApi.PutParamsetAsync(deviceAddress, paramSetKey, paramSet));
 }
Beispiel #10
0
 public Task <Dictionary <string, object> > ReadParamSetAsync(string deviceAddress, string paramSetKey)
 {
     return(XmlRpcApi.GetParamSetAsync(deviceAddress, paramSetKey));
 }
Beispiel #11
0
 public async Task <CcuLogLevel> GetLogLevelAsync()
 {
     return((CcuLogLevel)await XmlRpcApi.GetLogLevelAsync());
 }
Beispiel #12
0
 public async Task <CcuLogLevel> SetLogLevelAsync(CcuLogLevel logLevel)
 {
     return((CcuLogLevel)await XmlRpcApi.SetLogLevelAsync((int)logLevel));
 }
Beispiel #13
0
 public Task UnregisterEventServerAsync()
 {
     return(XmlRpcApi.InitAsync(EventXmlRpcUrl, string.Empty));
 }
Beispiel #14
0
 public Task RegisterEventServerAsync()
 {
     return(XmlRpcApi.InitAsync(EventXmlRpcUrl, InterfaceId));
 }