Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }