Пример #1
0
        internal CMSContent(int authorUserId, CMSThread thread, byte contentStatus, byte contentType, string subject, string formattedBody, bool isApproved)
        {
            this.CMSThreadId      = thread.CMSThreadId;
            this.AuthorUserId     = authorUserId;
            this.CMSContentStatus = contentStatus;
            this.CMSContentType   = contentType;
            this.Subject          = subject;
            this.FormattedBody    = (formattedBody ?? string.Empty);
            this.IsApproved       = this.IsApproved;
            this.CMSContentLevel  = 0;
            this.CMSTotalRatings  = 0;
            this.CMSRatingSum     = 0;
            this.IsLocked         = false;

            this.CMSExtraInfo = new XElement("r");
        }
Пример #2
0
 internal CMSThreadRating(IUserBasic ratingUser, CMSThread ratedThread, short rating)
     : this(ratingUser, ratedThread.CMSThreadId, rating)
 {
 }