2019-10-10 16:09:20 +02:00
|
|
|
package net.osmand.aidlapi.favorite;
|
2019-10-08 16:42:00 +02:00
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Parcel;
|
|
|
|
|
2019-10-10 16:09:20 +02:00
|
|
|
import net.osmand.aidlapi.AidlParams;
|
2019-10-08 16:42:00 +02:00
|
|
|
|
|
|
|
public class RemoveFavoriteParams extends AidlParams {
|
|
|
|
|
|
|
|
private AFavorite favorite;
|
|
|
|
|
|
|
|
public RemoveFavoriteParams(AFavorite favorite) {
|
|
|
|
this.favorite = favorite;
|
|
|
|
}
|
|
|
|
|
|
|
|
public RemoveFavoriteParams(Parcel in) {
|
2019-10-10 13:49:47 +02:00
|
|
|
readFromParcel(in);
|
2019-10-08 16:42:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static final Creator<RemoveFavoriteParams> CREATOR = new Creator<RemoveFavoriteParams>() {
|
|
|
|
@Override
|
|
|
|
public RemoveFavoriteParams createFromParcel(Parcel in) {
|
|
|
|
return new RemoveFavoriteParams(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public RemoveFavoriteParams[] newArray(int size) {
|
|
|
|
return new RemoveFavoriteParams[size];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
public AFavorite getFavorite() {
|
|
|
|
return favorite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void writeToBundle(Bundle bundle) {
|
|
|
|
bundle.putParcelable("favorite", favorite);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void readFromBundle(Bundle bundle) {
|
|
|
|
bundle.setClassLoader(AFavorite.class.getClassLoader());
|
|
|
|
favorite = bundle.getParcelable("favorite");
|
|
|
|
}
|
|
|
|
}
|