Esempio n. 1
0
        /// <summary>
        /// This method is used to command the SmartBlue application to select a selectable item.
        /// </summary>
        /// <param name="id">
        /// ID of item that shall be selected.
        /// </param>
        public void SelectItem(string id)
        {
            // method entry log message
            // this.log.Trace("SelectItem(...) - running...");

            // start stop watch for execution time measurement
            var executionTimeStopWatch = new Stopwatch();

            executionTimeStopWatch.Start();

            // create uri
            var uri = this.uriCreator.GetAppComInterfaceUri();

            // create message
            var appComMessage = RequestCreator.CreateSelectItemRequest(id);

            // send message
            this.appComProtocolLayer.Post(uri.ToString(), appComMessage);

            // method exit log message
            // this.log.Debug("SelectItem(...) - duration = {0} ms", executionTimeStopWatch.ElapsedMilliseconds);
            // this.log.Trace("SelectItem(...) - done");
        }