Exemple #1
0
 public ReadAccessResult(ByteStream queue)
 {
     ObjectIdentifier = (ObjectIdentifier)read(queue, typeof(ObjectIdentifier), 0);
     try
     {
         ThreadLocalObjectTypeStack.set(ObjectIdentifier.ObjectType);
         ListOfResults = readOptionalSequenceOf(queue, typeof(Result), 1);
     }
     finally
     {
         ThreadLocalObjectTypeStack.remove();
     }
 }
Exemple #2
0
 internal UnconfirmedCovNotificationRequest(ByteStream queue)
 {
     subscriberProcessIdentifier = (UnsignedInteger)read(queue, typeof(UnsignedInteger), 0);
     initiatingDeviceIdentifier  = (ObjectIdentifier)read(queue, typeof(ObjectIdentifier), 1);
     monitoredObjectIdentifier   = (ObjectIdentifier)read(queue, typeof(ObjectIdentifier), 2);
     timeRemaining = (UnsignedInteger)read(queue, typeof(UnsignedInteger), 3);
     try
     {
         ThreadLocalObjectTypeStack.set(monitoredObjectIdentifier.ObjectType);
         listOfValues = readSequenceOf(queue, typeof(PropertyValue), 4);
     }
     finally
     {
         ThreadLocalObjectTypeStack.remove();
     }
 }
Exemple #3
0
        public Result(ByteStream queue)
        {
            PropertyIdentifier = (PropertyIdentifier)read(queue, typeof(PropertyIdentifier), 2);
            PropertyArrayIndex = (UnsignedInteger)readOptional(queue, typeof(UnsignedInteger), 3);
            int contextId = peekTagNumber(queue);

            if (contextId == 4)
            {
                ReadResult = new Choice(4, readEncodable(queue, ThreadLocalObjectTypeStack.get(), PropertyIdentifier,
                                                         PropertyArrayIndex, 4));
            }
            else
            {
                ReadResult = new Choice(5, read(queue, typeof(BACnetError), 5));
            }
        }