Exemplo n.º 1
0
        public override bool Equals(Object obj)
        {
            AuthorAlarm authorAlarm = obj as AuthorAlarm;

            if (authorAlarm == null || Convert.IsDBNull(authorAlarm))
            {
                return(false);
            }
            return(QuantityPost == authorAlarm.QuantityPost && QuantityTime == authorAlarm.QuantityTime &&
                   ParticipantsAuthors.SequenceEqual(authorAlarm.ParticipantsAuthors) &&
                   TypeOfAlarm.Equals(authorAlarm.TypeOfAlarm));
        }
Exemplo n.º 2
0
        public override bool Equals(Object obj)
        {
            EntityAlarm sentimentAlarm = obj as EntityAlarm;

            if (sentimentAlarm == null || Convert.IsDBNull(sentimentAlarm))
            {
                return(false);
            }

            return(QuantityPost == sentimentAlarm.QuantityPost && QuantityTime == sentimentAlarm.QuantityTime &&
                   Entity.Equals(sentimentAlarm.Entity) &&
                   TypeOfAlarm.Equals(sentimentAlarm.TypeOfAlarm));
        }