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(); } }
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(); } }
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)); } }