public static ManageOfferResult Decode(XdrDataInputStream stream) { ManageOfferResult decodedManageOfferResult = new ManageOfferResult(); ManageOfferResultCode discriminant = ManageOfferResultCode.Decode(stream); decodedManageOfferResult.Discriminant = discriminant; switch (decodedManageOfferResult.Discriminant.InnerValue) { case ManageOfferResultCode.ManageOfferResultCodeEnum.MANAGE_OFFER_SUCCESS: decodedManageOfferResult.Success = ManageOfferSuccessResult.Decode(stream); break; default: break; } return(decodedManageOfferResult); }
public static void Encode(XdrDataOutputStream stream, ManageOfferResultCode value) { stream.WriteInt((int)value.InnerValue); }