Пример #1
0
        public async void Stop(ButtplugClientDevice device)
        {
            if (_client == null)
            {
                return;
            }

            if (!device.AllowedMessages.ContainsKey(typeof(StopDeviceCmd)))
            {
                return;
            }

            await device.StopDeviceCmd();

            //ButtplugMessage response = await _client.SendDeviceMessage(device, new StopDeviceCmd(device.Index));
            //await CheckResponse(response);
        }
Пример #2
0
        public async void Stop(ButtplugClientDevice device)
        {
            if (_client == null)
            {
                return;
            }

            if (!device.AllowedMessages.ContainsKey(typeof(StopDeviceCmd)))
            {
                return;
            }

            try
            {
                await device.StopDeviceCmd();

                //ButtplugMessage response = await _client.SendDeviceMessage(device, new StopDeviceCmd(device.Index));
                //await CheckResponse(response);
            }
            catch (Exception e)
            {
                RecordButtplugException("ButtplugAdapter.Stop", e);
            }
        }
Пример #3
0
 private static async Task HandleVibrateStop(ButtplugClientDevice device)
 {
     await device.StopDeviceCmd();
 }