source: timeline/src/main/java/geniusweb/deadline/Deadline.java@ 52

Last change on this file since 52 was 52, checked in by ruud, 20 months ago

Fixed small issues in domaineditor.

File size: 971 bytes
Line 
1package geniusweb.deadline;
2
3import com.fasterxml.jackson.annotation.JsonAutoDetect;
4import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
5import com.fasterxml.jackson.annotation.JsonSubTypes;
6import com.fasterxml.jackson.annotation.JsonTypeInfo;
7import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
8
9/**
10 * Deadline indicates how long a session will be allowed to run. So it contains
11 * "relative" data (relative to the unknown start time of the session)
12 *
13 */
14@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.WRAPPER_OBJECT)
15@JsonSubTypes({ @JsonSubTypes.Type(value = DeadlineRounds.class),
16 @JsonSubTypes.Type(value = DeadlineTime.class) })
17@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE)
18public interface Deadline {
19 /**
20 *
21 * @return the duration of this deadline, measured in milliseconds
22 */
23 public Long getDuration();
24
25}
Note: See TracBrowser for help on using the repository browser.