コード例 #1
0
        public Model.Keyboard GetKeyboard(KeyboardType type)
        {
            using (var ctx = new CableProviderConnection())
            {
                string      keyboardType = type.ToString();
                DvrKeyboard keyboard     = _dataExecutor.ExecuteQuery(new GetKeyboard(ctx, keyboardType));

                IMapper mapHandler = MappingHandler.BuildMapper();
                return(mapHandler.Map <Model.Keyboard>(keyboard));
            }
        }
コード例 #2
0
 public GetKeyboard(CableProviderConnection context, string type)
 {
     _context = context;
     _type    = type;
 }