C# Class Malevich._Default.AbstractedComment

In-memory representation of a comment in a form ready for rendering.
Datei anzeigen Open project: daptiv/Malevich

Public Properties

Property Type Description
CommentText string
IsReadOnly bool
Line int
LineStamp long
TimeStamp System.DateTime
UserName string
VersionId int

Public Methods

Method Description
AbstractedComment ( int versionId, int line, long lineStamp, string userName, System.DateTime timeStamp, bool isReadOnly, string commentText ) : System

Trivial constructor. Sets the fields.

JavaScriptId ( string prefix ) : string

Comment Id to be used in HTML.

Method Details

AbstractedComment() public method

Trivial constructor. Sets the fields.
public AbstractedComment ( int versionId, int line, long lineStamp, string userName, System.DateTime timeStamp, bool isReadOnly, string commentText ) : System
versionId int File version id.
line int Line.
lineStamp long Line stamp.
userName string User name of the commenter.
timeStamp System.DateTime Time when comment was made.
isReadOnly bool Whether the comment is read-only.
commentText string Text of the comment.
return System

JavaScriptId() public method

Comment Id to be used in HTML.
public JavaScriptId ( string prefix ) : string
prefix string String to prefix the comment with - should be "base_" or "diff_".
return string

Property Details

CommentText public_oe property

The text of the comment.
public string CommentText
return string

IsReadOnly public_oe property

Whether the comment is read-only. A comment is read-only if it has been submitted.
public bool IsReadOnly
return bool

Line public_oe property

Comment's line.
public int Line
return int

LineStamp public_oe property

Ordering within the line.
public long LineStamp
return long

TimeStamp public_oe property

Time when comment was made.
public DateTime,System TimeStamp
return System.DateTime

UserName public_oe property

Who has made this comment.
public string UserName
return string

VersionId public_oe property

Version id of the file.
public int VersionId
return int