private void readFromParcel(Parcel in) { mBody = in.readString(); mServiceCategory = in.readInt(); mSeverity = Severity.values()[in.readInt()]; mUrgency = Urgency.values()[in.readInt()]; mCertainty = Certainty.values()[in.readInt()]; mLanguageCode = in.readInt(); }
public void writeToParcel(Parcel dest, int flags) { dest.writeString(mBody); dest.writeInt(mServiceCategory); dest.writeInt(mSeverity.ordinal()); dest.writeInt(mUrgency.ordinal()); dest.writeInt(mCertainty.ordinal()); dest.writeInt(mLanguageCode); }