Exemplo n.º 1
0
        public static ThreadDataReleaseStatus ToThreadDataReleaseStatus(this ThreadReleaseStatus source)
        {
            switch (source)
            {
            case ThreadReleaseStatus.Open:
                return(ThreadDataReleaseStatus.Open);

            case ThreadReleaseStatus.Close:
                return(ThreadDataReleaseStatus.Close);

            case ThreadReleaseStatus.Deleted:
                return(ThreadDataReleaseStatus.Deleted);

            default:
                return(ThreadDataReleaseStatus.Open);
            }
        }
Exemplo n.º 2
0
 public Thread(Guid id, Guid sectionId, Guid authorId, DateTime createDate, int marks, ThreadReleaseStatus releaseStatus, int totalPosts, Guid mostRecentReplierId, DateTime updateDate)
     : base(id)
 {
     this.SectionId           = sectionId;
     this.AuthorId            = authorId;
     this.CreateDate          = createDate;
     this.UpdateDate          = updateDate;
     this.TotalViews          = 0;
     this.StickDate           = new DateTime(1753, 1, 1);
     this.Status              = ThreadStatus.Normal;
     this.ReleaseStatus       = releaseStatus;
     this.TotalPosts          = totalPosts;
     this.MostRecentReplierId = mostRecentReplierId;
 }
Exemplo n.º 3
0
 public Thread(Guid sectionId, Guid authorId, DateTime createDate, int marks, ThreadReleaseStatus releaseStatus, int totalPosts, Guid mostRecentReplierId, DateTime updateDate)
     : this(Guid.NewGuid(), sectionId, authorId, createDate, marks, releaseStatus, totalPosts, mostRecentReplierId, updateDate)
 {
 }