Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 839 Bytes

messagemodel.md

File metadata and controls

41 lines (22 loc) · 839 Bytes

MessageModel

Whenever you're dealing with a message in your template, you're actually working with a MessageModel object.

Simple Output

Outputting a MessageModel object without attaching a property or method will return the message's content.

<p>{{ message }}</p>

Properties

author

Returns a UserModel object representing the message's author.

authorId

The message's author ID.

content

The message's content.

dateCreated

A DateTime object of the date the message was created.

dateUpdated

A DateTime object of the date the message was last updated.

id

The message's ID.

ticketId

The message's ticket ID.