> ## 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.

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

  ```vb VB.NET theme={null}
  Public Class GetMessagesModel Inherits RequestModel
  ```
</CodeGroup>

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

## Inherited SDK Members

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

## Properties

<a id="channel-2afc4b41a1" />

### Channel

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

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

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

**Type:** `string`

<a id="time-8d3ece7bcf" />

### 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.

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

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

**Type:** `long`

## Constructors

<a id="ctor-f62267016a" />

### GetMessagesModel()

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

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

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

[.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.