using System;
using System.Configuration;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.Blogs
{
///
/// Comment.
///
public class Comment
{
long id;
///
/// Gets or sets the identifier.
///
/// The identifier.
[DisplayName("Identifiant numérique de commentaire")]
public long Id {
get {
return id;
}
set {
id = value;
}
}
long postid;
///
/// Gets or sets the post identifier.
///
/// The post identifier.
[DisplayName("Identifiant numérique du billet commenté")]
public long PostId {
get {
return postid;
}
set {
postid = value;
}
}
///
/// Gets or sets the author of this comment.
///
/// From.
public string From { get; set; }
string content;
///
/// Gets or sets the comment text.
///
/// The comment text.
[DisplayName("Contenu")]
[Required(ErrorMessage = "S'il vous plait, saisissez un contenu")]
public string CommentText {
get {
return content;
}
set {
content = value;
}
}
private DateTime posted;
///
/// Gets or sets the posted.
///
/// The posted.
[DisplayName("Date de creation")]
public DateTime Posted {
get {
return posted;
}
set {
posted = value;
}
}
private DateTime modified;
///
/// Gets or sets the modified.
///
/// The modified.
[DisplayName("Date de modification")]
public DateTime Modified {
get {
return modified;
}
set {
modified = value;
}
}
///
/// Gets or sets a value indicating whether this is visible.
///
/// true if visible; otherwise, false.
public bool Visible { get; set ; }
}
}