Class TransactionAssetFreeze
Fields for an asset freeze transaction. Definition: data/transactions/asset.go : AssetFreezeTxnFields
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionAssetFreeze : IEquatable<TransactionAssetFreeze>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionAssetFreeze(String, Nullable<Int64>, Nullable<Boolean>)
Initializes a new instance of the TransactionAssetFreeze class.
Declaration
public TransactionAssetFreeze(string address = null, long? assetId = default(long? ), bool? newFreezeStatus = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | \[fadd\] Address of the account whose asset is being frozen or thawed. (required). |
System.Nullable<System.Int64> | assetId | \[faid\] ID of the asset being frozen or thawed. (required). |
System.Nullable<System.Boolean> | newFreezeStatus | \[afrz\] The new freeze status. (required). |
Properties
| Improve this Doc View SourceAddress
\[fadd\] Address of the account whose asset is being frozen or thawed.
Declaration
[DataMember(Name = "address", EmitDefaultValue = false)]
public string Address { get; set; }
Property Value
Type | Description |
---|---|
System.String | \[fadd\] Address of the account whose asset is being frozen or thawed. |
AssetId
\[faid\] ID of the asset being frozen or thawed.
Declaration
[DataMember(Name = "asset-id", EmitDefaultValue = false)]
public long? AssetId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[faid\] ID of the asset being frozen or thawed. |
NewFreezeStatus
\[afrz\] The new freeze status.
Declaration
[DataMember(Name = "new-freeze-status", EmitDefaultValue = false)]
public bool? NewFreezeStatus { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | \[afrz\] The new freeze status. |
Methods
| Improve this Doc View SourceEquals(TransactionAssetFreeze)
Returns true if TransactionAssetFreeze instances are equal
Declaration
public bool Equals(TransactionAssetFreeze input)
Parameters
Type | Name | Description |
---|---|---|
TransactionAssetFreeze | input | Instance of TransactionAssetFreeze 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 |