update API.md add Message type description
This commit is contained in:
parent
4926b3fdc5
commit
5f6e717503
|
@ -186,6 +186,16 @@
|
|||
<!-- ## Adding friends -->
|
||||
<!-- Each user have :w -->
|
||||
<hr />
|
||||
<h1 id="message-type"><a class="header" href="#message-type">Message type</a></h1>
|
||||
<pre><code class="language-json"> {
|
||||
message: it's a message,
|
||||
date: Time,
|
||||
id: Id,
|
||||
fromMe: bool,
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<hr />
|
||||
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
|
||||
<pre><code class="language-Rust">pub enum Request {
|
||||
StartApp,
|
||||
|
|
|
@ -226,6 +226,16 @@ EndMessage
|
|||
<!-- ## Adding friends -->
|
||||
<!-- Each user have :w -->
|
||||
<hr />
|
||||
<h1 id="message-type"><a class="header" href="#message-type">Message type</a></h1>
|
||||
<pre><code class="language-json"> {
|
||||
message: it's a message,
|
||||
date: Time,
|
||||
id: Id,
|
||||
fromMe: bool,
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<hr />
|
||||
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
|
||||
<pre><code class="language-Rust">pub enum Request {
|
||||
StartApp,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
src/API.md
14
src/API.md
|
@ -28,6 +28,19 @@
|
|||
|
||||
----
|
||||
|
||||
# Message type
|
||||
``` json
|
||||
{
|
||||
message: it's a message,
|
||||
date: Time,
|
||||
id: Id,
|
||||
fromMe: bool,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Requests
|
||||
``` Rust
|
||||
pub enum Request {
|
||||
|
@ -100,3 +113,4 @@ Requesting `count` messages from `userId` started from `startIndex`'s message
|
|||
startIndex: 30
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue