public override bool Equals(object obj) { if (obj == null) { return(false); } RuleEN t = obj as RuleEN; if (t == null) { return(false); } if (Id.Equals(t.Id)) { return(true); } else { return(false); } }
public RuleEN(RuleEN rule) { this.init(Id, rule.Name, rule.IsEnabled, rule.Condition, rule.RuleAction, rule.IoTScenario, rule.IntervalTime, rule.Description); }