public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } Conversation other = (Conversation)obj; if (Msisdn == null) { if (other.Msisdn != null) { return(false); } } else if (Msisdn.CompareTo(other.Msisdn) != 0) { return(false); } if (OnHike != other.OnHike) { return(false); } return(true); }
public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } ConvMessage other = (ConvMessage)obj; if (IsSent != other.IsSent) { return(false); } if (Message == null) { if (other.Message != null) { return(false); } } else if (Message.CompareTo(other.Message) != 0) { return(false); } if (Msisdn == null) { if (other.Msisdn != null) { return(false); } } else if (Msisdn.CompareTo(other.Msisdn) != 0) { return(false); } if (MessageStatus.Equals(other.MessageStatus)) { return(false); } if (Timestamp != other.Timestamp) { return(false); } return(true); }