using System;
using SiberTek.Xenta.Managers;
namespace SiberTek.Xenta.Entities
{
/// <summary>
/// Represents an forum rank entity
/// </summary>
public class ForumRankInfo : BusinessEntityBase
{
#region Fields
private int _rankID;
private string _name;
private int _postCountThreshold;
private bool _isActive;
private DateTime _createdOn;
private DateTime _updatedOn;
#endregion
#region Constructors
public ForumRankInfo() : this(0, String.Empty, 0, false, DateTime.UtcNow, DateTime.UtcNow)
{
}
public ForumRankInfo(int rankID, string name, int postCountThreshold, bool isActive, DateTime createdOn, DateTime updatedOn)
{
_rankID = rankID;
_name = name;
_postCountThreshold = postCountThreshold;
_isActive = isActive;
_createdOn = createdOn;
_updatedOn = updatedOn;
}
#endregion
#region Properties
public int RankID
{
get
{
return _rankID;
}
set
{
_rankID = value;
}
}
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
public int PostCountThreshold
{
get
{
return _postCountThreshold;
}
set
{
_postCountThreshold = value;
}
}
public bool IsActive
{
get
{
return _isActive;
}
set
{
_isActive = value;
}
}
public DateTime CreatedOn
{
get
{
return _createdOn;
}
set
{
_createdOn = value;
}
}
public DateTime UpdatedOn
{
get
{
return _updatedOn;
}
set
{
_updatedOn = value;
}
}
#endregion
}
}