public virtual MessageBuilder Append(MessagePartModel msgPart) { if (msgPart == null) { throw new ArgumentNullException("msgPart"); } Message.MessageParts.Add(msgPart); return(this); }
public virtual bool Equals(MessagePartModel part) { if ((object) part == null) { return false; } if (f_IsHighlight != part.IsHighlight) { return false; } return true; }
public bool Equals(MessagePartModel part) { if ((object)part == null) { return(false); } if (f_IsHighlight != part.IsHighlight) { return(false); } return(true); }
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)); }
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)); }
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)); }
public virtual MessageBuilder Append(MessagePartModel msgPart) { if (msgPart == null) { throw new ArgumentNullException("msgPart"); } Message.MessageParts.Add(msgPart); return this; }
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); }
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); }