public class CreateSessionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateSessionRequest() |
CreateSessionRequest(CreateSessionRequest 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 |
getApplicationParameters()
Get Application startup parameter.
|
String |
getClientSession()
Get The client-side session data, which is obtained from the SDK.
|
String |
getHostUserId()
Get The user ID of the host in **multi-person interaction** scenarios, which is required.
|
String |
getRole()
Get The role in **multi-person interaction** scenarios.
|
String |
getRunMode()
Get The on-cloud running mode.
|
String |
getUserId()
Get The user’s unique ID.
|
String |
getUserIp()
Get Public IP of user’s application client, which is used for nearby scheduling.
|
void |
setApplicationParameters(String ApplicationParameters)
Set Application startup parameter.
|
void |
setClientSession(String ClientSession)
Set The client-side session data, which is obtained from the SDK.
|
void |
setHostUserId(String HostUserId)
Set The user ID of the host in **multi-person interaction** scenarios, which is required.
|
void |
setRole(String Role)
Set The role in **multi-person interaction** scenarios.
|
void |
setRunMode(String RunMode)
Set The on-cloud running mode.
|
void |
setUserId(String UserId)
Set The user’s unique ID.
|
void |
setUserIp(String UserIp)
Set Public IP of user’s application client, which is used for nearby scheduling.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateSessionRequest()
public CreateSessionRequest(CreateSessionRequest source)
public String getUserId()
public void setUserId(String UserId)
UserId
- The user’s unique ID. Tencent Cloud does not parse the ID. You need to manage your own user IDs. Based on your needs, you can either define unique IDs for users or use timestamps to generate random IDs. Make sure the same ID is used when a user reconnects to your application.public String getUserIp()
public void setUserIp(String UserIp)
UserIp
- Public IP of user’s application client, which is used for nearby scheduling.public String getClientSession()
public void setClientSession(String ClientSession)
ClientSession
- The client-side session data, which is obtained from the SDK. If `RunMode` is `RunWithoutClient`, this parameter can be null.public String getRunMode()
public void setRunMode(String RunMode)
RunMode
- The on-cloud running mode.
`RunWithoutClient`: Keep the application running on the cloud even when there are no client connections.
Empty string (default): Keep the application running on the cloud only when there are client connections.public String getApplicationParameters()
public void setApplicationParameters(String ApplicationParameters)
ApplicationParameters
- Application startup parameter.
If the user requests a multi-application project or a prelaunch-disabled single-application project, this parameter takes effect.
If the user requests a prelaunch-enabled single-application project, this parameter is invalid.
Note: When this parameter takes effect, the `ApplicationParameters` parameter will be appended to the end of the application startup parameter. The application startup parameter is set in the application or project configuration in the console.
For example, for a prelaunch-disabled single-application project, if its application startup parameter `bar` is `0` and the `ApplicationParameters` parameter `foo` is `1`, the actual application startup parameters will be `bar=0 foo=1`.public String getHostUserId()
public void setHostUserId(String HostUserId)
HostUserId
- The user ID of the host in **multi-person interaction** scenarios, which is required.
If the current user is the host, `HostUserId` must be the same as their `UserId`; otherwise, `HostUserId` should be the host's `UserId`.public String getRole()
public void setRole(String Role)
Role
- The role in **multi-person interaction** scenarios. Valid values:
`Player`: A user who can operate an application by using a keyboard and mouse
`Viewer`: A user who can only watch the video in the room but cannot operate the applicationCopyright © 2024. All rights reserved.