class ForumThreadsListOptions
{
int? AuthorId { get; set; }
string ContentIds { get; set; }
DateTime? CreatedAfterDate { get; set; }
DateTime? CreatedBeforeDate { get; set; }
int? ForumId { get; set; }
string ForumThreadQueryType { get; set; }
int? GroupId { get; set; }
bool? IgnoreStickyPosts { get; set; }
bool? IncludeDiscussions { get; set; }
bool? IncludeQuestions { get; set; }
bool? IncludeSubGroups { get; set; }
int? PageIndex { get; set; }
int? PageSize { get; set; }
bool? PopularOnly { get; set; }
string SortBy { get; set; }
string SortOrder { get; set; }
}
|
名称 |
类型 |
描述 |
默认值 |
选项 |
|
AuthorId |
int? |
Author Id |
||
|
ContentIds |
string |
Comma separated list of ContentIds. Used to limit to a specific set of forum threads as well as sort order if SoryBy is set to ContentIdsOrder |
||
|
CreatedAfterDate |
DateTime? |
Include only threads created on or after |
||
|
CreatedBeforeDate |
DateTime? |
Include only threads created before |
||
|
ForumId |
int? |
Forum Id |
||
|
ForumThreadQueryType |
string |
Forum Thread Query Type |
All, Moderated, Unanswered, Answered, AnsweredNotVerified, AnsweredWithNotVerified, Active, Unread, MyThreads |
|
|
GroupId |
int? |
Group Id |
||
|
IgnoreStickyPosts |
bool? |
Determines whether to place sticky posts at the top of the list. |
||
|
IncludeDiscussions |
bool? |
Include discussion threads |
||
|
IncludeQuestions |
bool? |
Include question and answer threads |
||
|
IncludeSubGroups |
bool? |
Whether to include sub groups |
||
|
PageIndex |
int? |
Specify the page number of paged results to return. Zero-based index. |
||
|
PageSize |
int? |
Specify the number of results to return per page. |
||
|
PopularOnly |
bool? |
Whether to include popular threads only |
||
|
SortBy |
string |
'lastpost' is sorting by the latest Thread/Reply modification date; 'date' is sorting by thread created date |
lastpost, date, replies, views, topic, threadauthor, votes, ContentIdsOrder |
|
|
SortOrder |
string |
Default is Descending for lastpost, date, replies, and views. Default is Ascending for topic and threadauthor |
Ascending, Descending |