Table of Contents

Class Rewrite

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Rewrite the code being intercepted. This can be used to modify the code before it is executed.

[RequiredPermissions(SbcPermissions.CodeInterceptionReadWrite)]
public class Rewrite : Command
Inheritance
Rewrite
Inherited Members

Remarks

This command is only permitted in Intercept mode

Constructors

Rewrite()

public Rewrite()

Properties

Code

Type of the resolving message

public Code Code { get; set; }

Property Value

Code

Methods

UpdateFromJson(JsonElement)

Update this instance from a given JSON element

public override void UpdateFromJson(JsonElement jsonElement)

Parameters

jsonElement JsonElement

Element to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader)

Update this instance from a given JSON element

public override void UpdateFromJsonReader(ref Utf8JsonReader reader)

Parameters

reader Utf8JsonReader

Reader to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data