Class Version
Note that we annotate this as a model so that legacy clients can directly import a swagger generated Version model.
Inheritance
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class Version : IEquatable<Version>, IValidatableObject
Constructors
| Improve this Doc View SourceVersion(BuildVersion, String, String, List<String>)
Initializes a new instance of the Version class.
Declaration
public Version(BuildVersion build = null, string genesisHashB64 = null, string genesisId = null, List<string> versions = null)
Parameters
Type | Name | Description |
---|---|---|
BuildVersion | build | build (required). |
System.String | genesisHashB64 | genesisHashB64 (required). |
System.String | genesisId | genesisId (required). |
System.Collections.Generic.List<System.String> | versions | versions (required). |
Properties
| Improve this Doc View SourceBuild
Gets or Sets Build
Declaration
[DataMember(Name = "build", EmitDefaultValue = false)]
public BuildVersion Build { get; set; }
Property Value
Type | Description |
---|---|
BuildVersion |
GenesisHashB64
Gets or Sets GenesisHashB64
Declaration
[DataMember(Name = "genesis_hash_b64", EmitDefaultValue = false)]
public string GenesisHashB64 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GenesisId
Gets or Sets GenesisId
Declaration
[DataMember(Name = "genesis_id", EmitDefaultValue = false)]
public string GenesisId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Versions
Gets or Sets Versions
Declaration
[DataMember(Name = "versions", EmitDefaultValue = false)]
public List<string> Versions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Methods
| Improve this Doc View SourceEquals(Version)
Returns true if Version instances are equal
Declaration
public bool Equals(Version input)
Parameters
Type | Name | Description |
---|---|---|
Version | input | Instance of Version to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
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
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
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 |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.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 |