using System;
using SiberTek.Xenta.Enums;
namespace SiberTek.Xenta.Data.Entities
{
/// <summary>
/// Represents an publication entity
/// </summary>
public class PublicationData : DataEntityBase
{
#region Fields
private int _publicationID;
private int _languageID;
private int _authorID;
private PublicationType _type;
private string _title;
private string _description;
private string _text;
private bool _isActive;
private DateTime _createdOn;
private DateTime? _publishedOn;
private DateTime _updatedOn;
#endregion
#region Constructors
public PublicationData() : this(0, 0, 0, PublicationType.News, String.Empty, String.Empty, String.Empty, false, DateTime.UtcNow, null, DateTime.UtcNow)
{
}
public PublicationData(int publicationID, int languageID, int authorID, PublicationType type, string title, string description, string text, bool isActive, DateTime createdOn, DateTime? publishedOn, DateTime updatedOn)
{
_publicationID = publicationID;
_languageID = languageID;
_authorID = authorID;
_type = type;
_title = title;
_description = description;
_text = text;
_isActive = isActive;
_createdOn = createdOn;
_publishedOn = publishedOn;
_updatedOn = updatedOn;
}
#endregion
#region Properties
public int PublicationID
{
get
{
return _publicationID;
}
set
{
_publicationID = value;
}
}
public int LanguageID
{
get
{
return _languageID;
}
set
{
_languageID = value;
}
}
public int AuthorID
{
get
{
return _authorID;
}
set
{
_authorID = value;
}
}
public PublicationType Type
{
get
{
return _type;
}
set
{
_type = value;
}
}
public string Title
{
get
{
return _title;
}
set
{
_title = value;
}
}
public string Description
{
get
{
return _description;
}
set
{
_description = value;
}
}
public string Text
{
get
{
return _text;
}
set
{
_text = value;
}
}
public bool IsActive
{
get
{
return _isActive;
}
set
{
_isActive = value;
}
}
public DateTime CreatedOn
{
get
{
return _createdOn;
}
set
{
_createdOn = value;
}
}
public DateTime? PublishedOn
{
get
{
return _publishedOn;
}
set
{
_publishedOn = value;
}
}
public DateTime UpdatedOn
{
get
{
return _updatedOn;
}
set
{
_updatedOn = value;
}
}
#endregion
}
}