Exemple #1
0
        internal Message(CMSContent cmsContent, CMSThread cmsThread, CMSSection cmsSection)
        {
            this._CMSContent = cmsContent;

            if (cmsThread != null)
            {
                this.MessageBoardThread = new MessageBoardThread(cmsThread, cmsSection);
            }
        }
Exemple #2
0
        public Message(IUserBasic author, MessageBoardThread messageBoardThread, string subject, string formattedBody, int?parentMessageId, short messageLevel)
        {
            this._CMSContent = new CMSContent(author.UserId, messageBoardThread.CMSThread, 0, 0, subject, formattedBody, true);

            this.MessageBoardThread = messageBoardThread;

            this.ParentMessageId = parentMessageId;
            this.MessageLevel    = messageLevel;
        }
Exemple #3
0
 public Message(IUserBasic author, MessageBoardThread messageBoardThread, string subject, string formattedBody)
     : this(author, messageBoardThread, subject, formattedBody, null, 0)
 {
 }
Exemple #4
0
 public Message(IUserBasic author, MessageBoardThread messageBoardThread, string subject, string formattedBody, Message parentMessage)
     : this(author, messageBoardThread, subject, formattedBody
            , (parentMessage == null ? null : (int?)parentMessage.MessageId)
            , (short)(parentMessage == null ? 0 : (parentMessage.MessageLevel + 1)))
 {
 }