Class CompileResponse
CompileResponse
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class CompileResponse : IEquatable<CompileResponse>, IValidatableObject
Constructors
| Improve this Doc View SourceCompileResponse()
Initializes a new instance of the CompileResponse class.
Declaration
[JsonConstructor]
protected CompileResponse()
CompileResponse(String, String)
Initializes a new instance of the CompileResponse class.
Declaration
public CompileResponse(string hash = null, string result = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | hash | base32 SHA512_256 of program bytes (Address style) (required). |
System.String | result | base64 encoded program bytes (required). |
Properties
| Improve this Doc View SourceHash
base32 SHA512_256 of program bytes (Address style)
Declaration
[DataMember(Name = "hash", EmitDefaultValue = false)]
public string Hash { get; set; }
Property Value
Type | Description |
---|---|
System.String | base32 SHA512_256 of program bytes (Address style) |
Result
base64 encoded program bytes
Declaration
[DataMember(Name = "result", EmitDefaultValue = false)]
public string Result { get; set; }
Property Value
Type | Description |
---|---|
System.String | base64 encoded program bytes |
Methods
| Improve this Doc View SourceEquals(CompileResponse)
Returns true if CompileResponse instances are equal
Declaration
public bool Equals(CompileResponse input)
Parameters
Type | Name | Description |
---|---|---|
CompileResponse | input | Instance of CompileResponse 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 |