Created
February 3, 2012 02:41
-
-
Save ThomasGaubert/1727297 to your computer and use it in GitHub Desktop.
RoketGamer API - Preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.roketgamer.net; | |
import java.util.ArrayList; | |
public class ServerStatusListener { | |
private static ArrayList<ServerStatusListener> listeners = new ArrayList<ServerStatusListener>(); | |
/** | |
* Constructs <code>ServerStatusListener</code> object | |
*/ | |
public ServerStatusListener() { | |
listeners.add(this); | |
} | |
/** | |
* Run when server is offline | |
*/ | |
public void onServerOffline() { | |
} | |
/** | |
* Run when server is online | |
*/ | |
public void onServerOnline() { | |
} | |
/** | |
* Returns all instances of ServerStatusListener | |
* @return ArrayList<ServerStatusListener> | |
*/ | |
public static ArrayList<ServerStatusListener> getListeners() { | |
return listeners; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment