Example #1
0
 public ObjectCreation(object trigger, string objectId, ObjectTypeInfo objectTypeInfo,
                       int templateId = 0, bool isWeak = false, string displayName = null) :
     base(trigger, objectId, objectTypeInfo, templateId)
 {
     IsWeak      = isWeak;
     DisplayName = displayName;
 }
Example #2
0
 public Event(object trigger, string objectId, ObjectTypeInfo objectType, int templateId)
 {
     ValidateObjectId(objectId);
     Trigger    = trigger;
     ObjectId   = objectId;
     ObjectType = objectType;
     TemplateId = templateId;
 }
Example #3
0
 internal static bool Equals(ObjectTypeInfo obj1, ObjectTypeInfo obj2)
 {
     return
         (obj1.TypeName == obj2.TypeName &&
          obj1.IsTimeless == obj2.IsTimeless &&
          obj1.PrimaryPropertyName == obj2.PrimaryPropertyName &&
          obj1.CommentPropertyName == obj2.CommentPropertyName);
 }
Example #4
0
 public PropertyChange(object trigger, string objectId, ObjectTypeInfo objectTypeInfo, string propertyName = null, string value = null, ValueType valueType = ValueType.Scalar, string oldValue = null, int templateId = 0)
     : base(trigger, objectId, objectTypeInfo, templateId)
 {
     PropertyName = propertyName;
     Value        = value;
     OldValue     = oldValue;
     ValueType    = valueType;
 }
Example #5
0
 public ParentChildRelationChange(object trigger, string objectId, ObjectTypeInfo objectTypeInfo, string newParentObjectId = null, int templateId = 0, bool isWeak = false)
     : base(trigger, objectId, objectTypeInfo, templateId)
 {
     NewParentObjectId = newParentObjectId;
     IsWeak            = isWeak;
 }
Example #6
0
 public ObjectDeletion(object trigger, string objectId, ObjectTypeInfo objectTypeInfo, int templateId = 0)
     : base(trigger, objectId, objectTypeInfo, templateId)
 {
 }