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 parameters.This parameter is effective for multi-application projects.
|
String |
getClientSession()
Get Client-side session information, which is obtained from the SDK.
|
String |
getHostUserId()
Get [Multi-person Interaction] Homeowner's user ID, which is required in multi-person interaction mode.
|
String |
getRole()
Get [Multi-person Interaction] Role.
|
String |
getRunMode()
Get On-cloud running mode.RunWithoutClient: Keeps the application running on the cloud even when there are no client connections.Empty string (default): Keeps the application running on the cloud only when there are client connections.
|
String |
getUserId()
Get Unique user ID, which is customized by you and is not parsed by CAR.
|
String |
getUserIp()
Get Public IP address of the user's client, which is used for nearby scheduling.
|
void |
setApplicationParameters(String ApplicationParameters)
Set Application startup parameters.This parameter is effective for multi-application projects.
|
void |
setClientSession(String ClientSession)
Set Client-side session information, which is obtained from the SDK.
|
void |
setHostUserId(String HostUserId)
Set [Multi-person Interaction] Homeowner's user ID, which is required in multi-person interaction mode.
|
void |
setRole(String Role)
Set [Multi-person Interaction] Role.
|
void |
setRunMode(String RunMode)
Set On-cloud running mode.RunWithoutClient: Keeps the application running on the cloud even when there are no client connections.Empty string (default): Keeps the application running on the cloud only when there are client connections.
|
void |
setUserId(String UserId)
Set Unique user ID, which is customized by you and is not parsed by CAR.
|
void |
setUserIp(String UserIp)
Set Public IP address of the user's 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
- Unique user ID, which is customized by you and is not parsed by CAR. 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 address of the user's client, which is used for nearby scheduling.public String getClientSession()
public void setClientSession(String ClientSession)
ClientSession
- Client-side session information, which is obtained from the SDK. If `RunMode` is `RunWithoutClient`, this parameter can be empty.public String getRunMode()
public void setRunMode(String RunMode)
RunMode
- On-cloud running mode.RunWithoutClient: Keeps the application running on the cloud even when there are no client connections.Empty string (default): Keeps the application running on the cloud only when there are client connections.public String getApplicationParameters()
public void setApplicationParameters(String ApplicationParameters)
ApplicationParameters
- Application startup parameters.This parameter is effective for multi-application projects.
This parameter is effective for single-application projects with prelaunch disabled.This parameter is ineffective for single-application projects with prelaunch enabled.
Note: When this parameter is effective, it will be appended to the startup parameters of application or project configuration in the console.
For example, for a single-application project with prelaunch disabled, if its startup parameter `bar` is `0` for project configuration in the console and the `ApplicationParameters` parameter `foo` is `1`, the actual application startup parameters will be `bar=0 and foo=1`.public String getHostUserId()
public void setHostUserId(String HostUserId)
HostUserId
- [Multi-person Interaction] Homeowner's user ID, which is required in multi-person interaction mode.
If the user is the homeowner, HostUserID must be the same as UserID.
If the user is not the homeowner, HostUserID must be the homeowner's HostUserID.public String getRole()
public void setRole(String Role)
Role
- [Multi-person Interaction] Role.
Player: a user who can operate the application via keyboard, mouse, etc.
Viewer: a user who can only watch the video in the room but cannot operate the application.Copyright © 2024. All rights reserved.