C# Class Engage.Dnn.Publish.Comment

Inheritance: UserFeedback.Comment
Show file Open project: EngageSoftware/Engage-Publish

Public Methods

Method Description
Comment ( ) : System

Initializes a new instance of the Comment class.

Comment ( int itemVersionId, int userId, string commentText, int approvalStatusId, int ratingId, string firstName, string lastName, string emailAddress, string url ) : System

Initializes a new instance of the Comment class.

CommentsWaitingForApprovalCount ( int portalId, int authorUserId ) : int
Delete ( ) : void

Deletes this instance.

Save ( ) : void

Saves this instance.

Private Methods

Method Description
Comment ( int commentId, int itemVersionId, int userId, string commentText, int approvalStatusId, System.DateTime createdDate, System.DateTime lastUpdated, int ratingId, string firstName, string lastName, string emailAddress, string url ) : System

Initializes a new instance of the Comment class.

FillComment ( IDataRecord dr ) : UserFeedback.Comment

Fills a Comment from an IDataReader.

GetCommentsByItemId ( int itemId, int approvalStatusId ) : List

Method Details

Comment() public method

Initializes a new instance of the Comment class.
public Comment ( ) : System
return System

Comment() public method

Initializes a new instance of the Comment class.
public Comment ( int itemVersionId, int userId, string commentText, int approvalStatusId, int ratingId, string firstName, string lastName, string emailAddress, string url ) : System
itemVersionId int The item version id.
userId int The user id, or null is the user is unauthenticated.
commentText string The comment itself.
approvalStatusId int The approval status id.
ratingId int This is not currently implemented. The rating id, or null if the is not associated with a . This is not currently implemented.
firstName string First name of the commenter. Will be truncated if longer than .
lastName string Last name of the commenter. Will be truncated if longer than .
emailAddress string Email address of the commenter. Will be truncated if longer than .
url string URL of the commenter
return System

CommentsWaitingForApprovalCount() public static method

public static CommentsWaitingForApprovalCount ( int portalId, int authorUserId ) : int
portalId int
authorUserId int
return int

Delete() public method

Deletes this instance.
public Delete ( ) : void
return void

Save() public method

Saves this instance.
public Save ( ) : void
return void