Пример #1
0
            public static ManageOfferSuccessResultOffer Decode(IByteReader stream)
            {
                ManageOfferSuccessResultOffer decodedManageOfferSuccessResultOffer = new ManageOfferSuccessResultOffer();

                decodedManageOfferSuccessResultOffer.Discriminant = ManageOfferEffect.Decode(stream);
                switch (decodedManageOfferSuccessResultOffer.Discriminant.InnerValue)
                {
                case ManageOfferEffect.ManageOfferEffectEnum.MANAGE_OFFER_CREATED:
                case ManageOfferEffect.ManageOfferEffectEnum.MANAGE_OFFER_UPDATED:
                    decodedManageOfferSuccessResultOffer.Offer = OfferEntry.Decode(stream);
                    break;

                default:
                    break;
                }
                return(decodedManageOfferSuccessResultOffer);
            }
Пример #2
0
            public static ManageOfferSuccessResultOffer Decode(XdrDataInputStream stream)
            {
                ManageOfferSuccessResultOffer decodedManageOfferSuccessResultOffer =
                    new ManageOfferSuccessResultOffer();
                ManageOfferEffect discriminant = ManageOfferEffect.Decode(stream);

                decodedManageOfferSuccessResultOffer.Discriminant = discriminant;

                switch (decodedManageOfferSuccessResultOffer.Discriminant.InnerValue)
                {
                case ManageOfferEffect.ManageOfferEffectEnum.MANAGE_OFFER_CREATED:
                case ManageOfferEffect.ManageOfferEffectEnum.MANAGE_OFFER_UPDATED:
                    decodedManageOfferSuccessResultOffer.Offer = OfferEntry.Decode(stream);
                    break;
                }

                return(decodedManageOfferSuccessResultOffer);
            }