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);
        }
예제 #2
0
 public static void Encode(XdrDataOutputStream stream, ManageOfferResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }