protected override ServiceResult WriteAttribute(uint attributeId, DataValue value)
{
// check for status/timestamp writes.
if (value.StatusCode != StatusCodes.Good || value.ServerTimestamp != DateTime.MinValue || value.SourceTimestamp != DateTime.MinValue)
{
return StatusCodes.BadWriteNotSupported;
}
switch (attributeId)
{
case Attributes.IsAbstract:
{
IsAbstract = (bool)value.Value;
break;
}
default:
{
return base.WriteAttribute(attributeId, value);
}
}
return ServiceResult.Good;
}
#endregion