示例#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();
 }