forked from External/mage
Mage.Stats WS module for getting server stats in json format
This commit is contained in:
parent
78c0d76088
commit
71614becc2
43 changed files with 1587 additions and 0 deletions
25
Mage.Stats/src/main/java/com/xmage/ws/resource/Resource.java
Normal file
25
Mage.Stats/src/main/java/com/xmage/ws/resource/Resource.java
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package com.xmage.ws.resource;
|
||||
|
||||
import com.xmage.core.decorators.Decorator;
|
||||
import net.minidev.json.JSONObject;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public interface Resource<R> {
|
||||
|
||||
int getError();
|
||||
|
||||
String getErrorMessage();
|
||||
|
||||
String getName();
|
||||
|
||||
JSONObject getJSONBody();
|
||||
|
||||
R getDefault();
|
||||
|
||||
java.util.List<Decorator> getDecorators();
|
||||
|
||||
void addDecorator(Decorator decorator);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue