Class DirectoryRecord
- java.lang.Object
-
- de.extio.spacecraft.shared.model.metaserver.DirectoryRecord
-
public final class DirectoryRecord extends Object
Represents a record in the directory for game sessions
-
-
Constructor Summary
Constructors Constructor Description DirectoryRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<DirectoryRecord>
fromReport(String report)
String
getGameMode()
String
getIp()
List<DirectoryModInfo>
getModInfos()
String
getName()
Integer
getPlayers()
String
getQuickJoinCode()
String
getSecret()
String
getStatus()
UUID
getUuid()
boolean
isDedicated()
boolean
isOfficial()
boolean
isPasswordProtected()
boolean
isPrivate_()
void
report(StringBuilder sb, boolean includeSecret)
void
setDedicated(boolean dedicated)
void
setGameMode(String gameMode)
void
setIp(String ip)
void
setModInfos(List<DirectoryModInfo> modInfos)
void
setName(String name)
void
setOfficial(boolean official)
void
setPasswordProtected(boolean passwordProtected)
void
setPlayers(Integer players)
void
setPrivate_(boolean private_)
void
setQuickJoinCode(String quickJoinCode)
void
setSecret(String secret)
void
setStatus(String status)
void
setUuid(UUID uuid)
String
toString()
-
-
-
Field Detail
-
SEP_PROP
public static final char SEP_PROP
- See Also:
- Constant Field Values
-
SEP_COL
public static final char SEP_COL
- See Also:
- Constant Field Values
-
SEP_ROW
public static final char SEP_ROW
- See Also:
- Constant Field Values
-
-
Method Detail
-
report
public void report(StringBuilder sb, boolean includeSecret)
-
fromReport
public static List<DirectoryRecord> fromReport(String report)
-
getUuid
public UUID getUuid()
-
setUuid
public void setUuid(UUID uuid)
-
getSecret
public String getSecret()
-
setSecret
public void setSecret(String secret)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getIp
public String getIp()
-
setIp
public void setIp(String ip)
-
getStatus
public String getStatus()
-
setStatus
public void setStatus(String status)
-
getPlayers
public Integer getPlayers()
-
setPlayers
public void setPlayers(Integer players)
-
getQuickJoinCode
public String getQuickJoinCode()
-
setQuickJoinCode
public void setQuickJoinCode(String quickJoinCode)
-
isPrivate_
public boolean isPrivate_()
-
setPrivate_
public void setPrivate_(boolean private_)
-
getModInfos
public List<DirectoryModInfo> getModInfos()
-
setModInfos
public void setModInfos(List<DirectoryModInfo> modInfos)
-
isDedicated
public boolean isDedicated()
-
setDedicated
public void setDedicated(boolean dedicated)
-
isPasswordProtected
public boolean isPasswordProtected()
-
setPasswordProtected
public void setPasswordProtected(boolean passwordProtected)
-
isOfficial
public boolean isOfficial()
-
setOfficial
public void setOfficial(boolean official)
-
getGameMode
public String getGameMode()
-
setGameMode
public void setGameMode(String gameMode)
-
-