net.jetrix.agent
Class QueryInfo

java.lang.Object
  extended by net.jetrix.agent.QueryInfo

public class QueryInfo
extends Object

Information about a tetrinet server retrieved through the query protocol.

Version:
$Revision: 587 $, $Date: 2005-01-12 19:47:40 +0100 (mer., 12 janv. 2005) $
Author:
Emmanuel Bourg

Constructor Summary
QueryInfo()
           
 
Method Summary
 List getChannels()
           
 String getHostname()
           
 long getPing()
           
 List<PlayerInfo> getPlayers()
           
 List getPlayers(String channel)
          Return the list of players in the specified channel.
 String getVersion()
          Return the version of the server.
 void setChannels(List<ChannelInfo> channels)
           
 void setHostname(String hostname)
           
 void setPing(long ping)
           
 void setPlayers(List<PlayerInfo> players)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryInfo

public QueryInfo()
Method Detail

getHostname

public String getHostname()

setHostname

public void setHostname(String hostname)

getVersion

public String getVersion()
Return the version of the server.


setVersion

public void setVersion(String version)

getPlayers

public List<PlayerInfo> getPlayers()

setPlayers

public void setPlayers(List<PlayerInfo> players)

getPlayers

public List getPlayers(String channel)
Return the list of players in the specified channel.

Parameters:
channel - the name of the channel

getChannels

public List getChannels()

setChannels

public void setChannels(List<ChannelInfo> channels)

getPing

public long getPing()

setPing

public void setPing(long ping)


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.