Class SetVirtualWalletBehaviorCommandParameters
- Namespace
- WebDriverBiDi.DigitalCredentials
- Assembly
- WebDriverBiDi.dll
Provides parameters for the digitalCredentials.setVirtualWalletBehavior command.
public class SetVirtualWalletBehaviorCommandParameters : CommandParameters<SetVirtualWalletBehaviorCommandResult>
- Inheritance
-
SetVirtualWalletBehaviorCommandParameters
- Inherited Members
Constructors
SetVirtualWalletBehaviorCommandParameters(VirtualWalletAction)
Initializes a new instance of the SetVirtualWalletBehaviorCommandParameters class.
public SetVirtualWalletBehaviorCommandParameters(VirtualWalletAction action)
Parameters
actionVirtualWalletActionThe VirtualWalletAction to set.
Properties
Action
Gets or sets the action to take with the virtual wallet.
[JsonPropertyName("action")]
public VirtualWalletAction Action { get; set; }
Property Value
BrowsingContextId
Gets or sets the ID of the browsing context for which to set the virtual wallet action.
[JsonPropertyName("context")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BrowsingContextId { get; set; }
Property Value
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
Protocol
Gets or sets the protocol identifier the simulated credential is presented under.
[JsonPropertyName("protocol")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Protocol { get; set; }
Property Value
Remarks
This is not a filter: it names the protocol of the credential the wallet returns, and its value reaches the page as the presented credential's protocol. Only BrowsingContextId scopes the behavior.
This property and Response are required together when Action is Respond, and must both be omitted for every other action. The value must be one of the protocol identifiers enumerated by the Digital Credentials API. This property does not validate either rule; a conforming remote end answers with an "invalid argument" error when the command is executed.
Response
Gets or sets the response object to use as the credential data.
[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, object?>? Response { get; set; }