Пример #1
0
 public static VTOpenAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var remoteVTSessionIdentifier = Value<byte>.Load(stream);
     stream.LeaveSequence();
     return new VTOpenAck(remoteVTSessionIdentifier);
 }
 public static TimeSynchronizationRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var time = Value<DateAndTime>.Load(stream);
     stream.LeaveSequence();
     return new TimeSynchronizationRequest(time);
 }
Пример #3
0
 public static SetpointReference Load(IValueStream stream)
 {
     stream.EnterSequence();
     var reference = Value<Option<ObjectPropertyReference>>.Load(stream);
     stream.LeaveSequence();
     return new SetpointReference(reference);
 }
Пример #4
0
 public static AuthenticateAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var modifiedRandomNumber = Value<uint>.Load(stream);
     stream.LeaveSequence();
     return new AuthenticateAck(modifiedRandomNumber);
 }
Пример #5
0
 public static DeleteObjectRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var objectIdentifier = Value<ObjectId>.Load(stream);
     stream.LeaveSequence();
     return new DeleteObjectRequest(objectIdentifier);
 }
Пример #6
0
 public static DailySchedule Load(IValueStream stream)
 {
     stream.EnterSequence();
     var daySchedule = Value<ReadOnlyArray<TimeValue>>.Load(stream);
     stream.LeaveSequence();
     return new DailySchedule(daySchedule);
 }
Пример #7
0
 public static ActionList Load(IValueStream stream)
 {
     stream.EnterSequence();
     var action = Value<ReadOnlyArray<ActionCommand>>.Load(stream);
     stream.LeaveSequence();
     return new ActionList(action);
 }
Пример #8
0
 public static ReadPropertyMultipleAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var listOfReadAccessResults = Value<ReadOnlyArray<ReadAccessResult>>.Load(stream);
     stream.LeaveSequence();
     return new ReadPropertyMultipleAck(listOfReadAccessResults);
 }
 public static GetEventInformationRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var lastReceivedObjectIdentifier = Value<Option<ObjectId>>.Load(stream);
     stream.LeaveSequence();
     return new GetEventInformationRequest(lastReceivedObjectIdentifier);
 }
 public static WritePropertyMultipleRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var listOfwriteAccessSpecifications = Value<ReadOnlyArray<WriteAccessSpecification>>.Load(stream);
     stream.LeaveSequence();
     return new WritePropertyMultipleRequest(listOfwriteAccessSpecifications);
 }
Пример #11
0
        public static ConfirmedEventNotificationRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var processIdentifier = Value <uint> .Load(stream);

            var initiatingDeviceIdentifier = Value <ObjectId> .Load(stream);

            var eventObjectIdentifier = Value <ObjectId> .Load(stream);

            var timeStamp = Value <TimeStamp> .Load(stream);

            var notificationClass = Value <uint> .Load(stream);

            var priority = Value <byte> .Load(stream);

            var eventType = Value <EventType> .Load(stream);

            var messageText = Value <Option <string> > .Load(stream);

            var notifyType = Value <NotifyType> .Load(stream);

            var ackRequired = Value <Option <bool> > .Load(stream);

            var fromState = Value <Option <EventState> > .Load(stream);

            var toState = Value <EventState> .Load(stream);

            var eventValues = Value <Option <NotificationParameters> > .Load(stream);

            stream.LeaveSequence();
            return(new ConfirmedEventNotificationRequest(processIdentifier, initiatingDeviceIdentifier, eventObjectIdentifier, timeStamp, notificationClass, priority, eventType, messageText, notifyType, ackRequired, fromState, toState, eventValues));
        }
Пример #12
0
 public static VTCloseRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var listOfRemoteVTSessionIdentifiers = Value<ReadOnlyArray<byte>>.Load(stream);
     stream.LeaveSequence();
     return new VTCloseRequest(listOfRemoteVTSessionIdentifiers);
 }
        public static WritePropertyMultipleRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var listOfwriteAccessSpecifications = Value <ReadOnlyArray <WriteAccessSpecification> > .Load(stream);

            stream.LeaveSequence();
            return(new WritePropertyMultipleRequest(listOfwriteAccessSpecifications));
        }
Пример #14
0
 public static WhoIsRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var deviceInstanceRangeLowLimit = Value<Option<uint>>.Load(stream);
     var deviceInstanceRangeHighLimit = Value<Option<uint>>.Load(stream);
     stream.LeaveSequence();
     return new WhoIsRequest(deviceInstanceRangeLowLimit, deviceInstanceRangeHighLimit);
 }
Пример #15
0
        public static ReadPropertyMultipleAck Load(IValueStream stream)
        {
            stream.EnterSequence();
            var listOfReadAccessResults = Value <ReadOnlyArray <ReadAccessResult> > .Load(stream);

            stream.LeaveSequence();
            return(new ReadPropertyMultipleAck(listOfReadAccessResults));
        }
Пример #16
0
 public static VTOpenRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var vtClass = Value<VTClass>.Load(stream);
     var localVTSessionIdentifier = Value<byte>.Load(stream);
     stream.LeaveSequence();
     return new VTOpenRequest(vtClass, localVTSessionIdentifier);
 }
Пример #17
0
 public static ReadAccessResult Load(IValueStream stream)
 {
     stream.EnterSequence();
     var objectIdentifier = Value<ObjectId>.Load(stream);
     var listOfResults = Value<Option<ReadOnlyArray<ListOfResultsType>>>.Load(stream);
     stream.LeaveSequence();
     return new ReadAccessResult(objectIdentifier, listOfResults);
 }
Пример #18
0
 public static AtomicReadFileRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var fileIdentifier = Value<ObjectId>.Load(stream);
     var accessMethod = Value<AccessMethodType>.Load(stream);
     stream.LeaveSequence();
     return new AtomicReadFileRequest(fileIdentifier, accessMethod);
 }
Пример #19
0
 public static ReadAccessSpecification Load(IValueStream stream)
 {
     stream.EnterSequence();
     var objectIdentifier = Value<ObjectId>.Load(stream);
     var listOfPropertyReferences = Value<ReadOnlyArray<PropertyReference>>.Load(stream);
     stream.LeaveSequence();
     return new ReadAccessSpecification(objectIdentifier, listOfPropertyReferences);
 }
Пример #20
0
        public static VTOpenAck Load(IValueStream stream)
        {
            stream.EnterSequence();
            var remoteVTSessionIdentifier = Value <byte> .Load(stream);

            stream.LeaveSequence();
            return(new VTOpenAck(remoteVTSessionIdentifier));
        }
Пример #21
0
 public static VTDataAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var allNewDataAccepted = Value<bool>.Load(stream);
     var acceptedOctetCount = Value<Option<uint>>.Load(stream);
     stream.LeaveSequence();
     return new VTDataAck(allNewDataAccepted, acceptedOctetCount);
 }
        public static UTCTimeSynchronizationRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var time = Value <DateAndTime> .Load(stream);

            stream.LeaveSequence();
            return(new UTCTimeSynchronizationRequest(time));
        }
Пример #23
0
        public static DailySchedule Load(IValueStream stream)
        {
            stream.EnterSequence();
            var daySchedule = Value <ReadOnlyArray <TimeValue> > .Load(stream);

            stream.LeaveSequence();
            return(new DailySchedule(daySchedule));
        }
Пример #24
0
 public static Prescale Load(IValueStream stream)
 {
     stream.EnterSequence();
     var multiplier = Value<uint>.Load(stream);
     var moduloDivide = Value<uint>.Load(stream);
     stream.LeaveSequence();
     return new Prescale(multiplier, moduloDivide);
 }
Пример #25
0
        public static ActionList Load(IValueStream stream)
        {
            stream.EnterSequence();
            var action = Value <ReadOnlyArray <ActionCommand> > .Load(stream);

            stream.LeaveSequence();
            return(new ActionList(action));
        }
Пример #26
0
        public static AuthenticateAck Load(IValueStream stream)
        {
            stream.EnterSequence();
            var modifiedRandomNumber = Value <uint> .Load(stream);

            stream.LeaveSequence();
            return(new AuthenticateAck(modifiedRandomNumber));
        }
        public static GetEventInformationRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var lastReceivedObjectIdentifier = Value <Option <ObjectId> > .Load(stream);

            stream.LeaveSequence();
            return(new GetEventInformationRequest(lastReceivedObjectIdentifier));
        }
Пример #28
0
 public static VTCloseError Load(IValueStream stream)
 {
     stream.EnterSequence();
     var errorType = Value<Error>.Load(stream);
     var listOfVTSessionIdentifiers = Value<Option<ReadOnlyArray<byte>>>.Load(stream);
     stream.LeaveSequence();
     return new VTCloseError(errorType, listOfVTSessionIdentifiers);
 }
Пример #29
0
        public static DeleteObjectRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var objectIdentifier = Value <ObjectId> .Load(stream);

            stream.LeaveSequence();
            return(new DeleteObjectRequest(objectIdentifier));
        }
Пример #30
0
        public static SetpointReference Load(IValueStream stream)
        {
            stream.EnterSequence();
            var reference = Value <Option <ObjectPropertyReference> > .Load(stream);

            stream.LeaveSequence();
            return(new SetpointReference(reference));
        }
Пример #31
0
 public static GetEventInformationAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var listOfEventSummaries = Value<ReadOnlyArray<ListOfEventSummariesType>>.Load(stream);
     var moreEvents = Value<bool>.Load(stream);
     stream.LeaveSequence();
     return new GetEventInformationAck(listOfEventSummaries, moreEvents);
 }
Пример #32
0
        public static VTCloseRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var listOfRemoteVTSessionIdentifiers = Value <ReadOnlyArray <byte> > .Load(stream);

            stream.LeaveSequence();
            return(new VTCloseRequest(listOfRemoteVTSessionIdentifiers));
        }
Пример #33
0
 public static AtomicReadFileAck Load(IValueStream stream)
 {
     stream.EnterSequence();
     var endOfFile = Value<bool>.Load(stream);
     var accessMethod = Value<AccessMethodType>.Load(stream);
     stream.LeaveSequence();
     return new AtomicReadFileAck(endOfFile, accessMethod);
 }
Пример #34
0
 public static NetworkAddress Load(IValueStream stream)
 {
     stream.EnterSequence();
     var networkNumber = Value<ushort>.Load(stream);
     var macAddress = Value<byte[]>.Load(stream);
     stream.LeaveSequence();
     return new NetworkAddress(networkNumber, macAddress);
 }
Пример #35
0
 public static PropertyReference Load(IValueStream stream)
 {
     stream.EnterSequence();
     var propertyIdentifier = Value<PropertyIdentifier>.Load(stream);
     var propertyArrayIndex = Value<Option<uint>>.Load(stream);
     stream.LeaveSequence();
     return new PropertyReference(propertyIdentifier, propertyArrayIndex);
 }
Пример #36
0
 public static DateAndTime Load(IValueStream stream)
 {
     stream.EnterSequence();
     var date = Value<Date>.Load(stream);
     var time = Value<Time>.Load(stream);
     stream.LeaveSequence();
     return new DateAndTime(date, time);
 }
Пример #37
0
 public static SessionKey Load(IValueStream stream)
 {
     stream.EnterSequence();
     var key = Value<byte[]>.Load(stream);
     var peerAddress = Value<NetworkAddress>.Load(stream);
     stream.LeaveSequence();
     return new SessionKey(key, peerAddress);
 }
Пример #38
0
 public static ReinitializeDeviceRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var reinitializedStateOfDevice = Value<ReinitializedStateOfDeviceType>.Load(stream);
     var password = Value<Option<string>>.Load(stream);
     stream.LeaveSequence();
     return new ReinitializeDeviceRequest(reinitializedStateOfDevice, password);
 }
Пример #39
0
 public static RecipientProcess Load(IValueStream stream)
 {
     stream.EnterSequence();
     var recipient = Value<Recipient>.Load(stream);
     var processIdentifier = Value<uint>.Load(stream);
     stream.LeaveSequence();
     return new RecipientProcess(recipient, processIdentifier);
 }
Пример #40
0
 public static AddressBinding Load(IValueStream stream)
 {
     stream.EnterSequence();
     var deviceObjectIdentifier = Value<ObjectId>.Load(stream);
     var deviceAddress = Value<NetworkAddress>.Load(stream);
     stream.LeaveSequence();
     return new AddressBinding(deviceObjectIdentifier, deviceAddress);
 }
 public static ReadPropertyConditionalRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var objectSelectionCriteria = Value<ObjectSelectionCriteriaType>.Load(stream);
     var listOfPropertyReferences = Value<Option<ReadOnlyArray<PropertyReference>>>.Load(stream);
     stream.LeaveSequence();
     return new ReadPropertyConditionalRequest(objectSelectionCriteria, listOfPropertyReferences);
 }
Пример #42
0
 public static CreateObjectRequest Load(IValueStream stream)
 {
     stream.EnterSequence();
     var objectSpecifier = Value<ObjectSpecifierType>.Load(stream);
     var listOfInitialValues = Value<Option<ReadOnlyArray<PropertyValue>>>.Load(stream);
     stream.LeaveSequence();
     return new CreateObjectRequest(objectSpecifier, listOfInitialValues);
 }
Пример #43
0
        public static PropertyReference Load(IValueStream stream)
        {
            stream.EnterSequence();
            var propertyIdentifier = Value <PropertyIdentifier> .Load(stream);

            var propertyArrayIndex = Value <Option <uint> > .Load(stream);

            stream.LeaveSequence();
            return(new PropertyReference(propertyIdentifier, propertyArrayIndex));
        }
Пример #44
0
        public static Error Load(IValueStream stream)
        {
            stream.EnterSequence();
            var errorClass = Value <ErrorClassType> .Load(stream);

            var errorCode = Value <ErrorCodeType> .Load(stream);

            stream.LeaveSequence();
            return(new Error(errorClass, errorCode));
        }
Пример #45
0
            public static new BufferReady Load(IValueStream stream)
            {
                stream.EnterSequence();
                var notificationThreshold = Value <uint> .Load(stream);

                var previousNotificationCount = Value <uint> .Load(stream);

                stream.LeaveSequence();
                return(new BufferReady(notificationThreshold, previousNotificationCount));
            }
Пример #46
0
        public static AddressBinding Load(IValueStream stream)
        {
            stream.EnterSequence();
            var deviceObjectIdentifier = Value <ObjectId> .Load(stream);

            var deviceAddress = Value <NetworkAddress> .Load(stream);

            stream.LeaveSequence();
            return(new AddressBinding(deviceObjectIdentifier, deviceAddress));
        }
Пример #47
0
        public static WhoIsRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var deviceInstanceRangeLowLimit = Value <Option <uint> > .Load(stream);

            var deviceInstanceRangeHighLimit = Value <Option <uint> > .Load(stream);

            stream.LeaveSequence();
            return(new WhoIsRequest(deviceInstanceRangeLowLimit, deviceInstanceRangeHighLimit));
        }
Пример #48
0
        public static SessionKey Load(IValueStream stream)
        {
            stream.EnterSequence();
            var key = Value <byte[]> .Load(stream);

            var peerAddress = Value <NetworkAddress> .Load(stream);

            stream.LeaveSequence();
            return(new SessionKey(key, peerAddress));
        }
Пример #49
0
        public static VTOpenRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var vtClass = Value <VTClass> .Load(stream);

            var localVTSessionIdentifier = Value <byte> .Load(stream);

            stream.LeaveSequence();
            return(new VTOpenRequest(vtClass, localVTSessionIdentifier));
        }
Пример #50
0
        public static VTDataAck Load(IValueStream stream)
        {
            stream.EnterSequence();
            var allNewDataAccepted = Value <bool> .Load(stream);

            var acceptedOctetCount = Value <Option <uint> > .Load(stream);

            stream.LeaveSequence();
            return(new VTDataAck(allNewDataAccepted, acceptedOctetCount));
        }
Пример #51
0
        public static AtomicWriteFileRequest Load(IValueStream stream)
        {
            stream.EnterSequence();
            var fileIdentifier = Value <ObjectId> .Load(stream);

            var accessMethod = Value <AccessMethodType> .Load(stream);

            stream.LeaveSequence();
            return(new AtomicWriteFileRequest(fileIdentifier, accessMethod));
        }
Пример #52
0
        public static ReadAccessResult Load(IValueStream stream)
        {
            stream.EnterSequence();
            var objectIdentifier = Value <ObjectId> .Load(stream);

            var listOfResults = Value <Option <ReadOnlyArray <ListOfResultsType> > > .Load(stream);

            stream.LeaveSequence();
            return(new ReadAccessResult(objectIdentifier, listOfResults));
        }
Пример #53
0
            public static new ChangeOfValue Load(IValueStream stream)
            {
                stream.EnterSequence();
                var timeDelay = Value <uint> .Load(stream);

                var covCriteria = Value <COVCriteria> .Load(stream);

                stream.LeaveSequence();
                return(new ChangeOfValue(timeDelay, covCriteria));
            }
Пример #54
0
            public static new ChangeOfState Load(IValueStream stream)
            {
                stream.EnterSequence();
                var timeDelay = Value <uint> .Load(stream);

                var listOfValues = Value <ReadOnlyArray <PropertyStates> > .Load(stream);

                stream.LeaveSequence();
                return(new ChangeOfState(timeDelay, listOfValues));
            }
Пример #55
0
            public static new ChangeOfBitstring Load(IValueStream stream)
            {
                stream.EnterSequence();
                var referencedBitstring = Value <BitString56> .Load(stream);

                var statusFlags = Value <StatusFlags> .Load(stream);

                stream.LeaveSequence();
                return(new ChangeOfBitstring(referencedBitstring, statusFlags));
            }
Пример #56
0
            public static new ChangeOfState Load(IValueStream stream)
            {
                stream.EnterSequence();
                var newState = Value <PropertyStates> .Load(stream);

                var statusFlags = Value <StatusFlags> .Load(stream);

                stream.LeaveSequence();
                return(new ChangeOfState(newState, statusFlags));
            }
Пример #57
0
        public static Prescale Load(IValueStream stream)
        {
            stream.EnterSequence();
            var multiplier = Value <uint> .Load(stream);

            var moduloDivide = Value <uint> .Load(stream);

            stream.LeaveSequence();
            return(new Prescale(multiplier, moduloDivide));
        }
Пример #58
0
            public static new ChangeOfValue Load(IValueStream stream)
            {
                stream.EnterSequence();
                var newValue = Value <NewValue> .Load(stream);

                var statusFlags = Value <StatusFlags> .Load(stream);

                stream.LeaveSequence();
                return(new ChangeOfValue(newValue, statusFlags));
            }
Пример #59
0
        public static VTCloseError Load(IValueStream stream)
        {
            stream.EnterSequence();
            var errorType = Value <Error> .Load(stream);

            var listOfVTSessionIdentifiers = Value <Option <ReadOnlyArray <byte> > > .Load(stream);

            stream.LeaveSequence();
            return(new VTCloseError(errorType, listOfVTSessionIdentifiers));
        }
Пример #60
0
            public static new CommandFailure Load(IValueStream stream)
            {
                stream.EnterSequence();
                var timeDelay = Value <uint> .Load(stream);

                var feedbackPropertyReference = Value <DeviceObjectPropertyReference> .Load(stream);

                stream.LeaveSequence();
                return(new CommandFailure(timeDelay, feedbackPropertyReference));
            }