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
DeviceStatePublishResponse.Status Property
Whether the submitted state was accepted as authoritative or only staged.
public Meshline.Models.Protocol.DeviceStatePublishStatus Status { get; init; }
Property Value
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.