Esempio n. 1
0
 public Contribution(Parcel in) {
   super(in);
   contentUri = (Uri) in.readParcelable(Uri.class.getClassLoader());
   source = in.readString();
   timestamp = (Date) in.readSerializable();
   state = in.readInt();
   transferred = in.readLong();
   isMultiple = in.readInt() == 1;
 }
Esempio n. 2
0
 @Override
 public void writeToParcel(Parcel parcel, int flags) {
   super.writeToParcel(parcel, flags);
   parcel.writeParcelable(contentUri, flags);
   parcel.writeString(source);
   parcel.writeSerializable(timestamp);
   parcel.writeInt(state);
   parcel.writeLong(transferred);
   parcel.writeInt(isMultiple ? 1 : 0);
 }