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); }
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); }
public static void Encode(IByteWriter stream, ManageOfferEffect value) { XdrEncoding.EncodeInt32((int)value.InnerValue, stream); }
public static void Encode(IByteWriter stream, ManageOfferEffect value) { XdrEncoding.EncodeInt32((int)value.InnerValue, stream); }