# Interface: PlanetMessage<T\>

We can save these to and retrieve these from the database.

## Type parameters

| Name | Type                                                          |
| :--- | :------------------------------------------------------------ |
| `T`  | extends [`PlanetMessageBody`](../README.md#planetmessagebody) |

## Table of contents

### Properties

- [body](PlanetMessage.md#body)
- [id](PlanetMessage.md#id)
- [planetId](PlanetMessage.md#planetid)
- [sender](PlanetMessage.md#sender)
- [timeCreated](PlanetMessage.md#timecreated)
- [type](PlanetMessage.md#type)

## Properties

### body

• **body**: `T`

---

### id

• **id**: `string`

---

### planetId

• **planetId**: [`LocationId`](../README.md#locationid)

---

### sender

• **sender**: [`EthAddress`](../README.md#ethaddress)

---

### timeCreated

• **timeCreated**: `number`

---

### type

• **type**: [`PlanetMessageType`](../README.md#planetmessagetype)
