public static class StandardRequest.StopMedia extends Object implements Request
Note This should be a StandardRequest.MediaRequest, but since that would
also make it a StandardMessage which maps type using
Jackson subtypes, it isn't. The reason is that another implementation,
StandardRequest.Stop, is already mapped to "STOP" which is the same
type as this request uses. The differences between the two is the
namespace, but that isn't captured by the Jackson subtype logic, which is
why this implementation is only a Request that "manually
implements" the remaining fields required for a StandardRequest.MediaRequest.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
customData
Custom data for the receiver application
|
protected int |
mediaSessionId
The media session ID
|
protected long |
requestId
the request ID
|
protected String |
type
The request type
|
| Constructor and Description |
|---|
StopMedia(int mediaSessionId,
Map<String,Object> customData)
Creates a new request using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getCustomData() |
int |
getMediaSessionId() |
long |
getRequestId() |
void |
setRequestId(long requestId)
Sets the request ID.
|
protected final int mediaSessionId
protected long requestId
protected final String type
@Nullable public Map<String,Object> getCustomData()
public void setRequestId(long requestId)
RequestChannel.setRequestId in interface RequestrequestId - the request ID to set.public long getRequestId()
getRequestId in interface Requestpublic int getMediaSessionId()
Copyright © 2022. All rights reserved.