Exemplo n.º 1
0
                public static TrustLineEntryV1 Decode(XdrDataInputStream stream)
                {
                    TrustLineEntryV1 decodedTrustLineEntryV1 = new TrustLineEntryV1();

                    decodedTrustLineEntryV1.Liabilities = Liabilities.Decode(stream);
                    decodedTrustLineEntryV1.Ext         = TrustLineEntryV1Ext.Decode(stream);
                    return(decodedTrustLineEntryV1);
                }
Exemplo n.º 2
0
        public static AccountEntryExtensionV1 Decode(XdrDataInputStream stream)
        {
            AccountEntryExtensionV1 decodedAccountEntryExtensionV1 = new AccountEntryExtensionV1();

            decodedAccountEntryExtensionV1.Liabilities = Liabilities.Decode(stream);
            decodedAccountEntryExtensionV1.Ext         = AccountEntryExtensionV1Ext.Decode(stream);
            return(decodedAccountEntryExtensionV1);
        }
Exemplo n.º 3
0
        public static Liabilities Decode(XdrDataInputStream stream)
        {
            Liabilities decodedLiabilities = new Liabilities();

            decodedLiabilities.Buying  = Int64.Decode(stream);
            decodedLiabilities.Selling = Int64.Decode(stream);
            return(decodedLiabilities);
        }
Exemplo n.º 4
0
 public static void Encode(XdrDataOutputStream stream, TrustLineEntryV1 encodedTrustLineEntryV1)
 {
     Liabilities.Encode(stream, encodedTrustLineEntryV1.Liabilities);
     TrustLineEntryV1Ext.Encode(stream, encodedTrustLineEntryV1.Ext);
 }
Exemplo n.º 5
0
 public static void Encode(XdrDataOutputStream stream, AccountEntryExtensionV1 encodedAccountEntryExtensionV1)
 {
     Liabilities.Encode(stream, encodedAccountEntryExtensionV1.Liabilities);
     AccountEntryExtensionV1Ext.Encode(stream, encodedAccountEntryExtensionV1.Ext);
 }
Exemplo n.º 6
0
 public static void Encode(XdrDataOutputStream stream, Liabilities encodedLiabilities)
 {
     Int64.Encode(stream, encodedLiabilities.Buying);
     Int64.Encode(stream, encodedLiabilities.Selling);
 }