Exemple #1
0
        /// <summary>
        /// This method is used to command the SmartBlue application to scroll a list.
        /// </summary>
        /// <param name="id">
        /// After scrolling, the item referenced by this ID should be the first visible item in the list.
        /// </param>
        public void ScrollToItem(string id)
        {
            // method entry log message
            // this.log.Trace("ScrollToItem(...) - 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.CreateScrollToItemRequest(id);

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

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