public void WriteToParcel(Parcel dest, ParcelableWriteFlags flags) { dest.WriteString(Name); dest.WriteString(Id); dest.WriteInt(Theme.Ordinal()); dest.WriteTypedList(Quizzes); dest.WriteIntArray(Scores); ParcelableHelper.WriteBoolean(dest, Solved); }
protected Category(Parcel inObj) { Name = inObj.ReadString(); Id = inObj.ReadString(); //TODO // Theme = (Theme)System.Enum.GetValues ()inObj.ReadInt (); Quizzes = new List <Quiz> (); inObj.ReadTypedList(Quizzes, Quiz.InitializeCreator()); Scores = inObj.CreateIntArray(); Solved = ParcelableHelper.ReadBoolean(inObj); }