コード例 #1
0
        public IHttpActionResult GetDeviceCommands()
        {
            Guid         currentDeviceId = StaticContext.GetCurrentDeviceId();
            DeviceDomain deviceDomain    = new DeviceDomain();

            string[] commands = deviceDomain.GetDeviceCommands(currentDeviceId);
            return(Ok(commands));
        }
コード例 #2
0
        public IHttpActionResult GetDeviceConfig()
        {
            DeviceDomain deviceDomain    = new DeviceDomain();
            Guid         currentDeviceId = StaticContext.GetCurrentDeviceId();
            DeviceConfig config          = deviceDomain.GetDeviceConfig(currentDeviceId);

            return(Ok(config));
        }