Table of Contents

Class DeviceStatus

Namespace
Azure.Iot.Operations.Services.AssetAndDeviceRegistry.Models
Assembly
Azure.Iot.Operations.Services.dll
public record DeviceStatus : IEquatable<DeviceStatus>
Inheritance
DeviceStatus
Implements
Inherited Members

Properties

Config

The status of the device

public ConfigStatus? Config { get; set; }

Property Value

ConfigStatus

Endpoints

The statuses of each of the endpoints that belong to the device

public DeviceStatusEndpoint? Endpoints { get; set; }

Property Value

DeviceStatusEndpoint

Methods

EqualTo(DeviceStatus)

Compare two device states.

public bool EqualTo(DeviceStatus other)

Parameters

other DeviceStatus

The other device state to compare against.

Returns

bool

False if there is any difference between the two device states (ignoring 'LastUpdateTime' field values). True otherwise.

Remarks

The 'LastUpdateTime' fields are deliberately ignored in this comparison.

SetEndpointError(string, ConfigError)

public void SetEndpointError(string inboundEndpointName, ConfigError endpointError)

Parameters

inboundEndpointName string
endpointError ConfigError