@Beta public class MediaResponse extends Object implements ResponseInterface
Constructor and Description |
---|
MediaResponse(String content,
String type)
The contructor to generate a new media Response with an URL
|
Modifier and Type | Method and Description |
---|---|
static MediaResponse |
createPictureResponse(String content)
The contructor to generate a new picture response with an URL.
|
static MediaResponse |
createVideoResponse(String content)
The contructor to generate a new video response with an URL.
|
String |
getContent()
Returns the content of this response.
|
String |
getType()
returns the present type, which is immutable to the user.
|
void |
setContent(String content)
Function to allow the change of the content url
|
@Nonnull public static MediaResponse createVideoResponse(@Nonnull String content)
content
- a url to a video (playable in the users environment, probably by a browser)@Nonnull public static MediaResponse createPictureResponse(@Nonnull String content)
content
- a url to a picture@Nullable public String getContent()
public void setContent(@Nonnull String content)
content
- the new url@Nullable public String getType()
getType
in interface ResponseInterface
Copyright © 2021 SAP SE. All rights reserved.