> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.TicketMessage

# <a id="SuperOffice_WebApi_Data_TicketMessage" /> Class TicketMessage

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for TicketMessage.
The TicketMessage carrier is used for representing a service ticket message

```csharp theme={null}
public class TicketMessage : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[TicketMessage](SuperOffice.WebApi.Data.TicketMessage.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get TicketMessage 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new TicketAgent(configuration);
var ticketMessage = agent.GetTicketMessage( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_TicketMessage__ctor" /> TicketMessage()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public TicketMessage()
```

## Properties

### <a id="SuperOffice_WebApi_Data_TicketMessage_Author" /> Author

A string representing the author of the message. Could be a user\&apos;s name, or a persons email address.

```csharp theme={null}
public virtual string Author { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Badge" /> Badge

Badge to explicitly determine how a message was generated
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public BadgeType? Badge { get; set; }
```

#### Property Value

[BadgeType](SuperOffice.WebApi.Data.BadgeType.md)?

#### See Also

[TicketMessage](SuperOffice.WebApi.Data.TicketMessage.md).[Badge\_String](SuperOffice.WebApi.Data.TicketMessage.md#SuperOffice_WebApi_Data_TicketMessage_Badge_String)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Badge_String" /> Badge\_String

Badge to explicitly determine how a message was generated
Raw string enum value.

```csharp theme={null}
[JsonProperty("Badge")]
public string Badge_String { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### See Also

[TicketMessage](SuperOffice.WebApi.Data.TicketMessage.md).[Badge](SuperOffice.WebApi.Data.TicketMessage.md#SuperOffice_WebApi_Data_TicketMessage_Badge)

### <a id="SuperOffice_WebApi_Data_TicketMessage_ChangedAt" /> ChangedAt

When the message was changed.

```csharp theme={null}
public virtual DateTime ChangedAt { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_TicketMessage_ContactDepartment" /> ContactDepartment

Department

```csharp theme={null}
public virtual string ContactDepartment { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_ContactId" /> ContactId

Primary key

```csharp theme={null}
public virtual int ContactId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_ContactName" /> ContactName

Contact name

```csharp theme={null}
public virtual string ContactName { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_CreatedAt" /> CreatedAt

When the message was posted.

```csharp theme={null}
public virtual DateTime CreatedAt { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_TicketMessage_CreatedBy" /> CreatedBy

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

```csharp theme={null}
public virtual int CreatedBy { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_EmailHeader" /> EmailHeader

The email header is saved in this field as raw text

```csharp theme={null}
public virtual string EmailHeader { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Important" /> Important

If this message is important or not.

```csharp theme={null}
public virtual bool Important { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Language" /> Language

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

```csharp theme={null}
public virtual string Language { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_MessageHeaders" /> MessageHeaders

Contains the message headers, like To, Cc, Bcc information, or custom headers

```csharp theme={null}
public virtual TicketMessageHeader[] MessageHeaders { get; set; }
```

#### Property Value

[TicketMessageHeader](SuperOffice.WebApi.Data.TicketMessageHeader.md)\[]

### <a id="SuperOffice_WebApi_Data_TicketMessage_NumAttachments" /> NumAttachments

Number of attachments in the message

```csharp theme={null}
public virtual int NumAttachments { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_PersonFullName" /> PersonFullName

Get the persons full name (internal name used in clients for employees).

```csharp theme={null}
public virtual string PersonFullName { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketMessage_PersonId" /> PersonId

Primary key

```csharp theme={null}
public virtual int PersonId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Sentiment" /> Sentiment

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

```csharp theme={null}
public virtual int Sentiment { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_SentimentConfidence" /> SentimentConfidence

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

```csharp theme={null}
public virtual int SentimentConfidence { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Slevel" /> Slevel

The securitylevel of the message.
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TicketSecurityLevel? Slevel { get; set; }
```

#### Property Value

[TicketSecurityLevel](SuperOffice.WebApi.Data.TicketSecurityLevel.md)?

#### See Also

[TicketMessage](SuperOffice.WebApi.Data.TicketMessage.md).[Slevel\_String](SuperOffice.WebApi.Data.TicketMessage.md#SuperOffice_WebApi_Data_TicketMessage_Slevel_String)

### <a id="SuperOffice_WebApi_Data_TicketMessage_Slevel_String" /> Slevel\_String

The securitylevel of the message.
Raw string enum value.

```csharp theme={null}
[JsonProperty("Slevel")]
public string Slevel_String { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### See Also

[TicketMessage](SuperOffice.WebApi.Data.TicketMessage.md).[Slevel](SuperOffice.WebApi.Data.TicketMessage.md#SuperOffice_WebApi_Data_TicketMessage_Slevel)

### <a id="SuperOffice_WebApi_Data_TicketMessage_TicketMessageId" /> TicketMessageId

The primary key (auto-incremented)

```csharp theme={null}
public virtual int TicketMessageId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[TicketAgent](SuperOffice.WebApi.Agents.TicketAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.TicketMessageEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageEntity.md)
- [SuperOffice.WebApi.Data.TicketMessageCategory](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageCategory.md)
- [SuperOffice.WebApi.Data.TicketMessageContent](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageContent.md)
- [SuperOffice.WebApi.Data.TicketMessageHeader](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageHeader.md)
- [SuperOffice.WebApi.Data.TicketMessageType](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageType.md)
- [SuperOffice.WebApi.Data.TicketEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketEntity.md)
