mobi.voiceassistant.client.model
Class RemoteModel
java.lang.Object
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
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
RemoteModel
public RemoteModel(String id,
String name)
RemoteModel
protected RemoteModel(Parcel parcel)
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