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); }
public static TimeBounds FromXdr(xdr.TimeBounds timeBounds) { if (timeBounds == null) { return(null); } return(new TimeBounds( timeBounds.MinTime.InnerValue, timeBounds.MaxTime.InnerValue )); }