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

# .NET: GetMessagesModel

> Signatures, models and behavior for SKM.V3.Models.GetMessagesModel in the .NET SDK 4.0.54.

Parameters used by [`GetMessages(string, GetMessagesModel)`](/libraries/dotnet-reference/methods/message#get-messages-569394da9b).

**Namespace:** `SKM.V3.Models`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

```csharp C# theme={null}
public class GetMessagesModel : RequestModel
```

```vb VB.NET theme={null}
Public Class GetMessagesModel Inherits RequestModel
```

[Web API Reference](/api-reference/generated/GetMessages)

## Inherited SDK Members

* [`LicenseServerUrl`](/libraries/dotnet-reference/models/request-model#license-server-url-67581aa5cb)

## Properties

### Channel

Specifies the channel, whose messages you would like to retrieve. If not set, messages from all channels will be returned.

```csharp C# theme={null}
[DefaultValue("")]
public string Channel { get; set; }
```

```vb VB.NET theme={null}
<DefaultValue("")>
Public Property Channel As String
```

**Type:** `string`

### Time

Allows you to retrieve only those messages that were created after a certain Time (strictly greater than), eg. the last time you contacted the server. The format is unix timestamp. If no time is specified, all messages will be returned.

```csharp C# theme={null}
[DefaultValue(0)]
public long Time { get; set; }
```

```vb VB.NET theme={null}
<DefaultValue(0)>
Public Property Time As Long
```

**Type:** `long`

## Constructors

### GetMessagesModel()

Creates an empty GetMessagesModel object. This constructor does not send an API request.

```csharp C# theme={null}
public GetMessagesModel()
```

```vb VB.NET theme={null}
Public Sub New()
```

[.NET SDK Reference](/libraries/dotnet-api) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.