org.jogre.common.comm
Class CommRequestData
java.lang.Object
org.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommRequestData
- All Implemented Interfaces:
- ITransmittable
- public class CommRequestData
- extends CommGameMessage
Communication class for a client requesting data.
- Version:
- Alpha 0.2.3
- Author:
- Bob Marks
XML_ATT_DATA_TYPE
public static final String XML_ATT_DATA_TYPE
- See Also:
- Constant Field Values
CommRequestData
public CommRequestData(String dataType)
- Constructor for a requesting data. This can be either
"game" (Game), "table_list" (TableList) or "user_list"
(UserList).
CommRequestData
public CommRequestData(XMLElement message)
throws TransmissionException
- Constructor which takes an XMLElement.
- Parameters:
message
-
- Throws:
TransmissionException
getDataType
public String getDataType()
- Return the data type that the user wishes to receive.
- Returns:
- Data type.
flatten
public XMLElement flatten()
- Flatten the object into an XMLElement.
- Returns:
- XML version of the state of an object which can be constructed again.
- See Also:
ITransmittable.flatten()