OperationMethod
Namespace: E2E.Engine.Protocol
public sealed record OperationMethod : ProtocolMethod, IEquatable<ProtocolMethod>, IEquatable<OperationMethod>A method that carries one engine operation: the member it calls and that member’s arguments by name, in order. Upstream’s OperationMethod.
Inheritance: object → ProtocolMethod
Implements: IEquatable<ProtocolMethod>, IEquatable<OperationMethod>
Constructors
Section titled “Constructors”OperationMethod(string, IReadOnlyList<string>, string?)
Section titled “OperationMethod(string, IReadOnlyList<string>, string?)”public OperationMethod(string Member, IReadOnlyList<string> Args, string? Result = null)A method that carries one engine operation: the member it calls and that member’s arguments by name, in order. Upstream’s OperationMethod.
Parameters
| Name | Type | Description |
|---|---|---|
Member |
string | The engine member: a top-level one (observe) or a hook of a nested one (keyboard.type). |
Args |
IReadOnlyList<string> | The member’s arguments, named as the params carry them; operation is its operation context. |
Result |
string | A result that is not plain JSON: a snapshot’s pixels cross as base64, a screenshot may cross as its bytes. |
Properties
Section titled “Properties”public IReadOnlyList<string> Args { get; init; }The member’s arguments, named as the params carry them; operation is its operation context.
Value: IReadOnlyList<string>
Member
Section titled “Member”public string Member { get; init; }The engine member: a top-level one (observe) or a hook of a nested one (keyboard.type).
Value: string
Result
Section titled “Result”public string? Result { get; init; }A result that is not plain JSON: a snapshot’s pixels cross as base64, a screenshot may cross as its bytes.
Value: string