class Timer extends io.github.amyassist.amy.utility.rest.Entity implements RegistryEntity {

	public Duration getRemainingTime() {
		if (this.active) {
			LocalDateTime current = LocalDateTime.now();
			LocalDateTime future = this.getTimerTime();
			return (Duration.ofMillis(current.until(future, ChronoUnit.MILLIS)));
		}
		return this.remainingTime;
	}

	public  Timer();
	public  Timer(int id, LocalDateTime timerTime, Duration remainingTime, boolean active);

}