decode static method
Implementation
static XdrAllowTrustResultCode decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return ALLOW_TRUST_SUCCESS;
case -1:
return ALLOW_TRUST_MALFORMED;
case -2:
return ALLOW_TRUST_NO_TRUST_LINE;
case -3:
return ALLOW_TRUST_TRUST_NOT_REQUIRED;
case -4:
return ALLOW_TRUST_CANT_REVOKE;
case -5:
return ALLOW_TRUST_SELF_NOT_ALLOWED;
case -6:
return ALLOW_TRUST_LOW_RESERVE;
default:
throw Exception("Unknown enum value: $value");
}
}