예제 #1
0
 public PagesCountArgs(
     PostTypeDto postType,
     int perPage,
     PublishStatus publishStatus             = PublishStatus.Any,
     FrontPageStatus frontPageStatus         = FrontPageStatus.Any,
     ItemAvailableStatus itemAvailableStatus = ItemAvailableStatus.Any
     ) : this(postType, null, perPage, publishStatus, frontPageStatus, itemAvailableStatus)
 {
 }
예제 #2
0
 protected PostArgs(
     PublishStatus publishStatus             = PublishStatus.Any,
     FrontPageStatus frontPageStatus         = FrontPageStatus.Any,
     ItemAvailableStatus itemAvailableStatus = ItemAvailableStatus.Any
     )
 {
     PublishStatus       = publishStatus;
     FrontPageStatus     = frontPageStatus;
     ItemAvailableStatus = itemAvailableStatus;
 }
예제 #3
0
 public PagesCountArgs(
     PostTypeDto postType,
     CategoryDto category,
     int perPage,
     PublishStatus publishStatus             = PublishStatus.Any,
     FrontPageStatus frontPageStatus         = FrontPageStatus.Any,
     ItemAvailableStatus itemAvailableStatus = ItemAvailableStatus.Any
     ) : base(publishStatus, frontPageStatus, itemAvailableStatus)
 {
     PostType = postType;
     Category = category;
     PerPage  = perPage;
 }
예제 #4
0
 public PostsGetterArgs(
     Guid?categoryId,
     int page,
     int perPage,
     PostTypeDto postType,
     IEnumerable <CategoryDto> excludedCategories = null,
     bool sortByPublish                      = true,
     PublishStatus publishStatus             = PublishStatus.Any,
     FrontPageStatus frontPageStatus         = FrontPageStatus.Any,
     ItemAvailableStatus itemAvailableStatus = ItemAvailableStatus.Any
     ) : base(publishStatus, frontPageStatus, itemAvailableStatus)
 {
     CategoryId         = categoryId;
     Page               = page;
     PerPage            = perPage;
     PostType           = postType;
     ExcludedCategories = excludedCategories;
     SortByPublish      = sortByPublish;
 }