Class BlockResponse
BlockResponse
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class BlockResponse : IEquatable<BlockResponse>, IValidatableObject
Constructors
| Improve this Doc View SourceBlockResponse()
Initializes a new instance of the BlockResponse class.
Declaration
[JsonConstructor]
protected BlockResponse()
BlockResponse(Object, Object)
Initializes a new instance of the BlockResponse class.
Declaration
public BlockResponse(object block = null, object cert = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | block | Block header data. (required). |
System.Object | cert | Optional certificate object. This is only included when the format is set to message pack.. |
Properties
| Improve this Doc View SourceBlock
Block header data.
Declaration
[DataMember(Name = "block", EmitDefaultValue = false)]
public object Block { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Block header data. |
Cert
Optional certificate object. This is only included when the format is set to message pack.
Declaration
[DataMember(Name = "cert", EmitDefaultValue = false)]
public object Cert { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Optional certificate object. This is only included when the format is set to message pack. |
Methods
| Improve this Doc View SourceEquals(BlockResponse)
Returns true if BlockResponse instances are equal
Declaration
public bool Equals(BlockResponse input)
Parameters
Type | Name | Description |
---|---|---|
BlockResponse | input | Instance of BlockResponse 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 |