update API.md add Message type description
This commit is contained in:
parent
4926b3fdc5
commit
5f6e717503
|
@ -186,6 +186,16 @@
|
||||||
<!-- ## Adding friends -->
|
<!-- ## Adding friends -->
|
||||||
<!-- Each user have :w -->
|
<!-- Each user have :w -->
|
||||||
<hr />
|
<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>
|
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
|
||||||
<pre><code class="language-Rust">pub enum Request {
|
<pre><code class="language-Rust">pub enum Request {
|
||||||
StartApp,
|
StartApp,
|
||||||
|
|
|
@ -226,6 +226,16 @@ EndMessage
|
||||||
<!-- ## Adding friends -->
|
<!-- ## Adding friends -->
|
||||||
<!-- Each user have :w -->
|
<!-- Each user have :w -->
|
||||||
<hr />
|
<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>
|
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
|
||||||
<pre><code class="language-Rust">pub enum Request {
|
<pre><code class="language-Rust">pub enum Request {
|
||||||
StartApp,
|
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
|
# Requests
|
||||||
``` Rust
|
``` Rust
|
||||||
pub enum Request {
|
pub enum Request {
|
||||||
|
@ -100,3 +113,4 @@ Requesting `count` messages from `userId` started from `startIndex`'s message
|
||||||
startIndex: 30
|
startIndex: 30
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue