public Attack (Event Event) { setUser(Event.GetUser()); setDetectionPoint(Event.GetDetectionPoint()); setTimestamp(Event.GetTimestamp()); setDetectionSystemId(Event.GetDetectionSystemId()); setResource(Event.getResource()); }
public Attack(Event Event) { setUser(Event.GetUser()); setDetectionPoint(Event.GetDetectionPoint()); setTimestamp(Event.GetTimestamp()); setDetectionSystemId(Event.GetDetectionSystemId()); setResource(Event.getResource()); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } Event other = (Event)obj; /*return new EqualsBuilder(). * Append(user, other.GetUser()). * Append(detectionPoint, other.GetDetectionPoint()). * Append(timestamp, other.GetTimestamp()). * Append(detectionSystemId, other.GetDetectionSystemId()). * Append(resource, other.getResource()). * isEquals();*/ if (user.Equals(other.GetUser()) && detectionPoint.Equals(other.GetDetectionPoint()) && timestamp.Equals(other.GetTimestamp()) && detectionSystemId.Equals(other.GetDetectionSystemId()) && resource.Equals(other.getResource())) { return(true); } else { return(false); } }