Example #1
0
        /// <summary>
        /// The get shortcut by type.
        /// </summary>
        /// <param name="type">
        /// The type.
        /// </param>
        /// <param name="status">
        /// The status.
        /// </param>
        /// <returns>
        /// The <see cref="ScoShortcut"/>.
        /// </returns>
        public ScoShortcut GetShortcutByType(string type, out StatusInfo status)
        {
            var shortcuts = this.requestProcessor.Process(Commands.Sco.Shortcuts, null, out status);

            return(!ResponseIsOk(shortcuts, status) ? null : ShortcutCollectionParser.GetByType(shortcuts, type));
        }
Example #2
0
        public IEnumerable <ScoShortcut> GetShortcuts(out StatusInfo status)
        {
            var shortcuts = this.requestProcessor.Process(Commands.Sco.Shortcuts, null, out status);

            return(!ResponseIsOk(shortcuts, status) ? null : ShortcutCollectionParser.Parse(shortcuts));
        }