org.gbanga.api
Class Sound

java.lang.Object
  extended by org.gbanga.api.Sound

public class Sound
extends java.lang.Object

A sound composition.

Details about JSON serialization

For the JSON object serialization, the field names are used. Eg.

 {
   id: 1234,
   melody: "d1e5a1",
   url: "http://my.sound.org/melody.mp3"
 }
 

Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.

Author:
Matthias

Field Summary
 long id
          The unique identifier for this melody.
 java.lang.String melody
          The tunes of this sound.
 java.lang.String url
          The location of the sound to stream from.
 
Constructor Summary
Sound()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

@PrimaryKey
public long id
The unique identifier for this melody.


melody

public java.lang.String melody
The tunes of this sound.


url

public java.lang.String url
The location of the sound to stream from.

Constructor Detail

Sound

public Sound()