java.lang.Object
com.hedera.hashgraph.sdk.ExchangeRates
Contains a set of Exchange Rates (current and next).
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ExchangeRateCurrent Exchange Ratefinal ExchangeRateNext Exchange Rate -
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangeRatesfromBytes(byte[] bytes) Create an Exchange Rates from a byte array.(package private) static ExchangeRatesCreate an Exchange Rates from a protobuf.toString()
-
Field Details
-
currentRate
Current Exchange Rate -
nextRate
Next Exchange Rate
-
-
Method Details
-
fromProtobuf
Create an Exchange Rates from a protobuf.- Parameters:
pb- the protobuf- Returns:
- the new exchange rates
-
fromBytes
public static ExchangeRates fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create an Exchange Rates from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new exchange rates
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
toString
-