Ejemplo n.º 1
0
        public static void Encode(XdrDataOutputStream stream, CreateClaimableBalanceResult encodedCreateClaimableBalanceResult)
        {
            stream.WriteInt((int)encodedCreateClaimableBalanceResult.Discriminant.InnerValue);
            switch (encodedCreateClaimableBalanceResult.Discriminant.InnerValue)
            {
            case CreateClaimableBalanceResultCode.CreateClaimableBalanceResultCodeEnum.CREATE_CLAIMABLE_BALANCE_SUCCESS:
                ClaimableBalanceID.Encode(stream, encodedCreateClaimableBalanceResult.BalanceID);
                break;

            default:
                break;
            }
        }
        public static void Encode(XdrDataOutputStream stream, ClaimableBalanceEntry encodedClaimableBalanceEntry)
        {
            ClaimableBalanceID.Encode(stream, encodedClaimableBalanceEntry.BalanceID);
            int claimantssize = encodedClaimableBalanceEntry.Claimants.Length;

            stream.WriteInt(claimantssize);
            for (int i = 0; i < claimantssize; i++)
            {
                Claimant.Encode(stream, encodedClaimableBalanceEntry.Claimants[i]);
            }
            Asset.Encode(stream, encodedClaimableBalanceEntry.Asset);
            Int64.Encode(stream, encodedClaimableBalanceEntry.Amount);
            ClaimableBalanceEntryExt.Encode(stream, encodedClaimableBalanceEntry.Ext);
        }
Ejemplo n.º 3
0
 public static void Encode(XdrDataOutputStream stream, ClaimClaimableBalanceOp encodedClaimClaimableBalanceOp)
 {
     ClaimableBalanceID.Encode(stream, encodedClaimClaimableBalanceOp.BalanceID);
 }
Ejemplo n.º 4
0
 public static void Encode(XdrDataOutputStream stream, LedgerKeyClaimableBalance encodedLedgerKeyClaimableBalance)
 {
     ClaimableBalanceID.Encode(stream, encodedLedgerKeyClaimableBalance.BalanceID);
 }