Beispiel #1
0
        public static AllowTrustResult Decode(XdrDataInputStream stream)
        {
            AllowTrustResult     decodedAllowTrustResult = new AllowTrustResult();
            AllowTrustResultCode discriminant            = AllowTrustResultCode.Decode(stream);

            decodedAllowTrustResult.Discriminant = discriminant;
            switch (decodedAllowTrustResult.Discriminant.InnerValue)
            {
            case AllowTrustResultCode.AllowTrustResultCodeEnum.ALLOW_TRUST_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedAllowTrustResult);
        }
 public static void Encode(XdrDataOutputStream stream, AllowTrustResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }