From c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Fri, 3 Jan 2020 10:47:21 +0100 Subject: api implementation --- src/org/uic/ticket/api/impl/SimpleTimeRange.java | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/org/uic/ticket/api/impl/SimpleTimeRange.java (limited to 'src/org/uic/ticket/api/impl/SimpleTimeRange.java') diff --git a/src/org/uic/ticket/api/impl/SimpleTimeRange.java b/src/org/uic/ticket/api/impl/SimpleTimeRange.java new file mode 100644 index 0000000..f42b637 --- /dev/null +++ b/src/org/uic/ticket/api/impl/SimpleTimeRange.java @@ -0,0 +1,56 @@ +package org.uic.ticket.api.impl; + + + +import org.uic.ticket.api.spec.ITimeRange; + +public class SimpleTimeRange implements ITimeRange { + + int fromTime = 0; + int untilTime = 1440; + + @Override + public int getFromTime() { + return fromTime; + } + + @Override + public int getUntilTime() { + return untilTime; + } + + @Override + public void setFromTime(int minutes) { + this.fromTime = minutes; + } + + @Override + public void setUntilTime(int minutes) { + this.untilTime = minutes; + } + + /** The valid from utc coffset. */ + protected Long validFromUTCoffset; + + /** The valid until utc coffset. */ + protected Long validUntilUTCoffset; + + public Long getValidFromUTCoffset() { + return validFromUTCoffset; + } + + public void setValidFromUTCoffset(Long validFromUTCoffset) { + this.validFromUTCoffset = validFromUTCoffset; + } + + public Long getValidUntilUTCoffset() { + return validUntilUTCoffset; + } + + public void setValidUntilUTCoffset(Long validUntilUTCoffset) { + this.validUntilUTCoffset = validUntilUTCoffset; + } + + + +} -- cgit v1.2.3