public static ClawbackClaimableBalanceResult Decode(XdrDataInputStream stream)
        {
            ClawbackClaimableBalanceResult     decodedClawbackClaimableBalanceResult = new ClawbackClaimableBalanceResult();
            ClawbackClaimableBalanceResultCode discriminant = ClawbackClaimableBalanceResultCode.Decode(stream);

            decodedClawbackClaimableBalanceResult.Discriminant = discriminant;
            switch (decodedClawbackClaimableBalanceResult.Discriminant.InnerValue)
            {
            case ClawbackClaimableBalanceResultCode.ClawbackClaimableBalanceResultCodeEnum.CLAWBACK_CLAIMABLE_BALANCE_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedClawbackClaimableBalanceResult);
        }
Example #2
0
 public static void Encode(XdrDataOutputStream stream, ClawbackClaimableBalanceResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }