public class PlayerSession
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Properties describing a player session.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
creationTime
Time stamp indicating when this object was created.
|
private java.lang.String |
fleetId
Unique identifier for a fleet.
|
private java.lang.String |
gameSessionId
Unique identifier for a game session.
|
private java.lang.String |
ipAddress
Game session IP address.
|
private java.lang.String |
playerId
Unique identifier for a player.
|
private java.lang.String |
playerSessionId
Unique identifier for a player session.
|
private java.lang.String |
status
Current status of the player session.
|
private java.util.Date |
terminationTime
Time stamp indicating when this fleet was terminated.
|
Constructor and Description |
---|
PlayerSession() |
Modifier and Type | Method and Description |
---|---|
PlayerSession |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationTime()
Time stamp indicating when this object was created.
|
java.lang.String |
getFleetId()
Unique identifier for a fleet.
|
java.lang.String |
getGameSessionId()
Unique identifier for a game session.
|
java.lang.String |
getIpAddress()
Game session IP address.
|
java.lang.String |
getPlayerId()
Unique identifier for a player.
|
java.lang.String |
getPlayerSessionId()
Unique identifier for a player session.
|
java.lang.String |
getStatus()
Current status of the player session.
|
java.util.Date |
getTerminationTime()
Time stamp indicating when this fleet was terminated.
|
int |
hashCode() |
void |
setCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created.
|
void |
setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
void |
setGameSessionId(java.lang.String gameSessionId)
Unique identifier for a game session.
|
void |
setIpAddress(java.lang.String ipAddress)
Game session IP address.
|
void |
setPlayerId(java.lang.String playerId)
Unique identifier for a player.
|
void |
setPlayerSessionId(java.lang.String playerSessionId)
Unique identifier for a player session.
|
void |
setStatus(PlayerSessionStatus status)
Current status of the player session.
|
void |
setStatus(java.lang.String status)
Current status of the player session.
|
void |
setTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PlayerSession |
withCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created.
|
PlayerSession |
withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
PlayerSession |
withGameSessionId(java.lang.String gameSessionId)
Unique identifier for a game session.
|
PlayerSession |
withIpAddress(java.lang.String ipAddress)
Game session IP address.
|
PlayerSession |
withPlayerId(java.lang.String playerId)
Unique identifier for a player.
|
PlayerSession |
withPlayerSessionId(java.lang.String playerSessionId)
Unique identifier for a player session.
|
PlayerSession |
withStatus(PlayerSessionStatus status)
Current status of the player session.
|
PlayerSession |
withStatus(java.lang.String status)
Current status of the player session.
|
PlayerSession |
withTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated.
|
private java.lang.String playerSessionId
Unique identifier for a player session.
private java.lang.String playerId
Unique identifier for a player.
private java.lang.String gameSessionId
Unique identifier for a game session.
private java.lang.String fleetId
Unique identifier for a fleet.
private java.util.Date creationTime
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
private java.util.Date terminationTime
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
private java.lang.String status
Current status of the player session. Possible player session states include:
private java.lang.String ipAddress
Game session IP address. All player sessions reference the game session location.
public void setPlayerSessionId(java.lang.String playerSessionId)
Unique identifier for a player session.
playerSessionId
- Unique identifier for a player session.public java.lang.String getPlayerSessionId()
Unique identifier for a player session.
public PlayerSession withPlayerSessionId(java.lang.String playerSessionId)
Unique identifier for a player session.
playerSessionId
- Unique identifier for a player session.public void setPlayerId(java.lang.String playerId)
Unique identifier for a player.
playerId
- Unique identifier for a player.public java.lang.String getPlayerId()
Unique identifier for a player.
public PlayerSession withPlayerId(java.lang.String playerId)
Unique identifier for a player.
playerId
- Unique identifier for a player.public void setGameSessionId(java.lang.String gameSessionId)
Unique identifier for a game session.
gameSessionId
- Unique identifier for a game session.public java.lang.String getGameSessionId()
Unique identifier for a game session.
public PlayerSession withGameSessionId(java.lang.String gameSessionId)
Unique identifier for a game session.
gameSessionId
- Unique identifier for a game session.public void setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public java.lang.String getFleetId()
Unique identifier for a fleet.
public PlayerSession withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public void setCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
creationTime
- Time stamp indicating when this object was created. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public java.util.Date getCreationTime()
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
public PlayerSession withCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
creationTime
- Time stamp indicating when this object was created. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public void setTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
terminationTime
- Time stamp indicating when this fleet was terminated. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public java.util.Date getTerminationTime()
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
public PlayerSession withTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
terminationTime
- Time stamp indicating when this fleet was terminated. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public void setStatus(java.lang.String status)
Current status of the player session. Possible player session states include:
status
- Current status of the player session. Possible player session
states include:
PlayerSessionStatus
public java.lang.String getStatus()
Current status of the player session. Possible player session states include:
PlayerSessionStatus
public PlayerSession withStatus(java.lang.String status)
Current status of the player session. Possible player session states include:
status
- Current status of the player session. Possible player session
states include:
PlayerSessionStatus
public void setStatus(PlayerSessionStatus status)
Current status of the player session. Possible player session states include:
status
- Current status of the player session. Possible player session
states include:
PlayerSessionStatus
public PlayerSession withStatus(PlayerSessionStatus status)
Current status of the player session. Possible player session states include:
status
- Current status of the player session. Possible player session
states include:
PlayerSessionStatus
public void setIpAddress(java.lang.String ipAddress)
Game session IP address. All player sessions reference the game session location.
ipAddress
- Game session IP address. All player sessions reference the game
session location.public java.lang.String getIpAddress()
Game session IP address. All player sessions reference the game session location.
public PlayerSession withIpAddress(java.lang.String ipAddress)
Game session IP address. All player sessions reference the game session location.
ipAddress
- Game session IP address. All player sessions reference the game
session location.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PlayerSession clone()
clone
in class java.lang.Object