Table of Contents

Class Comment

Namespace
InSite.Domain.Banks
Assembly
Shift.Sdk.dll

A comment is a block of text posted about something in the bank. For example, it might be descriptive commentary from an instructor building a specification, or it might be feedback from a student on a specific question.

public class Comment
Inheritance
Comment
Inherited Members
Extension Methods

Constructors

Comment()

public Comment()

Properties

Author

The person who posted the comment.

public Guid Author { get; set; }

Property Value

Guid

AuthorRole

The role of the author posting the comment (Administrator|Candidate).

public string AuthorRole { get; set; }

Property Value

string

Category

Used by administrators to categorize/classify comments.

public string Category { get; set; }

Property Value

string

EventDate

The date of the exam event activity to which the comment pertains.

public DateTimeOffset? EventDate { get; set; }

Property Value

DateTimeOffset?

EventFormat

The format of the exam event activity to which the comment pertains.

public string EventFormat { get; set; }

Property Value

string

Flag

The colored flag assigned to the comment.

public FlagType Flag { get; set; }

Property Value

FlagType

Identifier

Uniquely identifies the comment.

public Guid Identifier { get; set; }

Property Value

Guid

Instructor

The instructor or training provider to whom the comment pertains.

public Guid? Instructor { get; set; }

Property Value

Guid?

IsHidden

If true then a comment is hidden/archived.

public bool IsHidden { get; set; }

Property Value

bool

Posted

The date and time the comment was posted.

public DateTimeOffset Posted { get; set; }

Property Value

DateTimeOffset

Revised

The date and time the comment was revised.

public DateTimeOffset? Revised { get; set; }

Property Value

DateTimeOffset?

Revisor

The person who revised the comment.

public Guid? Revisor { get; set; }

Property Value

Guid?

Subject

Uniquely identifies the subject of the comment.

public Guid Subject { get; set; }

Property Value

Guid

Text

The body text for the comment itself. (We do NOT need multilingual support here. Authors are expected to post comments in whatever language they speak.)

public string Text { get; set; }

Property Value

string

Type

Identifies the type for the Subject of the comment. Type and Subject taken together can be used to find the thing that the comment is about.

public CommentType Type { get; set; }

Property Value

CommentType

Methods

Clone()

public Comment Clone()

Returns

Comment

GetSubjectTitle(BankState)

public string GetSubjectTitle(BankState bank)

Parameters

bank BankState

Returns

string