Table of Contents

Class SimulateDescriptorResponseCommandParameters

Namespace
WebDriverBiDi.Bluetooth
Assembly
WebDriverBiDi.dll

Provides parameters for the bluetooth.simulateDescriptorResponse command.

public class SimulateDescriptorResponseCommandParameters : CommandParameters<SimulateDescriptorResponseCommandResult>
Inheritance
SimulateDescriptorResponseCommandParameters
Inherited Members

Constructors

SimulateDescriptorResponseCommandParameters(string, string, string, string, string, SimulateDescriptorResponseType, uint)

Initializes a new instance of the SimulateDescriptorResponseCommandParameters class.

public SimulateDescriptorResponseCommandParameters(string browsingContextId, string address, string serviceUuid, string characteristicUuid, string descriptorUuid, SimulateDescriptorResponseType type, uint code)

Parameters

browsingContextId string

The ID of the browsing context for which to simulate the descriptor response 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.

descriptorUuid string

The UUID of the descriptor to simulate.

type SimulateDescriptorResponseType

The SimulateDescriptorResponseType value for the type of simulation for the descriptor response.

code uint

The code of the simulated descriptor response.

Properties

Address

Gets or sets the address of the device for which to simulate the descriptor response.

[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 descriptor response on the Bluetooth adapter.

[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }

Property Value

string

CharacteristicUuid

Gets or sets the UUID of the characteristic to simulate.

[JsonPropertyName("characteristicUuid")]
public string CharacteristicUuid { get; set; }

Property Value

string

Code

Gets or sets the code of the simulated descriptor response.

[JsonPropertyName("code")]
public uint Code { get; set; }

Property Value

uint

Data

Gets the data for the simulated descriptor response.

[JsonIgnore]
public List<uint> Data { get; }

Property Value

List<uint>

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.

DescriptorUuid

Gets or sets the UUID of the descriptor to simulate.

[JsonPropertyName("descriptorUuid")]
public string DescriptorUuid { 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 descriptor response.

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

Property Value

SimulateDescriptorResponseType