Back to project page Mamytas.
The source code is released under:
GNU General Public License
If you think the Android project Mamytas listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package mn.aug.restfulandroid.rest.resource; /*from w w w . j a v a2 s . c o m*/ import android.net.Uri; import android.os.Parcel; import android.os.Parcelable; import java.util.ArrayList; import java.util.List; /** * Facade representing the Tasks data * * @author hashbrown * */ public class Timers implements Resource,Parcelable { public static final String AUTHORITY="WUNDERLIST"; public static final String PATH="TIMERS"; public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH); private List<Timer> timers; public Timers(List<Timer> timers) { this.timers=timers; } public List<Timer> getTimers() { return timers; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedList(timers); } public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { public Timers createFromParcel(Parcel in) { return new Timers(in); } public Timers[] newArray(int size) { return new Timers[size]; } }; // Parcelling part public Timers(Parcel in) { timers =new ArrayList<Timer>(); in.readTypedList(this.timers,Timer.CREATOR); } }