Пример #1
0
        public override bool Equals(object o)
        {
            if (!(o is EmailClient))
            {
                return(false);
            }
            EmailClient v = o as EmailClient;

            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public override bool Equals(object o)
        {
            if (!(o is EmailSmtp))
            {
                return(false);
            }
            EmailSmtp v = o as EmailSmtp;

            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!Address.Equals(v.Address))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Password.Equals(v.Password))
            {
                return(false);
            }
            if (!Port.Equals(v.Port))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!SameTextAsClientMail.Equals(v.SameTextAsClientMail))
            {
                return(false);
            }
            if (!Server.Equals(v.Server))
            {
                return(false);
            }
            if (!Ssl.Equals(v.Ssl))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }
            if (!UserName.Equals(v.UserName))
            {
                return(false);
            }

            return(true);
        }
Пример #3
0
        public override bool Equals(object o)
        {
            if (!(o is EmailSmtpSettings))
            {
                return(false);
            }
            EmailSmtpSettings v = o as EmailSmtpSettings;

            if (!AccountId.Equals(v.AccountId))
            {
                return(false);
            }
            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!AdditionalAttachments.SequenceEqual(v.AdditionalAttachments))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Html.Equals(v.Html))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!RecipientsBcc.Equals(v.RecipientsBcc))
            {
                return(false);
            }
            if (!RecipientsCc.Equals(v.RecipientsCc))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }
            return(true);
        }
Пример #4
0
        public override bool Equals(object o)
        {
            if (!(o is EmailClientSettings))
            {
                return(false);
            }
            EmailClientSettings v = o as EmailClientSettings;

            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Html.Equals(v.Html))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!RecipientsBcc.Equals(v.RecipientsBcc))
            {
                return(false);
            }
            if (!RecipientsCc.Equals(v.RecipientsCc))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }

            return(true);
        }