Show / Hide Table of Contents

    Class BuildVersion

    BuildVersion

    Inheritance
    System.Object
    BuildVersion
    Implements
    System.IEquatable<BuildVersion>
    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 BuildVersion : IEquatable<BuildVersion>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    BuildVersion()

    Initializes a new instance of the BuildVersion class.

    Declaration
    [JsonConstructor]
    protected BuildVersion()
    | Improve this Doc View Source

    BuildVersion(String, Nullable<Int64>, String, String, Nullable<Int64>, Nullable<Int64>)

    Initializes a new instance of the BuildVersion class.

    Declaration
    public BuildVersion(string branch = null, long? buildNumber = default(long? ), string channel = null, string commitHash = null, long? major = default(long? ), long? minor = default(long? ))
    Parameters
    Type Name Description
    System.String branch

    branch (required).

    System.Nullable<System.Int64> buildNumber

    buildNumber (required).

    System.String channel

    channel (required).

    System.String commitHash

    commitHash (required).

    System.Nullable<System.Int64> major

    major (required).

    System.Nullable<System.Int64> minor

    minor (required).

    Properties

    | Improve this Doc View Source

    Branch

    Gets or Sets Branch

    Declaration
    [DataMember(Name = "branch", EmitDefaultValue = false)]
    public string Branch { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    BuildNumber

    Gets or Sets BuildNumber

    Declaration
    [DataMember(Name = "build_number", EmitDefaultValue = false)]
    public long? BuildNumber { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>
    | Improve this Doc View Source

    Channel

    Gets or Sets Channel

    Declaration
    [DataMember(Name = "channel", EmitDefaultValue = false)]
    public string Channel { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    CommitHash

    Gets or Sets CommitHash

    Declaration
    [DataMember(Name = "commit_hash", EmitDefaultValue = false)]
    public string CommitHash { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Major

    Gets or Sets Major

    Declaration
    [DataMember(Name = "major", EmitDefaultValue = false)]
    public long? Major { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>
    | Improve this Doc View Source

    Minor

    Gets or Sets Minor

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

    Methods

    | Improve this Doc View Source

    Equals(BuildVersion)

    Returns true if BuildVersion instances are equal

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

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