Server.Comment Class Reference

This class represents a single comment to a review, parent or another comment. A Comment inherits from the abstract UniquelyIdentifiable class, to ensure it can be retrieved again. More...

Inheritance diagram for Server.Comment:

Inheritance graph
[legend]
Collaboration diagram for Server.Comment:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Comment (int id, Person poster, string title, string text, CommentType type)
 Constructs a new comment object.
 Comment (int id, Person poster, string title, string text, CommentType type, DateTime time)
 Constructs a new comment object.

Properties

Person Poster [get]
 Return the Person who has made the comment.
List< CommentComments [get]
 Return a list of comments to this comment.
DateTime Date [get]
 Return the creation time of the comment. A DataTime.
string Text [get, set]
 Get or set the text of this comment.
string Title [get, set]
 Get or set the title of this comment.
CommentType CommentType [get, set]
 Gets or sets the type of comment.

Private Attributes

Person poster
string title
string text
DateTime date
List< Commentcomments
CommentType type

Detailed Description

This class represents a single comment to a review, parent or another comment. A Comment inherits from the abstract UniquelyIdentifiable class, to ensure it can be retrieved again.

Definition at line 14 of file Comment.cs.


Constructor & Destructor Documentation

Server.Comment.Comment ( int  id,
Person  poster,
string  title,
string  text,
CommentType  type 
)

Constructs a new comment object.

Parameters:
poster The person who made the comment.
title The title/subject of the comment.
text The actual text of the comment.
type The type of comment. E.g. reference or literature.

Definition at line 30 of file Comment.cs.

References Server.Comment.comments, and Server.Comment.poster.

Server.Comment.Comment ( int  id,
Person  poster,
string  title,
string  text,
CommentType  type,
DateTime  time 
)

Constructs a new comment object.

Parameters:
poster The person who made the comment.
title The title/subject of the comment.
text The actual text of the comment.
type The type of comment. E.g. reference or literature.
time Time of posting.

Definition at line 48 of file Comment.cs.

References Server.Comment.comments, and Server.Comment.poster.


Property Documentation

Person Server.Comment.Poster [get]

Return the Person who has made the comment.

Definition at line 63 of file Comment.cs.

Referenced by Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().

List<Comment> Server.Comment.Comments [get]

Return a list of comments to this comment.

Definition at line 71 of file Comment.cs.

Referenced by Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().

DateTime Server.Comment.Date [get]

Return the creation time of the comment. A DataTime.

Definition at line 79 of file Comment.cs.

Referenced by Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().

string Server.Comment.Text [get, set]

Get or set the text of this comment.

Definition at line 87 of file Comment.cs.

Referenced by Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().

string Server.Comment.Title [get, set]

Get or set the title of this comment.

Definition at line 96 of file Comment.cs.

Referenced by Server.Data.BinaryData.SerializeComment(), and Server.Test.PersistentDataTest.TestComments().

CommentType Server.Comment.CommentType [get, set]

Gets or sets the type of comment.

Definition at line 105 of file Comment.cs.


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 06:24:55 2006 for SCRAML by  doxygen 1.5.1-p1