decode static method
- XdrDataInputStream stream
Implementation
static XdrExtendFootprintTTLResultCode decode(
XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return EXTEND_FOOTPRINT_TTL_SUCCESS;
case -1:
return EXTEND_FOOTPRINT_TTL_MALFORMED;
case -2:
return EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED;
case -3:
return EXTEND_FOOTPRINT_TTL_INSUFFICIENT_REFUNDABLE_FEE;
default:
throw Exception("Unknown enum value: $value");
}
}