public TimestampMatching(Stream stream)
 {
     byte version = stream.ReadNextByte();
     switch (version)
     {
         case 1:
             m_mode = (TimestampMatchingMode)stream.ReadNextByte();
             m_first = stream.ReadDateTime();
             m_second = stream.ReadDateTime();
             break;
         default:
             throw new VersionNotFoundException();
     }
 }
Example #2
0
        public TimestampMatching(Stream stream)
        {
            byte version = stream.ReadNextByte();

            switch (version)
            {
            case 1:
                m_mode   = (TimestampMatchingMode)stream.ReadNextByte();
                m_first  = stream.ReadDateTime();
                m_second = stream.ReadDateTime();
                break;

            default:
                throw new VersionNotFoundException();
            }
        }
 public TimestampMatching(TimestampMatchingMode mode, DateTime first, DateTime second)
 {
     m_first = first;
     m_second = second;
     m_mode = mode;
 }
Example #4
0
 public TimestampMatching(TimestampMatchingMode mode, DateTime first, DateTime second)
 {
     m_first  = first;
     m_second = second;
     m_mode   = mode;
 }