public Task ResizeTerminal(byte id, TerminalSize size)
        {
            var request = new ResizeTerminalRequest
            {
                TerminalId = id,
                NewSize    = size
            };

            return(_appServiceConnection.SendMessageAsync(CreateMessage(request)));
        }
        public Task ResizeTerminal(int id, TerminalSize size)
        {
            var request = new ResizeTerminalRequest
            {
                TerminalId = id,
                NewSize    = size
            };

            var message = new ValueSet
            {
                { MessageKeys.Type, MessageTypes.ResizeTerminalRequest },
                { MessageKeys.Content, JsonConvert.SerializeObject(request) }
            };

            return(_appServiceConnection.SendMessageAsync(message).AsTask());
        }