Description: Contains informations about Codeforces Contests. GYM contests are ignored here.
Note: Some of the data might be absent as stated in the official documentation here. Thus, some methods may return nothing (e.g., empty strings, 0)
Returns | Method | Description |
---|---|---|
CFContest(JSONObject ob) |
Constructor Collects and saves informations from given JSON data |
|
int |
getId() |
Returns id of the contest |
String |
getName() |
Returns name of the contest |
long |
getDurationdurationSeconds() |
Returns duration of the contest |
long |
getStartTimeSeconds() |
Returns start time of the contest |
long |
getRelativeTimeSeconds() |
Returns relative start time of the contest |
String |
getPreparedBy() |
Returns handle of the user who created the contest |
String |
getWebsiteUrl() |
Link the contest |
String |
getType() |
Type of the contest. Possible Types are: "CF", "IOI", "ICPC" |
String |
getType() |
Phase of the contest. Possible Phases are: "BEFORE", "CODING", "PENDING_SYSTEM_TEST", "SYSTEM_TEST", "FINISHED" |
String |
toString() |
Returns name of the contest |