mobi.voiceassistant.client.model
Class RemoteModel

java.lang.Object
  extended by mobi.voiceassistant.client.model.RemoteModel
All Implemented Interfaces:
Parcelable
Direct Known Subclasses:
Location

public class RemoteModel
extends Object
implements Parcelable

Created with IntelliJ IDEA. User: morfeusys Date: 31.01.13 Time: 13:09


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<RemoteModel> CREATOR
           
 String id
           
static String JSON_DATA
           
 String name
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
protected RemoteModel(Parcel parcel)
           
  RemoteModel(String id, String name)
           
 
Method Summary
protected  void appendJsonObject(JSONStringer stringer)
           
 int describeContents()
           
 boolean equals(Object o)
           
 int hashCode()
           
static ArrayList<String> ids(ArrayList<? extends RemoteModel> data)
           
 String toJson()
           
 void writeToParcel(Parcel parcel, int i)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_DATA

public static final String JSON_DATA
See Also:
Constant Field Values

id

public final String id

name

public final String name

CREATOR

public static final Parcelable.Creator<RemoteModel> CREATOR
Constructor Detail

RemoteModel

public RemoteModel(String id,
                   String name)

RemoteModel

protected RemoteModel(Parcel parcel)
Method Detail

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel parcel,
                          int i)
Specified by:
writeToParcel in interface Parcelable

toJson

public String toJson()

appendJsonObject

protected void appendJsonObject(JSONStringer stringer)
                         throws JSONException
Throws:
JSONException

ids

public static ArrayList<String> ids(ArrayList<? extends RemoteModel> data)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object