Class Participation
Participation Description
Inheritance
Implements
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class Participation : IEquatable<Participation>, IValidatableObject
Constructors
| Improve this Doc View SourceParticipation(String, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, String)
Initializes a new instance of the Participation class.
Declaration
public Participation(string partpkb64 = null, ulong? votefst = default(ulong? ), ulong? votekd = default(ulong? ), ulong? votelst = default(ulong? ), string vrfpkb64 = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | partpkb64 | ParticipationPK is the root participation public key (if any) currently registered for this round (required). |
System.Nullable<System.UInt64> | votefst | VoteFirst is the first round for which this participation is valid. (required). |
System.Nullable<System.UInt64> | votekd | VoteKeyDilution is the number of subkeys in for each batch of participation keys. (required). |
System.Nullable<System.UInt64> | votelst | VoteLast is the last round for which this participation is valid. (required). |
System.String | vrfpkb64 | VRFPK is the selection public key (if any) currently registered for this round (required). |
Properties
| Improve this Doc View SourcePartpkb64
ParticipationPK is the root participation public key (if any) currently registered for this round
Declaration
[DataMember(Name = "partpkb64", EmitDefaultValue = false)]
public string Partpkb64 { get; set; }
Property Value
Type | Description |
---|---|
System.String | ParticipationPK is the root participation public key (if any) currently registered for this round |
Votefst
VoteFirst is the first round for which this participation is valid.
Declaration
[DataMember(Name = "votefst", EmitDefaultValue = false)]
public ulong? Votefst { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteFirst is the first round for which this participation is valid. |
Votekd
VoteKeyDilution is the number of subkeys in for each batch of participation keys.
Declaration
[DataMember(Name = "votekd", EmitDefaultValue = false)]
public ulong? Votekd { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteKeyDilution is the number of subkeys in for each batch of participation keys. |
Votelst
VoteLast is the last round for which this participation is valid.
Declaration
[DataMember(Name = "votelst", EmitDefaultValue = false)]
public ulong? Votelst { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteLast is the last round for which this participation is valid. |
Vrfpkb64
VRFPK is the selection public key (if any) currently registered for this round
Declaration
[DataMember(Name = "vrfpkb64", EmitDefaultValue = false)]
public string Vrfpkb64 { get; set; }
Property Value
Type | Description |
---|---|
System.String | VRFPK is the selection public key (if any) currently registered for this round |
Methods
| Improve this Doc View SourceEquals(Participation)
Returns true if Participation instances are equal
Declaration
public bool Equals(Participation input)
Parameters
Type | Name | Description |
---|---|---|
Participation | input | Instance of Participation 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 |