Class ConsensusProposalClaimMsg
A message class for claiming a Proposal.
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public class ConsensusProposalClaimMsg : ConsensusMsg, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusProposalClaimMsg(ProposalClaim)
Initializes a new instance of the ConsensusProposalClaimMsg class.
Declaration
public ConsensusProposalClaimMsg(ProposalClaim proposalClaim)
Parameters
Type | Name | Description |
---|---|---|
ProposalClaim | proposalClaim | A ProposalClaim of given height, round and BlockHash. |
ConsensusProposalClaimMsg(Byte[][])
Initializes a new instance of the ConsensusProposalClaimMsg class with marshalled message.
Declaration
public ConsensusProposalClaimMsg(byte[][] dataframes)
Parameters
Type | Name | Description |
---|---|---|
Byte[][] | dataframes | A marshalled message. |
Properties
| Improve this Doc View SourceDataFrames
The body of the message.
Declaration
public override IEnumerable<byte[]> DataFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Byte[]> |
Overrides
| Improve this Doc View SourceProposalClaim
A ProposalClaim of the message.
Declaration
public ProposalClaim ProposalClaim { get; }
Property Value
Type | Description |
---|---|
ProposalClaim |
Type
Enum
represents the type of the MessageContent.
Declaration
public override MessageContent.MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageContent.MessageType |
Overrides
Methods
| Improve this Doc View SourceEquals(ConsensusMsg)
Indicates whether the current ConsensusMsg is equal to another ConsensusMsg.
Declaration
public override bool Equals(ConsensusMsg other)
Parameters
Type | Name | Description |
---|---|---|
ConsensusMsg | other | An ConsensusMsg to compare with this ConsensusMsg. |
Returns
Type | Description |
---|---|
Boolean | true if the current ConsensusMsg is equal to the other parameter; otherwise, false. |
Overrides
| Improve this Doc View SourceEquals(Object)
A message class for claiming a Proposal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
A message class for claiming a Proposal.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |