Class SimulateCharacteristicResponseCommandParameters
- Namespace
- WebDriverBiDi.Bluetooth
- Assembly
- WebDriverBiDi.dll
Provides parameters for the bluetooth.simulateCharacteristicResponse command.
public class SimulateCharacteristicResponseCommandParameters : CommandParameters<SimulateCharacteristicResponseCommandResult>
- Inheritance
-
SimulateCharacteristicResponseCommandParameters
- Inherited Members
Constructors
SimulateCharacteristicResponseCommandParameters(string, string, string, string, SimulateCharacteristicResponseType, uint)
Initializes a new instance of the SimulateCharacteristicResponseCommandParameters class.
public SimulateCharacteristicResponseCommandParameters(string browsingContextId, string address, string serviceUuid, string characteristicUuid, SimulateCharacteristicResponseType type, uint code)
Parameters
browsingContextIdstringThe ID of the browsing context for which to simulate the characteristic response on the Bluetooth adapter.
addressstringThe address of the simulated device.
serviceUuidstringThe UUID of the service to simulate.
characteristicUuidstringThe UUID of the characteristic to simulate.
typeSimulateCharacteristicResponseTypeThe SimulateCharacteristicResponseType value for the type of simulation for the characteristic response.
codeuintThe code of the simulated characteristic response.
Properties
Address
Gets or sets the address of the device for which to simulate the characteristic response.
[JsonPropertyName("address")]
public string Address { get; set; }
Property Value
BrowsingContextId
Gets or sets the ID of the browsing context for which to simulate a characteristic response on the Bluetooth adapter.
[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }
Property Value
CharacteristicUuid
Gets or sets the UUID of the characteristic to simulate.
[JsonPropertyName("characteristicUuid")]
public string CharacteristicUuid { get; set; }
Property Value
Code
Gets or sets the code of the simulated characteristic response.
[JsonPropertyName("code")]
public uint Code { get; set; }
Property Value
Data
Gets the data for the simulated characteristic response.
[JsonIgnore]
public List<uint> Data { get; }
Property Value
Remarks
This property is optional in the protocol. An empty list means "not specified": the property is omitted from the JSON payload entirely, and the remote end's behavior for a response without data is implementation-defined; an empty array is never sent. Add entries to the list to populate it.
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
ServiceUuid
Gets or sets the UUID of the service to simulate.
[JsonPropertyName("serviceUuid")]
public string ServiceUuid { get; set; }
Property Value
Type
Gets or sets the type of simulation of the characteristic response.
[JsonPropertyName("type")]
public SimulateCharacteristicResponseType Type { get; set; }