Created
March 20, 2022 08:52
-
-
Save le0nidas/0514d77118e34f04367f47f71ba69192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void writeToParcel(@NotNull Parcel parcel, int flags) { | |
Intrinsics.checkNotNullParameter(parcel, "parcel"); | |
parcel.writeInt(this.id); | |
parcel.writeString(this.description); | |
parcel.writeString(this.priority.name()); | |
parcel.writeParcelable(this.status, flags); | |
Attachment var10001 = this.attachment; | |
if (var10001 != null) { | |
parcel.writeInt(1); | |
var10001.writeToParcel(parcel, 0); | |
} else { | |
parcel.writeInt(0); | |
} | |
} | |
@NotNull | |
public final Task createFromParcel(@NotNull Parcel in) { | |
Intrinsics.checkNotNullParameter(in, "in"); | |
return new Task( | |
in.readInt(), | |
in.readString(), | |
(Priority)Enum.valueOf(Priority.class, in.readString()), | |
(Status)in.readParcelable(Task.class.getClassLoader()), | |
in.readInt() != 0 ? (Attachment)Attachment.CREATOR.createFromParcel(in) : null | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment