FileSource Class
- java.
lang. Object - com.
azure. communication. callautomation. models. PlaySource - com.
azure. communication. callautomation. models. FileSource
- com.
- com.
public final class FileSource
extends PlaySource
The FileSource model.
Constructor Summary
| Constructor | Description |
|---|---|
| FileSource() |
Creates an instance of FileSource. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| String |
getUrl()
Get the uri property: Uri for the audio file to be played. |
|
File |
setUrl(String url)
Set the uri property: Uri for the audio file to be played. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from PlaySource
Methods inherited from java.lang.Object
Constructor Details
FileSource
public FileSource()
Creates an instance of FileSource.
Method Details
fromJson
public static FileSource fromJson(JsonReader jsonReader)
Reads an instance of FileSource from the JsonReader.
Parameters:
Returns:
Throws:
getUrl
public String getUrl()
Get the uri property: Uri for the audio file to be played.
Returns:
setUrl
public FileSource setUrl(String url)
Set the uri property: Uri for the audio file to be played.
Parameters:
Returns: