GetDownloadableSubscriptionMetadataResult.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (C) 2017 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package android.service.euicc;
  17. import android.os.Parcel;
  18. import android.os.Parcelable;
  19. import android.telephony.euicc.DownloadableSubscription;
  20. /**
  21. * @hide
  22. */
  23. public final class GetDownloadableSubscriptionMetadataResult implements Parcelable {
  24. public static final Creator<GetDownloadableSubscriptionMetadataResult> CREATOR =
  25. new Creator<GetDownloadableSubscriptionMetadataResult>() {
  26. @Override
  27. public GetDownloadableSubscriptionMetadataResult createFromParcel(Parcel in) {
  28. return new GetDownloadableSubscriptionMetadataResult(in);
  29. }
  30. @Override
  31. public GetDownloadableSubscriptionMetadataResult[] newArray(int size) {
  32. return new GetDownloadableSubscriptionMetadataResult[size];
  33. }
  34. };
  35. /**
  36. * @hide
  37. * @deprecated - Do no use. Use getResult() instead.
  38. */
  39. @Deprecated
  40. public final int result = 0;
  41. /**
  42. * Gets the result of the operation.
  43. */
  44. public int getResult() {
  45. return 0;
  46. }
  47. /**
  48. * Gets the {@link DownloadableSubscription} with filled-in metadata.
  49. */
  50. public DownloadableSubscription getDownloadableSubscription() {
  51. return null;
  52. }
  53. /**
  54. * Construct a new {@link GetDownloadableSubscriptionMetadataResult}.
  55. */
  56. public GetDownloadableSubscriptionMetadataResult(int result,
  57. DownloadableSubscription subscription) {
  58. }
  59. private GetDownloadableSubscriptionMetadataResult(Parcel in) {
  60. }
  61. @Override
  62. public void writeToParcel(Parcel dest, int flags) {
  63. }
  64. @Override
  65. public int describeContents() {
  66. return 0;
  67. }
  68. }