public static ManageSellOfferOp Decode(XdrDataInputStream stream)
        {
            ManageSellOfferOp decodedManageSellOfferOp = new ManageSellOfferOp();

            decodedManageSellOfferOp.Selling = Asset.Decode(stream);
            decodedManageSellOfferOp.Buying  = Asset.Decode(stream);
            decodedManageSellOfferOp.Amount  = Int64.Decode(stream);
            decodedManageSellOfferOp.Price   = Price.Decode(stream);
            decodedManageSellOfferOp.OfferID = Int64.Decode(stream);
            return(decodedManageSellOfferOp);
        }
Esempio n. 2
0
        public static OfferEntry Decode(XdrDataInputStream stream)
        {
            OfferEntry decodedOfferEntry = new OfferEntry();

            decodedOfferEntry.SellerID = AccountID.Decode(stream);
            decodedOfferEntry.OfferID  = Int64.Decode(stream);
            decodedOfferEntry.Selling  = Asset.Decode(stream);
            decodedOfferEntry.Buying   = Asset.Decode(stream);
            decodedOfferEntry.Amount   = Int64.Decode(stream);
            decodedOfferEntry.Price    = Price.Decode(stream);
            decodedOfferEntry.Flags    = Uint32.Decode(stream);
            decodedOfferEntry.Ext      = OfferEntryExt.Decode(stream);
            return(decodedOfferEntry);
        }