Table of Contents

Class SetNetworkProtocol

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Flag a given network protocol as enabled or disabled

[RequiredPermissions(SbcPermissions.SuperUser)]
public class SetNetworkProtocol : Command
Inheritance
SetNetworkProtocol
Derived
Inherited Members

Remarks

The object model must not be locked from the same connection via LockObjectModel when this is called!

Constructors

SetNetworkProtocol()

public SetNetworkProtocol()

Properties

Enabled

Whether the protocol is enabled or not

public bool Enabled { get; set; }

Property Value

bool

Protocol

Protocol to change

public NetworkProtocol Protocol { get; set; }

Property Value

NetworkProtocol

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