Table of Contents

Class Comment

Namespace
Dynamicweb.Content.Commenting
Assembly
Dynamicweb.dll

Represents comments and ratings of items in Dynamicweb

public class Comment
Inheritance
Comment
Inherited Members

Constructors

Comment()

Initializes a new instance of Comment.

public Comment()

Properties

Active

Gets or sets a value indicating whether this Comment is active.

public bool Active { get; set; }

Property Value

bool

CreatedBy

Gets or sets the user id that created this comment, if logged in.

public int CreatedBy { get; set; }

Property Value

int

CreatedDate

Gets or sets the created date.

public DateTime CreatedDate { get; set; }

Property Value

DateTime

EditedBy

Gets or sets the user id that edited this comment, if logged in.

public int EditedBy { get; set; }

Property Value

int

EditedDate

Gets or sets the edited date.

public DateTime EditedDate { get; set; }

Property Value

DateTime

Email

Gets or sets the email of the user who comments.

public string Email { get; set; }

Property Value

string

ID

public int ID { get; set; }

Property Value

int

Ip

Gets or sets the ip address of the user who commented.

public string Ip { get; set; }

Property Value

string

IsNew

public bool IsNew { get; }

Property Value

bool

ItemID

Gets or sets the identifier of commented item, e.g. product id or page id.

public string ItemID { get; set; }

Property Value

string

ItemType

Gets or sets the type of the item. I.e. page, product, news

public string ItemType { get; set; }

Property Value

string

LanguageId

Gets or sets the language identifier, e.g. "LANG1" as product language id or "1" as page area id.

public string LanguageId { get; set; }

Property Value

string

Likes

Gets or sets the number of likes of this comment.

public int Likes { get; set; }

Property Value

int

Name

Gets or sets the name of the user who comments.

public string Name { get; set; }

Property Value

string

Nolikes

Gets or sets the number of nolikes of this comment.

public int Nolikes { get; set; }

Property Value

int

ParentID

Gets or sets the ID of the parent comment.

public int ParentID { get; set; }

Property Value

int

Rating

Gets or sets the rating made by the user who comments.

public int Rating { get; set; }

Property Value

int

Replies

Gets the replies.

public CommentCollection Replies { get; }

Property Value

CommentCollection

The replies.

Text

Gets or sets the text/comment of the user who comments.

public string Text { get; set; }

Property Value

string

Website

Gets or sets the website of the user who comments.

public string Website { get; set; }

Property Value

string

Methods

GetToken()

Gets a token that can be used to verify actions, e.g. delete, like etc.

public string GetToken()

Returns

string

IsValidToken(string)

public bool IsValidToken(string token)

Parameters

token string

Returns

bool
To top