📄 sitestatistics.cs
字号:
// *********************************************************************
// TotalPosts
//
/// <summary>
/// Specifies the total number of posts made to the board.
/// </summary>
// ***********************************************************************/
public int TotalPosts {
get { return totalPosts; }
set {
if (value < 0)
totalPosts = 0;
else
totalPosts = value;
}
}
// *********************************************************************
// TotalThreads
//
/// <summary>
/// Specifies the total number of threads (top-level posts) made.
/// </summary>
// ***********************************************************************/
public int TotalThreads {
get { return totalThreads; }
set {
if (value < 0)
totalThreads = 0;
else
totalThreads = value;
}
}
// *********************************************************************
// NewPostsInPast24Hours
//
/// <summary>
/// Specifies the number of posts made in the last 24 hours.
/// </summary>
// ***********************************************************************/
public int NewPostsInPast24Hours {
get { return newPostsInPast24Hours; }
set {
if (value < 0)
newPostsInPast24Hours = 0;
else
newPostsInPast24Hours = value;
}
}
// *********************************************************************
// NewUsersInPast24Hours
//
/// <summary>
/// Specifies the number of users added in the last 24 hours.
/// </summary>
// ***********************************************************************/
public int NewUsersInPast24Hours {
get { return newUsersInPast24Hours; }
set {
if (value < 0)
newUsersInPast24Hours = 0;
else
newUsersInPast24Hours = value;
}
}
// *********************************************************************
// NewThreadsInPast24Hours
//
/// <summary>
/// Specifies the number of threads (top-level posts) made in the last 24 hours.
/// </summary>
// ***********************************************************************/
public int NewThreadsInPast24Hours {
get { return newThreadsInPast24Hours; }
set {
if (value < 0)
newThreadsInPast24Hours = 0;
else
newThreadsInPast24Hours = value;
}
}
// *********************************************************************
// MostViewsPostID
//
/// <summary>
/// The Post with the most number of views in the past 3 days
/// </summary>
// ***********************************************************************/
public int MostViewsPostID {
get { return mostViewsPostId; }
set {
if (value < 0)
mostViewsPostId = 0;
else
mostViewsPostId = value;
}
}
// *********************************************************************
// MostViewsSubject
//
/// <summary>
/// The Post with the most number of views in the past 3 days
/// </summary>
// ***********************************************************************/
public String MostViewsSubject {
get { return mostViewsSubject; }
set {
mostViewsSubject = value;
}
}
// *********************************************************************
// MostActivePostID
//
/// <summary>
/// The Post with the most replies in the past 3 days.
/// </summary>
// ***********************************************************************/
public int MostActivePostID {
get { return mostActivePostId; }
set {
if (value < 0)
mostActivePostId = 0;
else
mostActivePostId = value;
}
}
// *********************************************************************
// MostViewsSubject
//
/// <summary>
/// The Post with the most replies in the past 3 days.
/// </summary>
// ***********************************************************************/
public String MostActiveSubject {
get { return mostActiveSubject; }
set {
mostActiveSubject = value;
}
}
// *********************************************************************
// MostReadPostID
//
/// <summary>
/// The Post the most number of users have read in the past 3 days
/// </summary>
// ***********************************************************************/
public int MostReadPostID {
get { return mostReadPostId; }
set {
if (value < 0)
mostReadPostId = 0;
else
mostReadPostId = value;
}
}
// *********************************************************************
// MostReadPostSubject
//
/// <summary>
/// The Post the most number of users have read in the past 3 days
/// </summary>
// ***********************************************************************/
public String MostReadPostSubject {
get { return mostReadPostSubject; }
set {
mostReadPostSubject = value;
}
}
// *********************************************************************
// MostActiveUser
//
/// <summary>
/// The most active user
/// </summary>
// ***********************************************************************/
public String MostActiveUser {
get { return mostActiveUser; }
set {
mostActiveUser = value;
}
}
public int MostActiveUserID {
get {
return mostActiveUserID;
}
set {
mostActiveUserID = value;
}
}
// *********************************************************************
// NewestUser
//
/// <summary>
/// The newest user to join
/// </summary>
// ***********************************************************************/
public String NewestUser {
get { return newestUser; }
set {
newestUser = value;
}
}
// *********************************************************************
// NewestUserID
//
/// <summary>
/// The newest user to join
/// </summary>
// ***********************************************************************/
public int NewestUserID {
get { return newestUserID; }
set {
newestUserID = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -