示例#1
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);
        }
示例#2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("AddSignature=" + AddSignature.ToString());
            sb.AppendLine("Content=" + Content.ToString());
            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("Html=" + Html.ToString());
            sb.AppendLine("Recipients=" + Recipients.ToString());
            sb.AppendLine("RecipientsBcc=" + RecipientsBcc.ToString());
            sb.AppendLine("RecipientsCc=" + RecipientsCc.ToString());
            sb.AppendLine("Subject=" + Subject.ToString());

            return(sb.ToString());
        }
示例#3
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);
        }