Table of Contents

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

browsingContextId string

The ID of the browsing context for which to simulate the characteristic on the Bluetooth adapter.

address string

The address of the simulated device.

serviceUuid string

The UUID of the service to simulate.

characteristicUuid string

The UUID of the characteristic to simulate.

type SimulateCharacteristicType

The 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

string

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

string

CharacteristicProperties

Gets or sets the properties of the characteristic to simulate.

[JsonPropertyName("characteristicProperties")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CharacteristicProperties? CharacteristicProperties { get; set; }

Property Value

CharacteristicProperties

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

string

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string

ServiceUuid

Gets or sets the UUID of the service to simulate.

[JsonPropertyName("serviceUuid")]
public string ServiceUuid { get; set; }

Property Value

string

Type

Gets or sets the type of simulation of the characteristic.

[JsonPropertyName("type")]
public SimulateCharacteristicType Type { get; set; }

Property Value

SimulateCharacteristicType