Comment.cs

00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004 using Shared;
00005 
00006 namespace Server
00007 {
00013     [Serializable]
00014     public class Comment : UniquelyIdentifiable
00015     {
00016         private Person poster;
00017         private string title;
00018         private string text;
00019         private DateTime date;
00020         private List<Comment> comments;
00021         private CommentType type;
00022 
00030         public Comment(int id, Person poster, string title, string text, CommentType type) : base(id) 
00031         {
00032             this.title = title;
00033             this.text = text;
00034             this.poster = poster;
00035             this.date = DateTime.Now;
00036             this.type = type;
00037             comments = new List<Comment>();
00038         }
00039 
00048         public Comment(int id, Person poster, string title, string text, CommentType type, DateTime time)
00049             : base(id)
00050         {
00051             this.title = title;
00052             this.text = text;
00053             this.poster = poster;
00054             this.date = time;
00055             this.type = type;
00056             comments = new List<Comment>();
00057         }
00058         
00062         public Person Poster
00063         {
00064             get { return poster; }
00065         }
00066 
00070         public List<Comment> Comments
00071         {
00072             get { return comments; }
00073         }
00074 
00078         public DateTime Date
00079         {
00080             get { return date; }
00081         }
00082 
00086         public string Text
00087         {
00088             get { return text; }
00089             set { text = value; }
00090         }
00091 
00095         public string Title
00096         {
00097             get { return title; }
00098             set { title = value; }
00099         }
00100 
00104         public CommentType CommentType
00105         {
00106             get { return type; }
00107             set { type = value; }
00108         }
00109 
00110     }
00111 }

Generated on Thu Dec 21 06:21:56 2006 for SCRAML by  doxygen 1.5.1-p1