Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

DeviceStatePublishResponse Class

Reports whether a device state was accepted or temporarily staged by a relay.

public sealed record DeviceStatePublishResponse : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.DeviceStatePublishResponse>

Inheritance System.Object → ProtocolModel → DeviceStatePublishResponse

Implements System.IEquatable<DeviceStatePublishResponse>

Properties

DeviceStatePublishResponse.StagedUntil Property

The expiration time of the temporarily staged device state, in Unix seconds, or null when unavailable.

public System.Nullable<long> StagedUntil { get; init; }

Property Value

System.Nullable<System.Int64>

DeviceStatePublishResponse.Status Property

Whether the submitted state was accepted as authoritative or only staged.

public Meshline.Models.Protocol.DeviceStatePublishStatus Status { get; init; }

Property Value

DeviceStatePublishStatus

Methods

DeviceStatePublishResponse.Validate(NetworkContext) Method

Validates the publication status and whether staging expiry is present when required.

public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context=null);

Parameters

context NetworkContext

The optional network context passed to nested validation when needed; field-only validation may ignore it.

Returns

ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.