public static ClaimClaimableBalanceResult Decode(XdrDataInputStream stream)
        {
            ClaimClaimableBalanceResult     decodedClaimClaimableBalanceResult = new ClaimClaimableBalanceResult();
            ClaimClaimableBalanceResultCode discriminant = ClaimClaimableBalanceResultCode.Decode(stream);

            decodedClaimClaimableBalanceResult.Discriminant = discriminant;
            switch (decodedClaimClaimableBalanceResult.Discriminant.InnerValue)
            {
            case ClaimClaimableBalanceResultCode.ClaimClaimableBalanceResultCodeEnum.CLAIM_CLAIMABLE_BALANCE_SUCCESS:
                break;

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