Class SimulateCharacteristicCommandParameters
- Namespace
- WebDriverBiDi.Bluetooth
- Assembly
- WebDriverBiDi.dll
Provides parameters for the bluetooth.simulateCharacteristic command.
public class SimulateCharacteristicCommandParameters : CommandParameters<SimulateCharacteristicCommandResult>
- Inheritance
-
SimulateCharacteristicCommandParameters
- Inherited Members
Constructors
SimulateCharacteristicCommandParameters(string, string, string, string, SimulateCharacteristicType)
Initializes a new instance of the SimulateCharacteristicCommandParameters class.
public SimulateCharacteristicCommandParameters(string browsingContextId, string address, string serviceUuid, string characteristicUuid, SimulateCharacteristicType type)
Parameters
browsingContextIdstringThe ID of the browsing context for which to simulate the characteristic on the Bluetooth adapter.
addressstringThe address of the simulated device.
serviceUuidstringThe UUID of the service to simulate.
characteristicUuidstringThe UUID of the characteristic to simulate.
typeSimulateCharacteristicTypeThe SimulateCharacteristicType value for the type of simulation for the characteristic.
Properties
Address
Gets or sets the address of the device for which to simulate the characteristic.
[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 on the Bluetooth adapter.
[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }
Property Value
CharacteristicProperties
Gets or sets the properties of the characteristic to simulate.
[JsonPropertyName("characteristicProperties")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CharacteristicProperties? CharacteristicProperties { get; set; }
Property Value
Remarks
This property is required when Type is Add, and must be omitted when it is Remove. This property does not validate that rule; a conforming remote end answers with an "invalid argument" error when the command is executed.
CharacteristicUuid
Gets or sets the UUID of the characteristic to simulate.
[JsonPropertyName("characteristicUuid")]
public string CharacteristicUuid { get; set; }
Property Value
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.
[JsonPropertyName("type")]
public SimulateCharacteristicType Type { get; set; }