public AcknowledgeAlarmRequest(uint acknowledgingProcessIdentifier, ObjectId eventObjectIdentifier, EventState eventStateAcknowledged, TimeStamp timeStamp, string acknowledgmentSource, TimeStamp timeOfAcknowledgment) { this.AcknowledgingProcessIdentifier = acknowledgingProcessIdentifier; this.EventObjectIdentifier = eventObjectIdentifier; this.EventStateAcknowledged = eventStateAcknowledged; this.TimeStamp = timeStamp; this.AcknowledgmentSource = acknowledgmentSource; this.TimeOfAcknowledgment = timeOfAcknowledgment; }
public UnconfirmedEventNotificationRequest(uint processIdentifier, ObjectId initiatingDeviceIdentifier, ObjectId eventObjectIdentifier, TimeStamp timeStamp, uint notificationClass, byte priority, EventType eventType, Option<string> messageText, NotifyType notifyType, Option<bool> ackRequired, Option<EventState> fromState, EventState toState, Option<NotificationParameters> eventValues) { this.ProcessIdentifier = processIdentifier; this.InitiatingDeviceIdentifier = initiatingDeviceIdentifier; this.EventObjectIdentifier = eventObjectIdentifier; this.TimeStamp = timeStamp; this.NotificationClass = notificationClass; this.Priority = priority; this.EventType = eventType; this.MessageText = messageText; this.NotifyType = notifyType; this.AckRequired = ackRequired; this.FromState = fromState; this.ToState = toState; this.EventValues = eventValues; }
public static void Save(IValueSink sink, TimeStamp value) { sink.EnterChoice((byte)value.Tag); switch(value.Tag) { case Tags.Time: Value<TimeWrapper>.Save(sink, (TimeWrapper)value); break; case Tags.SequenceNumber: Value<SequenceNumberWrapper>.Save(sink, (SequenceNumberWrapper)value); break; case Tags.DateTime: Value<DateTimeWrapper>.Save(sink, (DateTimeWrapper)value); break; default: throw new Exception(); } sink.LeaveChoice(); }