FileSource Class

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 FileSource fromJson(JsonReader jsonReader)

Reads an instance of FileSource from the JsonReader.

String getUrl()

Get the uri property: Uri for the audio file to be played.

FileSource setUrl(String url)

Set the uri property: Uri for the audio file to be played.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of FileSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FileSource.

getUrl

public String getUrl()

Get the uri property: Uri for the audio file to be played.

Returns:

the uri value.

setUrl

public FileSource setUrl(String url)

Set the uri property: Uri for the audio file to be played.

Parameters:

url - the uri value to set.

Returns:

the FileSourceInternal object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to