Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

modio::Comment

Ahmed Castro edited this page Jul 14, 2019 · 4 revisions

Mod comments submitted by users.

class Comment
{
public:
    u32 id;
    u32 mod_id;
    u32 date_added;
    u32 reply_id;
    u32 karma;
    u32 karma_guest;
    std::string replay_position;
    std::string content;
    User submitted_by;
};
Name Type Description
id u32 Unique id of the comment.
mod_id u32 Unique id of the parent mod.
date_added u32 Unix timestamp of date the comment was posted.
reply_id u32 Id of the parent comment this comment is replying to (can be 0 if the comment is not a reply).
karma i32 Karma received for the comment (can be postive or negative).
karma_guest i32 Karma received for guest comments (can be postive or negative).
reply_position std::string Levels of nesting in a comment thread.
content std::string Contents of the comment.
submitted_by User modio::User object.

See also: API, ModioComment

Contents

Clone this wiki locally