forked from External/mage
UI fixes - can now play simultaneous games
This commit is contained in:
parent
7e00b5cc25
commit
4f06f78621
31 changed files with 323 additions and 291 deletions
|
|
@ -29,26 +29,29 @@
|
|||
package mage.interfaces.callback;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class ClientCallback implements Serializable {
|
||||
|
||||
|
||||
private UUID objectId;
|
||||
private Object data;
|
||||
private String method;
|
||||
private int messageId;
|
||||
|
||||
public ClientCallback() {}
|
||||
|
||||
public ClientCallback(String method, Object data) {
|
||||
public ClientCallback(String method, UUID objectId, Object data) {
|
||||
this.method = method;
|
||||
this.objectId = objectId;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ClientCallback(String method) {
|
||||
this(method, null);
|
||||
public ClientCallback(String method, UUID objectId) {
|
||||
this(method, objectId, null);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
|
|
@ -56,6 +59,14 @@ public class ClientCallback implements Serializable {
|
|||
data = null;
|
||||
}
|
||||
|
||||
public UUID getObjectId() {
|
||||
return objectId;
|
||||
}
|
||||
|
||||
public void setObjectId(UUID objectId) {
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue