protected override void ProcessInternal(CustomBinaryReader reader)
        {
            previousRecordLength = reader.ReadSInt16();
            currentRecordLength  = reader.ReadSInt16();
            recordDate           = reader.ReadTimeReal();
            SignatureRegion.UpdateTime(recordDate);
            dailyPresenceCounter = reader.ReadBCDString(2);
            distance             = reader.ReadSInt16();

            uint recordCount = (currentRecordLength - 12) / 2;

            this.ProcessedRegions.Capacity = (int)recordCount;

            WriteLine(LogLevel.DEBUG, "Reading {0} activity records", recordCount);

            while (recordCount > 0)
            {
                ActivityChangeRegion acr = new ActivityChangeRegion();
                acr.Name = "ActivityChangeInfo";
                acr.Process(reader);
                this.ProcessedRegions.Add(acr);
                recordCount--;
            }
        }
Exemplo n.º 2
0
 public static void UpdateTime(DateTime dateTime)
 {
     SignatureRegion.UpdateTime((DateTimeOffset)DateTime.SpecifyKind(dateTime, DateTimeKind.Utc));
 }
Exemplo n.º 3
0
 protected override void ProcessInternal(CustomBinaryReader reader)
 {
     dateTime = reader.ReadTimeReal();
     SignatureRegion.UpdateTime(dateTime);
 }