Show / Hide Table of Contents

Class EjMessageRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ej_message table.

Inheritance
Object
EjMessageRecordData
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class EjMessageRecordData
Remarks

Please use this class instead of a full EjMessageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding EjMessageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

EjMessageRecordData()

Declaration
public EjMessageRecordData()

Fields

Author

A string representing the author of the message. Could be a user's name, or a persons email address.

Declaration
public string Author
Field Value
Type Description
String

Body

The textbody for the message.

Declaration
public string Body
Field Value
Type Description
String

BodyAttachment

If the body is too long for the database, it's stored in this attachment instead.

Declaration
public int BodyAttachment
Field Value
Type Description
Int32

CreatedAt

When the message was posted.

Declaration
public DateTime CreatedAt
Field Value
Type Description
DateTime

CreatedBy

The id of the user who posted the message. The value 1 (system user) for externally posted messages.

Declaration
public int CreatedBy
Field Value
Type Description
Int32

CustomerId

If the message was created by email or from the customer center, this field will point to that customer. -1 if the message was created by an user

Declaration
public int CustomerId
Field Value
Type Description
Int32

DebugInfo

The debug info for the message.

Declaration
public string DebugInfo
Field Value
Type Description
String

EjMessageId

The primary key (auto-incremented)

Declaration
public int EjMessageId
Field Value
Type Description
Int32

EmailHeader

The email header is saved in this field as raw text

Declaration
public string EmailHeader
Field Value
Type Description
String

HtmlBody

The html body for the message (if any).

Declaration
public string HtmlBody
Field Value
Type Description
String

HtmlBodyAttachment

If the htmlbody is too long for the database, it's stored in this attachment instead.

Declaration
public int HtmlBodyAttachment
Field Value
Type Description
Int32

HtmlBodyInlineConverted

True if the html_body has converted inline image links.

Declaration
public short HtmlBodyInlineConverted
Field Value
Type Description
Int16

Important

If this message is important or not.

Declaration
public short Important
Field Value
Type Description
Int16

Inbox

The id of the inbox entry which created this message. Note: inbox entries are regularily deleted.

Declaration
public int Inbox
Field Value
Type Description
Int32

Language

The language this message is in, based on some kind of analysis

Declaration
public string Language
Field Value
Type Description
String

MailSorter

The name of the mail sorter used when the email was imported. Note: We must use name instead of id since the id's change every time one changes the mail sorter. :-0

Declaration
public string MailSorter
Field Value
Type Description
String

MessageCategory

Defines what kind of message this is.

Declaration
public TicketMessageCategory MessageCategory
Field Value
Type Description
TicketMessageCategory

MessageId

The X-Message-Id header value from the email. Used for threading, i.e. connecting messages to existing tickets.

Declaration
public string MessageId
Field Value
Type Description
String

SearchTitle

A copy of the title of the ticket, for search optimisation and simpler reporting.

Declaration
public string SearchTitle
Field Value
Type Description
String

Sentiment

Sentiment index, 100 = completely happy; -100 = suicidally unhappy; 0 = no idea

Declaration
public int Sentiment
Field Value
Type Description
Int32

SentimentConfidence

Confidence of sentiment index, 0 = no idea, 100 = completely sure

Declaration
public int SentimentConfidence
Field Value
Type Description
Int32

Slevel

The securitylevel of the message.

Declaration
public TicketSecurityLevel Slevel
Field Value
Type Description
TicketSecurityLevel

TicketId

The ticket this message is a child of.

Declaration
public int TicketId
Field Value
Type Description
Int32

TimeCharge

The amount of time (minutes) which should be invoiced for this message.

Declaration
public int TimeCharge
Field Value
Type Description
Int32

TimeSpent

The time spent (minutes) for this message.

Declaration
public int TimeSpent
Field Value
Type Description
Int32

Type

The type of the message (plaintext/html).

Declaration
public TicketMessageType Type
Field Value
Type Description
TicketMessageType

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
EjMessageRecordDataExtensions.ToInsert(EjMessageRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top