public static BeginSponsoringFutureReservesResult Decode(XdrDataInputStream stream)
        {
            BeginSponsoringFutureReservesResult     decodedBeginSponsoringFutureReservesResult = new BeginSponsoringFutureReservesResult();
            BeginSponsoringFutureReservesResultCode discriminant = BeginSponsoringFutureReservesResultCode.Decode(stream);

            decodedBeginSponsoringFutureReservesResult.Discriminant = discriminant;
            switch (decodedBeginSponsoringFutureReservesResult.Discriminant.InnerValue)
            {
            case BeginSponsoringFutureReservesResultCode.BeginSponsoringFutureReservesResultCodeEnum.BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedBeginSponsoringFutureReservesResult);
        }
Esempio n. 2
0
 public static void Encode(XdrDataOutputStream stream, BeginSponsoringFutureReservesResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }