public static interface ElectionContract.ElectionResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsResults(String key)
The election result, candidates’ public key -> number of votes.
|
boolean |
getIsActive()
Whether an election is currently being held.
|
Map<String,Long> |
getResults()
已过时。
|
int |
getResultsCount()
The election result, candidates’ public key -> number of votes.
|
Map<String,Long> |
getResultsMap()
The election result, candidates’ public key -> number of votes.
|
long |
getResultsOrDefault(String key,
long defaultValue)
The election result, candidates’ public key -> number of votes.
|
long |
getResultsOrThrow(String key)
The election result, candidates’ public key -> number of votes.
|
long |
getTermNumber()
The term number
int64 term_number = 1; |
long getTermNumber()
The term number
int64 term_number = 1;int getResultsCount()
The election result, candidates’ public key -> number of votes.
map<string, int64> results = 2;boolean containsResults(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> results = 2;@Deprecated Map<String,Long> getResults()
getResultsMap() instead.Map<String,Long> getResultsMap()
The election result, candidates’ public key -> number of votes.
map<string, int64> results = 2;long getResultsOrDefault(String key, long defaultValue)
The election result, candidates’ public key -> number of votes.
map<string, int64> results = 2;long getResultsOrThrow(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> results = 2;boolean getIsActive()
Whether an election is currently being held.
bool is_active = 3;Copyright © 2020. All rights reserved.