Table of Contents

Class GetFileInfo

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Analyse a G-code file and return an instance of GCodeFileInfo when ready

[RequiredPermissions(SbcPermissions.CommandExecution|SbcPermissions.ReadGCodes|SbcPermissions.FileSystemAccess)]
public class GetFileInfo : Command<GCodeFileInfo>
Inheritance
GetFileInfo
Derived
Inherited Members

Constructors

GetFileInfo()

public GetFileInfo()

Properties

FileName

The filename to extract information from

public string FileName { get; set; }

Property Value

string

ReadThumbnailContent

Whether thumbnail content shall be returned

public bool ReadThumbnailContent { get; set; }

Property Value

bool

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