예제 #1
0
        public xdr.TimeBounds ToXdr()
        {
            xdr.TimeBounds timeBounds = new xdr.TimeBounds();
            Uint64         minTime    = new Uint64();
            Uint64         maxTime    = new Uint64();

            minTime.InnerValue = MinTime;
            maxTime.InnerValue = MaxTime;
            timeBounds.MinTime = minTime;
            timeBounds.MaxTime = maxTime;
            return(timeBounds);
        }
예제 #2
0
        public static TimeBounds FromXdr(xdr.TimeBounds timeBounds)
        {
            if (timeBounds == null)
            {
                return(null);
            }

            return(new TimeBounds(
                       timeBounds.MinTime.InnerValue,
                       timeBounds.MaxTime.InnerValue
                       ));
        }