Class ApplicationLocalState
Stores local state associated with an application.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class ApplicationLocalState : IEquatable<ApplicationLocalState>, IValidatableObject
Constructors
| Improve this Doc View SourceApplicationLocalState()
Initializes a new instance of the ApplicationLocalState class.
Declaration
[JsonConstructor]
protected ApplicationLocalState()
ApplicationLocalState(Nullable<Int64>, ApplicationStateSchema, TealKeyValueStore)
Initializes a new instance of the ApplicationLocalState class.
Declaration
public ApplicationLocalState(long? id = default(long? ), ApplicationStateSchema schema = null, TealKeyValueStore keyValue = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | id | The application which this local state is for. (required). |
ApplicationStateSchema | schema | \[hsch\] schema. (required). |
TealKeyValueStore | keyValue | \[tkv\] storage.. |
Properties
| Improve this Doc View SourceId
The application which this local state is for.
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public long? Id { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The application which this local state is for. |
KeyValue
\[tkv\] storage.
Declaration
[DataMember(Name = "key-value", EmitDefaultValue = false)]
public TealKeyValueStore KeyValue { get; set; }
Property Value
Type | Description |
---|---|
TealKeyValueStore | \[tkv\] storage. |
Schema
\[hsch\] schema.
Declaration
[DataMember(Name = "schema", EmitDefaultValue = false)]
public ApplicationStateSchema Schema { get; set; }
Property Value
Type | Description |
---|---|
ApplicationStateSchema | \[hsch\] schema. |
Methods
| Improve this Doc View SourceEquals(ApplicationLocalState)
Returns true if ApplicationLocalState instances are equal
Declaration
public bool Equals(ApplicationLocalState input)
Parameters
Type | Name | Description |
---|---|---|
ApplicationLocalState | input | Instance of ApplicationLocalState 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 |