|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.gotoandplay.smartfoxserver.data.UserVariable
it.gotoandplay.smartfoxserver.data.RoomVariable
public class RoomVariable
The RoomVariable object stores the properties of each Room Variables of a Room object.
For a detailed overview of the Room and Room Variables check this tutorial.
| Field Summary |
|---|
| Fields inherited from class it.gotoandplay.smartfoxserver.data.UserVariable |
|---|
TYPE_BOOLEAN, TYPE_NULL, TYPE_NUMBER, TYPE_STRING |
| Constructor Summary | |
|---|---|
RoomVariable(java.lang.String value,
java.lang.String type,
User owner,
boolean persistent,
boolean priv)
Default constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks if two variables are the same (overrides parent java.lang.Object method) |
User |
getOwner()
|
boolean |
isPersistent()
|
boolean |
isPrivate()
|
void |
setOwner(User who)
Set the variable owner |
void |
setPersistent(boolean b)
Set the persistent flag |
void |
setPrivate(boolean b)
Set the private flag |
java.lang.String |
toString()
|
| Methods inherited from class it.gotoandplay.smartfoxserver.data.UserVariable |
|---|
getBooleanValue, getDoubleValue, getIntValue, getType, getValue, setType, setValue, setValue, setValue, setValue |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoomVariable(java.lang.String value,
java.lang.String type,
User owner,
boolean persistent,
boolean priv)
value - valuetype - type, can be:owner - the user who created the variable, if null the Server is the ownerpersistent - persistent flagpriv - private flag| Method Detail |
|---|
public boolean isPersistent()
public User getOwner()
public boolean isPrivate()
public void setPersistent(boolean b)
b - public void setPrivate(boolean b)
b - public void setOwner(User who)
who - the ownerpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||