Class Asset
Asset specifies both the unique identifier and the parameters for an asset
Inheritance
System.Object
Asset
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class Asset : IEquatable<Asset>, IValidatableObject
Constructors
| Improve this Doc View SourceAsset(Nullable<UInt64>, AssetParams)
Initializes a new instance of the Asset class.
Declaration
public Asset(ulong? assetIndex = default(ulong? ), AssetParams assetParams = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.UInt64> | assetIndex | AssetIndex is the unique asset identifier (required). |
AssetParams | assetParams | assetParams (required). |
Properties
| Improve this Doc View SourceAssetIndex
AssetIndex is the unique asset identifier
Declaration
[DataMember(Name = "AssetIndex", EmitDefaultValue = false)]
public ulong? AssetIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | AssetIndex is the unique asset identifier |
AssetParams
Gets or Sets AssetParams
Declaration
[DataMember(Name = "AssetParams", EmitDefaultValue = false)]
public AssetParams AssetParams { get; set; }
Property Value
Type | Description |
---|---|
AssetParams |
Methods
| Improve this Doc View SourceEquals(Asset)
Returns true if Asset instances are equal
Declaration
public bool Equals(Asset input)
Parameters
Type | Name | Description |
---|---|---|
Asset | input | Instance of Asset 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
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 |
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 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 |
Implements
System.IEquatable<T>
System.ComponentModel.DataAnnotations.IValidatableObject