source: geniuswebcore/geniusweb/deadline/Deadline.py@ 74

Last change on this file since 74 was 73, checked in by Bart Vastenhouw, 3 years ago

Fix for IssueValue hashcode.

File size: 607 bytes
Line 
1
2from pyson.JsonSubTypes import JsonSubTypes
3from pyson.JsonTypeInfo import JsonTypeInfo, As, Id
4
5from abc import ABC, abstractmethod
6
7@JsonTypeInfo(use = Id.NAME, include = As.WRAPPER_OBJECT)
8@JsonSubTypes( ["geniusweb.deadline.DeadlineRounds.DeadlineRounds","geniusweb.deadline.DeadlineTime.DeadlineTime" ])
9class Deadline(ABC):
10 '''
11 Deadline indicates how long a session will be allowed to run. So it contains
12 "relative" data (relative to the unknown start time of the session)
13 '''
14 @abstractmethod
15 def getDuration(self):
16 '''
17 @return the duration of this deadline, measured in milliseconds
18 '''
Note: See TracBrowser for help on using the repository browser.