© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

SIMS 7 - Attendance New changed marks APIs

With the intention of making the get changed attendance marks compatible with the other read and write calls, we are adding:

Session

private static List<DataClasses.SessionAttendanceExtended> SessionAttendanceReadTestPerson(DateTime lastUpdated)
{
    List<DataClasses.SessionAttendanceExtended> list = new List<DataClasses.SessionAttendanceExtended>();

    string SessionMarks = TPAR.GetXmlChangedSessionAttendancesV3(lastUpdated.AddMinutes(-20));
    XmlSerializer serializer = new XmlSerializer(typeof(DataClasses.SessionAttendancesExtended));
    using (StringReader reader = new StringReader(SessionMarks))
    {
        var test = (DataClasses.SessionAttendancesExtended)serializer.Deserialize(reader);
        list = test.SessionAttendanceExtended;
    }
    return list;
}


Lesson

private static List<DataClasses.LessonAttendanceExtended> LessonAttendanceReadTestPerson(DateTime lastUpdated)
{
    List<DataClasses.LessonAttendanceExtended> list = new List<DataClasses.LessonAttendanceExtended>();

    string LessonMarks = TPAR.GetXmlChangedLessonAttendancesV3(lastUpdated.AddMinutes(-20));
    XmlSerializer serializer = new XmlSerializer(typeof(DataClasses.LessonAttendancesExtended));
    using (StringReader reader = new StringReader(LessonMarks))
    {
        var test = (DataClasses.LessonAttendancesExtended)serializer.Deserialize(reader);
        list = test.LessonAttendanceExtended;
    }
    return list;
}

These will return <Lesson|Session>AttendanceExtendeds like their counterparts 

  • GetXmlSessionAttendancesExtendedV3
  • GetXmlLessonAttendancesExtendedV3

We recommend the use of these in place of the calls:

  • TPAR.GetXmlChangedLessonAttendancesInRangeV3
  • TPAR.GetXmlChangedSessionAttendancesInRangeV3

Because the formats of these are different to the rest of the calls.