Ejemplo n.º 1
0
        public override void Serialise(Writer Writer)
        {
            base.Serialise(Writer);

            Writer.Write(Username);
            Writer.Write(ComputerName);
        }
Ejemplo n.º 2
0
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(Delete);
            Item.Serialise(Out);
        }
Ejemplo n.º 3
0
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(User != null);
            if (User != null)
                User.Serialise(Out);
            Out.Write(Room != null);
            if (Room != null)
                Room.Serialise(Out);
        }
Ejemplo n.º 4
0
        // Write properties and IDs
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(SubjectName);
            Out.Write(Argb);
            Out.Write(Bookings.Count);
            Bookings.ForEach(b => Out.Write(b.Id));
        }
Ejemplo n.º 5
0
        // Output properties and IDs
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(ClassName);
            Out.Write(Owner.Id);
            Out.Write(Students.Count);
            Students.ForEach(s => Out.Write(s.Id));
        }
Ejemplo n.º 6
0
        // Serialise all required properties
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write((int)Access);
            Out.Write(FirstName);
            Out.Write(LastName);
            Out.Write(LogonName);
        }
Ejemplo n.º 7
0
        // Serialise properties and IDs
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(RoomName);
            Out.Write(StandardSeats);
            Out.Write(SpecialSeats);
            Out.Write(SpecialSeatType);
            Out.Write(ComputerNamesJoined);

            Out.Write(Bookings.Count);
            Bookings.ForEach(b => Out.Write(b.Id));
            Out.Write(Department.Id);
        }
Ejemplo n.º 8
0
        // Serialise properties and IDs
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(_Start.Ticks);
            Out.Write(_End.Ticks);
            Out.Write(Name);

            Out.Write(Bookings.Count);
            Bookings.ForEach(b => Out.Write(b.Id));
        }
Ejemplo n.º 9
0
        public override void Serialise(Writer Out)
        {
            // Output base class properties followed by this class's properties
            base.Serialise(Out);

            Out.Write(Title);
            Out.Write(Department.Id);
            Out.Write(Classes.Count);
            Classes.ForEach(c => Out.Write(c.Id));
            Out.Write(Email);

            Out.Write(Bookings.Count);
            Bookings.ForEach(b => Out.Write(b.Id));
        }
Ejemplo n.º 10
0
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Snapshot.Serialise(Out);
        }
Ejemplo n.º 11
0
        // Serialise all properties to the stream
        public override void Serialise(Writer Out)
        {
            // Serialise the base class' properties
            base.Serialise(Out);

            Out.Write(Year);
            Out.Write(Form);
            Out.Write(Classes.Count);
            Classes.ForEach(c => Out.Write(c.Id));

            Out.Write(Bookings.Count);
            Bookings.ForEach(b => Out.Write(b.Id));
        }
Ejemplo n.º 12
0
        public void Serialise(Writer Out)
        {
            Out.Write(Bookings.Count);
            Bookings.ForEach(b => b.Serialise(Out));

            Out.Write(Departments.Count);
            Departments.ForEach(d => d.Serialise(Out));

            Out.Write(Periods.Count);
            Periods.ForEach(p => p.Serialise(Out));

            Out.Write(Rooms.Count);
            Rooms.ForEach(r => r.Serialise(Out));

            Out.Write(Users.Count);
            Users.ForEach(t => t.Serialise(Out));

            Out.Write(Subjects.Count);
            Subjects.ForEach(s => s.Serialise(Out));

            Out.Write(Classes.Count);
            Classes.ForEach(c => c.Serialise(Out));
        }
Ejemplo n.º 13
0
        // Serialise to an output stream
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(Ticks);
            Out.Write((int)BookingType);
            Out.Write(TimeSlot.Id);
            Out.Write(Rooms.Count);
            foreach (Room r in Rooms)
                Out.Write(r.Id);
            Out.Write(Subject.Id);
            Out.Write(Students.Count);
            foreach (Student s in Students)
                Out.Write(s.Id);
            Out.Write(Teacher.Id);
        }
Ejemplo n.º 14
0
        public override void Serialise(Writer Writer)
        {
            base.Serialise(Writer);

            Writer.Write((byte)Reason);
        }
Ejemplo n.º 15
0
        // Serialise properties and IDs
        public override void Serialise(Writer Out)
        {
            base.Serialise(Out);

            Out.Write(Name);
            Out.Write(Teachers.Count);
            Teachers.ForEach(t => Out.Write(t.Id));
            Out.Write(Rooms.Count);
            Rooms.ForEach(r => Out.Write(r.Id));
        }