public class PlayerSession extends AbstractModel
| Constructor and Description | 
|---|
| PlayerSession() | 
| PlayerSession(PlayerSession source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCreationTime()Get Player session creation time | 
| String | getDnsName()Get ID of the DNS where the game server session is running
Note: this field may return null, indicating that no valid values can be obtained. | 
| String | getFleetId()Get Fleet ID | 
| String | getGameServerSessionId()Get Game server session ID. | 
| String | getIpAddress()Get Address of the CVM instance where the game server session is running | 
| String | getPlayerData()Get Player custom data. | 
| String | getPlayerId()Get Player ID. | 
| String | getPlayerSessionId()Get Player session ID | 
| Long | getPort()Get Port number. | 
| String | getStatus()Get Player session status. | 
| String | getTerminationTime()Get Player session termination time
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setCreationTime(String CreationTime)Set Player session creation time | 
| void | setDnsName(String DnsName)Set ID of the DNS where the game server session is running
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | setFleetId(String FleetId)Set Fleet ID | 
| void | setGameServerSessionId(String GameServerSessionId)Set Game server session ID. | 
| void | setIpAddress(String IpAddress)Set Address of the CVM instance where the game server session is running | 
| void | setPlayerData(String PlayerData)Set Player custom data. | 
| void | setPlayerId(String PlayerId)Set Player ID. | 
| void | setPlayerSessionId(String PlayerSessionId)Set Player session ID | 
| void | setPort(Long Port)Set Port number. | 
| void | setStatus(String Status)Set Player session status. | 
| void | setTerminationTime(String TerminationTime)Set Player session termination time
Note: this field may return null, indicating that no valid values can be obtained. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic PlayerSession()
public PlayerSession(PlayerSession source)
public String getCreationTime()
public void setCreationTime(String CreationTime)
CreationTime - Player session creation timepublic String getDnsName()
public void setDnsName(String DnsName)
DnsName - ID of the DNS where the game server session is running
Note: this field may return null, indicating that no valid values can be obtained.public String getFleetId()
public void setFleetId(String FleetId)
FleetId - Fleet IDpublic String getGameServerSessionId()
public void setGameServerSessionId(String GameServerSessionId)
GameServerSessionId - Game server session ID. It should contain 1 to 256 ASCII characters.public String getIpAddress()
public void setIpAddress(String IpAddress)
IpAddress - Address of the CVM instance where the game server session is runningpublic String getPlayerData()
public void setPlayerData(String PlayerData)
PlayerData - Player custom data. Up to 2048 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.public String getPlayerId()
public void setPlayerId(String PlayerId)
PlayerId - Player ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.public String getPlayerSessionId()
public void setPlayerSessionId(String PlayerSessionId)
PlayerSessionId - Player session IDpublic Long getPort()
public void setPort(Long Port)
Port - Port number. It should be a value between 1 to 60000.public String getStatus()
public void setStatus(String Status)
Status - Player session status. Valid values: RESERVED = 1, ACTIVE = 2, COMPLETED =3, TIMEDOUT = 4public String getTerminationTime()
public void setTerminationTime(String TerminationTime)
TerminationTime - Player session termination time
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.