Example #1
0
        private static MattermostAttachment CloneAttachment(MattermostAttachment inAtt)
        {
            var outAtt = new MattermostAttachment
            {
                AuthorIcon = inAtt.AuthorIcon,
                AuthorLink = inAtt.AuthorLink,
                AuthorName = inAtt.AuthorName,
                Color      = inAtt.Color,
                Fallback   = inAtt.Fallback,
                Fields     = inAtt.Fields,
                ImageUrl   = inAtt.ImageUrl,
                Pretext    = inAtt.Pretext,
                ThumbUrl   = inAtt.ThumbUrl,
                Title      = inAtt.Title,
                TitleLink  = inAtt.TitleLink,
                Text       = ""
            };

            return(outAtt);
        }
        public MattermostAttachment Clone()
        {
            var outAtt = new MattermostAttachment
            {
                AuthorIcon = AuthorIcon,
                AuthorLink = AuthorLink,
                AuthorName = AuthorName,
                Color      = Color,
                Fallback   = Fallback,
                Fields     = Fields,
                ImageUrl   = ImageUrl,
                Pretext    = Pretext,
                ThumbUrl   = ThumbUrl,
                Title      = Title,
                TitleLink  = TitleLink,
                Text       = "",
                Actions    = Actions
            };

            return(outAtt);
        }