Esempio n. 1
0
        /// <summary>
        /// Determines whether the specified object is equal to the current object.
        /// </summary>
        /// <param name="obj">The object to compare with the current object.</param>
        /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            ThingReference Ref = obj as ThingReference;

            if (Ref == null)
            {
                return(false);
            }
            else
            {
                return(this.SameThing(Ref));
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Contains information about an error on a thing
 /// </summary>
 /// <param name="Thing">Thing reference.</param>
 /// <param name="Timestamp">Timestamp.</param>
 /// <param name="ErrorMessage">Error message.</param>
 public ThingError(ThingReference Thing, DateTime Timestamp, string ErrorMessage)
     : this(Thing.NodeId, Thing.SourceId, Thing.Partition, Timestamp, ErrorMessage)
 {
 }