| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
package android.service.euicc; |
| 17 |
|
| 18 |
import android.annotation.SystemApi; |
| 19 |
import android.os.Parcel; |
| 20 |
import android.os.Parcelable; |
| 21 |
import android.service.euicc.EuiccService.ResolvableError; |
| 22 |
import android.service.euicc.EuiccService.Result; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
@SystemApi |
| 29 |
public final class DownloadSubscriptionResult implements Parcelable { |
| 30 |
|
| 31 |
public static final @android.annotation.NonNull Creator<DownloadSubscriptionResult> CREATOR = |
| 32 |
new Creator<DownloadSubscriptionResult>() { |
| 33 |
@Override |
| 34 |
public DownloadSubscriptionResult createFromParcel(Parcel in) { |
| 35 |
return new DownloadSubscriptionResult(in); |
| 36 |
} |
| 37 |
|
| 38 |
@Override |
| 39 |
public DownloadSubscriptionResult[] newArray(int size) { |
| 40 |
return new DownloadSubscriptionResult[size]; |
| 41 |
} |
| 42 |
}; |
| 43 |
|
| 44 |
private final @Result int mResult; |
| 45 |
private final @ResolvableError int mResolvableErrors; |
| 46 |
private final int mCardId; |
| 47 |
|
| 48 |
public DownloadSubscriptionResult(@Result int result, @ResolvableError int resolvableErrors, |
| 49 |
int cardId) { |
| 50 |
this.mResult = result; |
| 51 |
this.mResolvableErrors = resolvableErrors; |
| 52 |
this.mCardId = cardId; |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
public @Result int getResult() { |
| 57 |
return mResult; |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
public @ResolvableError int getResolvableErrors() { |
| 71 |
return mResolvableErrors; |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
public int getCardId() { |
| 79 |
return mCardId; |
| 80 |
} |
| 81 |
|
| 82 |
@Override |
| 83 |
public void writeToParcel(Parcel dest, int flags) { |
| 84 |
dest.writeInt(mResult); |
| 85 |
dest.writeInt(mResolvableErrors); |
| 86 |
dest.writeInt(mCardId); |
| 87 |
} |
| 88 |
|
| 89 |
@Override |
| 90 |
public int describeContents() { |
| 91 |
return 0; |
| 92 |
} |
| 93 |
|
| 94 |
private DownloadSubscriptionResult(Parcel in) { |
| 95 |
this.mResult = in.readInt(); |
| 96 |
this.mResolvableErrors = in.readInt(); |
| 97 |
this.mCardId = in.readInt(); |
| 98 |
} |
| 99 |
} |