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;

                default:
                    break;
                }
                return(decodedManageOfferSuccessResultOffer);
            }
Ejemplo n.º 2
0
 public static void Encode(XdrDataOutputStream stream, ManageOfferEffect value)
 {
     stream.WriteInt((int)value.InnerValue);
 }