> For the complete documentation index, see [llms.txt](https://m-ahmed310.gitbook.io/fignet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://m-ahmed310.gitbook.io/fignet/api/message.md).

# Message

A Message class is used to send and receive data

## Properties

`Read only unsigned short Id, used to Identitfy Message while sending and receving Newtork Message`

```csharp
public readonly ushort Id;
```

`For internal use only, it is used to identify inline Messages`

```csharp
public byte callbackId;
```

`A Message Payload will be delivered after getting encrypted if set true`&#x20;

```csharp
public bool IsEncrypted;
```

`Data to be sent`

```csharp
public object Payload { get; set; }
```

## Constructors

```csharp
public Message(ushort msgId, object payload);
public Message(ushort msgId, object payload, bool isEncrypted);
```
