Class StateSchema
Represents a \[apls\] local-state or \[apgs\] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.
Inheritance
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class StateSchema : IEquatable<StateSchema>, IValidatableObject
Constructors
| Improve this Doc View SourceStateSchema(Nullable<UInt64>, Nullable<UInt64>)
Initializes a new instance of the StateSchema class.
Declaration
public StateSchema(ulong? numByteSlice, ulong? numUint)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.UInt64> | numByteSlice | Maximum number of TEAL byte slices that may be stored in the key/value store. (required). |
System.Nullable<System.UInt64> | numUint | Maximum number of TEAL uints that may be stored in the key/value store. (required). |
Properties
| Improve this Doc View SourceNumByteSlice
Maximum number of TEAL byte slices that may be stored in the key/value store.
Declaration
[DataMember(Name = "num-byte-slice", EmitDefaultValue = false)]
public ulong? NumByteSlice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Maximum number of TEAL byte slices that may be stored in the key/value store. |
NumUint
Maximum number of TEAL uints that may be stored in the key/value store.
Declaration
[DataMember(Name = "num-uint", EmitDefaultValue = false)]
public ulong? NumUint { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Maximum number of TEAL uints that may be stored in the key/value store. |
Methods
| Improve this Doc View SourceEquals(StateSchema)
Returns true if StateSchema instances are equal
Declaration
public bool Equals(StateSchema input)
Parameters
Type | Name | Description |
---|---|---|
StateSchema | input | Instance of StateSchema 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 |