decode static method

XdrRestoreFootprintResult decode(
  1. XdrDataInputStream stream
)

Implementation

static XdrRestoreFootprintResult decode(XdrDataInputStream stream) {
  XdrRestoreFootprintResult decoded =
      XdrRestoreFootprintResult(XdrRestoreFootprintResultCode.decode(stream));
  switch (decoded.discriminant) {
    case XdrRestoreFootprintResultCode.RESTORE_FOOTPRINT_SUCCESS:
    case XdrRestoreFootprintResultCode.RESTORE_FOOTPRINT_MALFORMED:
    case XdrRestoreFootprintResultCode
          .RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED:
    case XdrRestoreFootprintResultCode
          .RESTORE_FOOTPRINT_INSUFFICIENT_REFUNDABLE_FEE:
      break;
    default:
      break;
  }
  return decoded;
}