public static NotificationParameters createNotificationParameters(ByteStream queue) { // Get the first byte. It will tell us what the service type is. int type = popStart(queue); NotificationParameters result; if (type == ChangeOfBitString.TYPE_ID) // 0 { result = new ChangeOfBitString(queue); } else if (type == ChangeOfState.TYPE_ID) // 1 { result = new ChangeOfState(queue); } else if (type == ChangeOfValue.TYPE_ID) // 2 { result = new ChangeOfValue(queue); } else if (type == CommandFailure.TYPE_ID) // 3 { result = new CommandFailure(queue); } else if (type == FloatingLimit.TYPE_ID) // 4 { result = new FloatingLimit(queue); } else if (type == OutOfRange.TYPE_ID) // 5 { result = new OutOfRange(queue); } else if (type == ComplexEventType.TYPE_ID) // 6 { result = new ComplexEventType(queue); } else if (type == ChangeOfLifeSafety.TYPE_ID) // 8 { result = new ChangeOfLifeSafety(queue); } else if (type == Extended.TYPE_ID) // 9 { result = new Extended(queue); } else if (type == BufferReady.TYPE_ID) // 10 { result = new BufferReady(queue); } else if (type == UnsignedRange.TYPE_ID) // 11 { result = new UnsignedRange(queue); } else { throw new BACnetErrorException(ErrorClass.Property, ErrorCode.InvalidParameterDataType); } popEnd(queue, type); return(result); }
public static void Save(IValueSink sink, UnsignedRange value) { sink.EnterSequence(); Value <uint> .Save(sink, value.ExceedingValue); Value <StatusFlags> .Save(sink, value.StatusFlags); Value <uint> .Save(sink, value.ExceededLimit); sink.LeaveSequence(); }
public static void Save(IValueSink sink, UnsignedRange value) { sink.EnterSequence(); Value <uint> .Save(sink, value.TimeDelay); Value <uint> .Save(sink, value.LowLimit); Value <uint> .Save(sink, value.HighLimit); sink.LeaveSequence(); }
public UnsignedRangeWrapper(UnsignedRange item) { this.Item = item; }
public static void Save(IValueSink sink, UnsignedRange value) { sink.EnterSequence(); Value<uint>.Save(sink, value.ExceedingValue); Value<StatusFlags>.Save(sink, value.StatusFlags); Value<uint>.Save(sink, value.ExceededLimit); sink.LeaveSequence(); }
public static void Save(IValueSink sink, UnsignedRange value) { sink.EnterSequence(); Value<uint>.Save(sink, value.TimeDelay); Value<uint>.Save(sink, value.LowLimit); Value<uint>.Save(sink, value.HighLimit); sink.LeaveSequence(); }