mirror of
https://github.com/status-im/specs.git
synced 2025-02-06 11:23:43 +00:00
Update x8.md
This commit is contained in:
parent
8f0144cbe9
commit
ef34861169
14
x8.md
14
x8.md
@ -63,13 +63,15 @@ The type `Message` represents a text message exchanged between clients.
|
|||||||
### Payload
|
### Payload
|
||||||
|
|
||||||
Payload is a struct (a compound data type) with the following fields (order is important):
|
Payload is a struct (a compound data type) with the following fields (order is important):
|
||||||
1. text `string`
|
|
||||||
2. content type `enum` (more in [Content types](#content-types))
|
|
||||||
3. message type `enum` (more in [Message types](#message-types))
|
|
||||||
4. clock `int64`
|
|
||||||
5. timestamp `int64`
|
|
||||||
6. content `struct { chat-id string, text string }`
|
|
||||||
|
|
||||||
|
| Field | Name | Type |
|
||||||
|
| ----- | ---- | ---- |
|
||||||
|
| 1 | text | `string` |
|
||||||
|
| 2 | content type | `enum` (more in [Content types](#content-types)) |
|
||||||
|
| 3 | message type | `enum` (more in [Message types](#message-types)) |
|
||||||
|
| 4 | clock | `int64` |
|
||||||
|
| 5 | timestamp | `int64` |
|
||||||
|
| 6 | content | `struct { chat-id string, text string }` |
|
||||||
|
|
||||||
### Content types
|
### Content types
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user