Example #1
0
 public WarningItem(FailureMessage msg, Document doc)
 {
     CentralPath     = FileInfoUtil.GetCentralFilePath(doc).ToLower();
     FailingElements = msg.GetFailingElements().Select(x => doc.GetElement(x).UniqueId).ToList();
     DescriptionText = msg.GetDescriptionText();
     // (Konrad) I am not setting created by here on purpose. This will be set when warnings are reconciled.
     UniqueId = msg.GetFailureDefinitionId().Guid + string.Join("", FailingElements);
 }