Show / Hide Table of Contents

    Class BlockUpgradeVote

    Fields relating to voting for a protocol upgrade.

    Inheritance
    System.Object
    BlockUpgradeVote
    Implements
    System.IEquatable<BlockUpgradeVote>
    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.V2.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class BlockUpgradeVote : IEquatable<BlockUpgradeVote>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    BlockUpgradeVote(Nullable<Boolean>, Nullable<Int64>, String)

    Initializes a new instance of the BlockUpgradeVote class.

    Declaration
    public BlockUpgradeVote(bool? upgradeApprove = default(bool? ), long? upgradeDelay = default(long? ), string upgradePropose = null)
    Parameters
    Type Name Description
    System.Nullable<System.Boolean> upgradeApprove

    \[upgradeyes\] Indicates a yes vote for the current proposal..

    System.Nullable<System.Int64> upgradeDelay

    \[upgradedelay\] Indicates the time between acceptance and execution..

    System.String upgradePropose

    \[upgradeprop\] Indicates a proposed upgrade..

    Properties

    | Improve this Doc View Source

    UpgradeApprove

    \[upgradeyes\] Indicates a yes vote for the current proposal.

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

    \[upgradeyes\] Indicates a yes vote for the current proposal.

    | Improve this Doc View Source

    UpgradeDelay

    \[upgradedelay\] Indicates the time between acceptance and execution.

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

    \[upgradedelay\] Indicates the time between acceptance and execution.

    | Improve this Doc View Source

    UpgradePropose

    \[upgradeprop\] Indicates a proposed upgrade.

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

    \[upgradeprop\] Indicates a proposed upgrade.

    Methods

    | Improve this Doc View Source

    Equals(BlockUpgradeVote)

    Returns true if BlockUpgradeVote instances are equal

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

    Instance of BlockUpgradeVote 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