示例#1
0
        public virtual MessageBuilder Append(MessagePartModel msgPart)
        {
            if (msgPart == null)
            {
                throw new ArgumentNullException("msgPart");
            }

            Message.MessageParts.Add(msgPart);
            return(this);
        }
示例#2
0
        public virtual bool Equals(MessagePartModel part)
        {
            if ((object) part == null) {
                return false;
            }

            if (f_IsHighlight != part.IsHighlight) {
                return false;
            }

            return true;
        }
示例#3
0
        public bool Equals(MessagePartModel part)
        {
            if ((object)part == null)
            {
                return(false);
            }

            if (f_IsHighlight != part.IsHighlight)
            {
                return(false);
            }

            return(true);
        }
示例#4
0
        public override bool Equals(MessagePartModel part)
        {
            var urlPart = part as UrlMessagePartModel;

            if ((object)urlPart == null)
            {
                return(false);
            }

            if (_Url != urlPart._Url)
            {
                return(false);
            }

            return(base.Equals(urlPart));
        }
示例#5
0
        public override bool Equals(MessagePartModel part)
        {
            var textPart = part as TextMessagePartModel;

            if ((object)textPart == null)
            {
                return(false);
            }

            if (!AttributesEquals(textPart))
            {
                return(false);
            }
            if (f_Text != textPart.Text)
            {
                return(false);
            }

            return(base.Equals(textPart));
        }
示例#6
0
        public override bool Equals(MessagePartModel part)
        {
            var imagePart = part as ImageMessagePartModel;

            if ((object)imagePart == null)
            {
                return(false);
            }

            if (f_ImageFileName != imagePart.ImageFileName)
            {
                return(false);
            }
            if (f_AlternativeText != imagePart.AlternativeText)
            {
                return(false);
            }

            return(base.Equals(imagePart));
        }
示例#7
0
        public virtual MessageBuilder Append(MessagePartModel msgPart)
        {
            if (msgPart == null) {
                throw new ArgumentNullException("msgPart");
            }

            Message.MessageParts.Add(msgPart);
            return this;
        }
示例#8
0
        public override bool Equals(MessagePartModel part)
        {
            var urlPart = part as UrlMessagePartModel;
            if ((object) urlPart == null) {
                return false;
            }

            if (_Url != urlPart._Url) {
                return false;
            }

            return base.Equals(urlPart);
        }
示例#9
0
        public virtual bool Equals(MessagePartModel part)
        {
            if ((object) part == null) {
                return false;
            }

            if (f_IsHighlight != part.IsHighlight) {
                return false;
            }

            return true;
        }
示例#10
0
        public override bool Equals(MessagePartModel part)
        {
            var textPart = part as TextMessagePartModel;
            if ((object) textPart == null) {
                return false;
            }

            if (!AttributesEquals(textPart)) {
                return false;
            }
            if (f_Text != textPart.Text) {
                return false;
            }

            return base.Equals(textPart);
        }