Show / Hide Table of Contents

    Class NodeStatus

    NodeStatus contains the information about a node status

    Inheritance
    System.Object
    NodeStatus
    Implements
    System.IEquatable<NodeStatus>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Algorand.Algod.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class NodeStatus : IEquatable<NodeStatus>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    NodeStatus(Nullable<Int64>, Nullable<Boolean>, String, Nullable<UInt64>, String, Nullable<UInt64>, Nullable<Boolean>, Nullable<Int64>)

    Initializes a new instance of the NodeStatus class.

    Declaration
    public NodeStatus(long? catchupTime = default(long? ), bool? hasSyncedSinceStartup = default(bool? ), string lastConsensusVersion = null, ulong? lastRound = default(ulong? ), string nextConsensusVersion = null, ulong? nextConsensusVersionRound = default(ulong? ), bool? nextConsensusVersionSupported = default(bool? ), long? timeSinceLastRound = default(long? ))
    Parameters
    Type Name Description
    System.Nullable<System.Int64> catchupTime

    CatchupTime in nanoseconds (required).

    System.Nullable<System.Boolean> hasSyncedSinceStartup

    HasSyncedSinceStartup indicates whether a round has completed since startup (required).

    System.String lastConsensusVersion

    LastVersion indicates the last consensus version supported (required).

    System.Nullable<System.UInt64> lastRound

    LastRound indicates the last round seen (required).

    System.String nextConsensusVersion

    NextVersion of consensus protocol to use (required).

    System.Nullable<System.UInt64> nextConsensusVersionRound

    NextVersionRound is the round at which the next consensus version will apply (required).

    System.Nullable<System.Boolean> nextConsensusVersionSupported

    NextVersionSupported indicates whether the next consensus version is supported by this node (required).

    System.Nullable<System.Int64> timeSinceLastRound

    TimeSinceLastRound in nanoseconds (required).

    Properties

    | Improve this Doc View Source

    CatchupTime

    CatchupTime in nanoseconds

    Declaration
    [DataMember(Name = "catchupTime", EmitDefaultValue = false)]
    public long? CatchupTime { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    CatchupTime in nanoseconds

    | Improve this Doc View Source

    HasSyncedSinceStartup

    HasSyncedSinceStartup indicates whether a round has completed since startup

    Declaration
    [DataMember(Name = "hasSyncedSinceStartup", EmitDefaultValue = false)]
    public bool? HasSyncedSinceStartup { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    HasSyncedSinceStartup indicates whether a round has completed since startup

    | Improve this Doc View Source

    LastConsensusVersion

    LastVersion indicates the last consensus version supported

    Declaration
    [DataMember(Name = "lastConsensusVersion", EmitDefaultValue = false)]
    public string LastConsensusVersion { get; set; }
    Property Value
    Type Description
    System.String

    LastVersion indicates the last consensus version supported

    | Improve this Doc View Source

    LastRound

    LastRound indicates the last round seen

    Declaration
    [DataMember(Name = "lastRound", EmitDefaultValue = false)]
    public ulong? LastRound { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    LastRound indicates the last round seen

    | Improve this Doc View Source

    NextConsensusVersion

    NextVersion of consensus protocol to use

    Declaration
    [DataMember(Name = "nextConsensusVersion", EmitDefaultValue = false)]
    public string NextConsensusVersion { get; set; }
    Property Value
    Type Description
    System.String

    NextVersion of consensus protocol to use

    | Improve this Doc View Source

    NextConsensusVersionRound

    NextVersionRound is the round at which the next consensus version will apply

    Declaration
    [DataMember(Name = "nextConsensusVersionRound", EmitDefaultValue = false)]
    public ulong? NextConsensusVersionRound { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    NextVersionRound is the round at which the next consensus version will apply

    | Improve this Doc View Source

    NextConsensusVersionSupported

    NextVersionSupported indicates whether the next consensus version is supported by this node

    Declaration
    [DataMember(Name = "nextConsensusVersionSupported", EmitDefaultValue = false)]
    public bool? NextConsensusVersionSupported { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    NextVersionSupported indicates whether the next consensus version is supported by this node

    | Improve this Doc View Source

    TimeSinceLastRound

    TimeSinceLastRound in nanoseconds

    Declaration
    [DataMember(Name = "timeSinceLastRound", EmitDefaultValue = false)]
    public long? TimeSinceLastRound { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    TimeSinceLastRound in nanoseconds

    Methods

    | Improve this Doc View Source

    Equals(NodeStatus)

    Returns true if NodeStatus instances are equal

    Declaration
    public bool Equals(NodeStatus input)
    Parameters
    Type Name Description
    NodeStatus input

    Instance of NodeStatus to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    | Improve this Doc View Source

    Equals(Object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    System.Object input

    Object to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    System.String

    JSON string presentation of the object

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext

    Validation context

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX