public class SonosSessionRequest extends Object implements Validatable
SonosSessionRequest class.
| Constructor and Description |
|---|
SonosSessionRequest()
Constructor for SonosSessionRequest.
|
SonosSessionRequest(String accountId,
String appContext,
String appId,
String customData)
Constructor for SonosSessionRequest.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Getter for the field
accountId. |
String |
getAppContext()
Getter for the field
appContext. |
String |
getAppId()
Getter for the field
appId. |
String |
getCustomData()
Getter for the field
customData. |
void |
setAccountId(String accountId)
Setter for the field
accountId. |
void |
setAppContext(String appContext)
Setter for the field
appContext. |
void |
setAppId(String appId)
Setter for the field
appId. |
void |
setCustomData(String customData)
Setter for the field
customData. |
String |
toString() |
void |
validate()
Hook to validate an object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisValidpublic SonosSessionRequest()
Constructor for SonosSessionRequest.
public void setAccountId(String accountId)
Setter for the field accountId.
accountId - a String object.public String getAppContext()
Getter for the field appContext.
String object.public void setAppContext(String appContext)
Setter for the field appContext.
appContext - a String object.public void setAppId(String appId)
Setter for the field appId.
appId - a String object.public String getCustomData()
Getter for the field customData.
String object.public void setCustomData(String customData)
Setter for the field customData.
customData - a String object.public void validate()
throws SonosApiClientException
Hook to validate an object
Validate this request before sending, to avoid a needless API call.As per documentation, only appId and appContext are required for joining or creating a session request.
validate in interface ValidatableSonosApiClientException - if there are validation errorsCopyright © 2018. All rights reserved.