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
CreatedBy
Gets or sets the user id that created this comment, if logged in.
public int CreatedBy { get; set; }
Property Value
CreatedDate
Gets or sets the created date.
public DateTime CreatedDate { get; set; }
Property Value
EditedBy
Gets or sets the user id that edited this comment, if logged in.
public int EditedBy { get; set; }
Property Value
EditedDate
Gets or sets the edited date.
public DateTime EditedDate { get; set; }
Property Value
Gets or sets the email of the user who comments.
public string Email { get; set; }
Property Value
ID
public int ID { get; set; }
Property Value
Ip
Gets or sets the ip address of the user who commented.
public string Ip { get; set; }
Property Value
IsNew
public bool IsNew { get; }
Property Value
ItemID
Gets or sets the identifier of commented item, e.g. product id or page id.
public string ItemID { get; set; }
Property Value
ItemType
Gets or sets the type of the item. I.e. page, product, news
public string ItemType { get; set; }
Property Value
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
Likes
Gets or sets the number of likes of this comment.
public int Likes { get; set; }
Property Value
Name
Gets or sets the name of the user who comments.
public string Name { get; set; }
Property Value
Nolikes
Gets or sets the number of nolikes of this comment.
public int Nolikes { get; set; }
Property Value
ParentID
Gets or sets the ID of the parent comment.
public int ParentID { get; set; }
Property Value
Rating
Gets or sets the rating made by the user who comments.
public int Rating { get; set; }
Property Value
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
Website
Gets or sets the website of the user who comments.
public string Website { get; set; }
Property Value
Methods
GetToken()
Gets a token that can be used to verify actions, e.g. delete, like etc.
public string GetToken()
Returns
IsValidToken(string)
public bool IsValidToken(string token)
Parameters
token
string