public static EndSponsoringFutureReservesResult Decode(XdrDataInputStream stream)
        {
            EndSponsoringFutureReservesResult     decodedEndSponsoringFutureReservesResult = new EndSponsoringFutureReservesResult();
            EndSponsoringFutureReservesResultCode discriminant = EndSponsoringFutureReservesResultCode.Decode(stream);

            decodedEndSponsoringFutureReservesResult.Discriminant = discriminant;
            switch (decodedEndSponsoringFutureReservesResult.Discriminant.InnerValue)
            {
            case EndSponsoringFutureReservesResultCode.EndSponsoringFutureReservesResultCodeEnum.END_SPONSORING_FUTURE_RESERVES_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedEndSponsoringFutureReservesResult);
        }
예제 #2
0
 public static void Encode(XdrDataOutputStream stream, EndSponsoringFutureReservesResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }