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
browsingContextIdstringThe ID of the browsing context for which to simulate the descriptor 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.
descriptorUuidstringThe UUID of the descriptor to simulate.
typeSimulateDescriptorResponseTypeThe SimulateDescriptorResponseType value for the type of simulation for the descriptor response.
codeuintThe 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
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
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 descriptor response.
[JsonPropertyName("code")]
public uint Code { get; set; }
Property Value
Data
Gets the data for the simulated descriptor 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.
DescriptorUuid
Gets or sets the UUID of the descriptor to simulate.
[JsonPropertyName("descriptorUuid")]
public string DescriptorUuid { 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 descriptor response.
[JsonPropertyName("type")]
public SimulateDescriptorResponseType Type { get; set; }