@@ -0,0 +1,1014 @@
+package api.whatstatus;%0A%0Aimport api.son.MySon;%0A%0A/**%0A * Get information about the various site service uptime in hours%0A * using the whatstatus API%0A */%0Apublic class WhatUptime %7B%0A%09/**%0A%09 * The irc.%0A%09 */%0A%09private String irc;%0A%0A%09/**%0A%09 * The site.%0A%09 */%0A%09private String site;%0A%0A%09/**%0A%09 * The tracker.%0A%09 */%0A%09private String tracker;%0A%0A%09/**%0A%09 * Load the WhatStatus information%0A%09 *%0A%09 * @return the what status%0A%09 */%0A%09public static WhatUptime uptime()%7B%0A%09%09String url = %22https://whatstatus.info/api/uptime%22;%0A%09%09return (WhatUptime)MySon.toObjectOther(url, WhatUptime.class);%0A%09%7D%0A%0A%09/**%0A%09 * Get the site uptime in hours%0A%09 */%0A%09public Integer site()%7B%0A%09%09return Integer.parseInt(site);%0A%09%7D%0A%0A%09/**%0A%09 * Get the IRC uptime in hours%0A%09 */%0A%09public Integer irc()%7B%0A%09%09return Integer.parseInt(irc);%0A%09%7D%0A%0A%09/**%0A%09 * Get the tracker uptime in hours%0A%09 */%0A%09public Integer tracker()%7B%0A%09%09return Integer.parseInt(tracker);%0A%09%7D%0A%0A%09@Override%0A%09public String toString()%7B%0A%09%09return %22Status %5BgetIrc()=%22 + irc + %22, getSite()=%22 + site + %22, getTracker()=%22 + tracker + %22%5D%22;%0A%09%7D%0A%7D%0A

Add support for the uptime API on whatstatus