public class SoundEntity
extends java.lang.Object
Reading.| Modifier and Type | Class and Description |
|---|---|
static class |
SoundEntity.Where
List of all possible types of audible area:
SoundEntity.Where.INSIDE: the sound is a reading played within the place contour;
SoundEntity.Where.AROUND: the sound is audible around the place by a given around_extent_ factor;
SoundEntity.Where.ELSEWHERE: the playback is played anywhere else.
|
| Modifier and Type | Field and Description |
|---|---|
private float |
around_extent_
A value only used in
SoundEntity.Where.AROUND state that holds a factor of interpolation |
private int |
id_
The (SQL AUTOINCREMENT) id of this sound.
|
private java.lang.String |
place_id_
Id of the
PlaceEntity this sound belongs to. |
private java.lang.String |
track_
The track selector used to load audio files.
|
private SoundEntity.Where |
where_
Where's the sound being played? Defaults to
SoundEntity.Where.INSIDE. |
| Modifier | Constructor and Description |
|---|---|
private |
SoundEntity(int id,
java.lang.String track,
org.json.JSONObject where,
java.lang.String place_id)
Private constructor since we always use
from_cursor(Cursor) to create new instances. |
| Modifier and Type | Method and Description |
|---|---|
static SoundEntity |
from_cursor(android.database.Cursor cursor)
Creates a new
SoundEntity instance from a SQLite response. |
int |
id() |
java.lang.String |
place_id() |
java.util.ArrayList<java.lang.String> |
tracks()
Given the
track_ string value, returns a list of actual audio files. |
SoundEntity.Where |
where() |
private final int id_
private final java.lang.String track_
private final java.lang.String place_id_
PlaceEntity this sound belongs to.private final SoundEntity.Where where_
SoundEntity.Where.INSIDE.private float around_extent_
SoundEntity.Where.AROUND state that holds a factor of interpolation
TODO: @implements
private SoundEntity(int id,
java.lang.String track,
org.json.JSONObject where,
java.lang.String place_id)
throws org.json.JSONException
from_cursor(Cursor) to create new instances.id - The idtrack - The trackwhere - A JSONObject holding the SoundEntity.Where keyplace_id - The id of the associated PlaceEntityorg.json.JSONException@Nullable public static SoundEntity from_cursor(android.database.Cursor cursor)
SoundEntity instance from a SQLite response.cursor - The Cursor responseSoundEntity instance or null is a JSONException is encountered.public int id()
public java.lang.String place_id()
public SoundEntity.Where where()
public java.util.ArrayList<java.lang.String> tracks()
track_ string value, returns a list of actual audio files.