Esempio n. 1
0
        public static ClaimClaimableBalanceOp Decode(XdrDataInputStream stream)
        {
            ClaimClaimableBalanceOp decodedClaimClaimableBalanceOp = new ClaimClaimableBalanceOp();

            decodedClaimClaimableBalanceOp.BalanceID = ClaimableBalanceID.Decode(stream);
            return(decodedClaimClaimableBalanceOp);
        }
Esempio n. 2
0
            public static LedgerKeyClaimableBalance Decode(XdrDataInputStream stream)
            {
                LedgerKeyClaimableBalance decodedLedgerKeyClaimableBalance = new LedgerKeyClaimableBalance();

                decodedLedgerKeyClaimableBalance.BalanceID = ClaimableBalanceID.Decode(stream);
                return(decodedLedgerKeyClaimableBalance);
            }
Esempio n. 3
0
        public static CreateClaimableBalanceResult Decode(XdrDataInputStream stream)
        {
            CreateClaimableBalanceResult     decodedCreateClaimableBalanceResult = new CreateClaimableBalanceResult();
            CreateClaimableBalanceResultCode discriminant = CreateClaimableBalanceResultCode.Decode(stream);

            decodedCreateClaimableBalanceResult.Discriminant = discriminant;
            switch (decodedCreateClaimableBalanceResult.Discriminant.InnerValue)
            {
            case CreateClaimableBalanceResultCode.CreateClaimableBalanceResultCodeEnum.CREATE_CLAIMABLE_BALANCE_SUCCESS:
                decodedCreateClaimableBalanceResult.BalanceID = ClaimableBalanceID.Decode(stream);
                break;

            default:
                break;
            }
            return(decodedCreateClaimableBalanceResult);
        }
        public static ClaimableBalanceEntry Decode(XdrDataInputStream stream)
        {
            ClaimableBalanceEntry decodedClaimableBalanceEntry = new ClaimableBalanceEntry();

            decodedClaimableBalanceEntry.BalanceID = ClaimableBalanceID.Decode(stream);
            int claimantssize = stream.ReadInt();

            decodedClaimableBalanceEntry.Claimants = new Claimant[claimantssize];
            for (int i = 0; i < claimantssize; i++)
            {
                decodedClaimableBalanceEntry.Claimants[i] = Claimant.Decode(stream);
            }
            decodedClaimableBalanceEntry.Asset  = Asset.Decode(stream);
            decodedClaimableBalanceEntry.Amount = Int64.Decode(stream);
            decodedClaimableBalanceEntry.Ext    = ClaimableBalanceEntryExt.Decode(stream);
            return(decodedClaimableBalanceEntry);
        }