projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[euphorik.git]
/
doc
/
protocole3.txt
diff --git
a/doc/protocole3.txt
b/doc/protocole3.txt
index
f8b4c00
..
f0b0b38
100644
(file)
--- a/
doc/protocole3.txt
+++ b/
doc/protocole3.txt
@@
-81,14
+81,16
@@
ou
"nick" : "Paul",
\r
"login" : "paul49",
\r
"email" : "paul@pierre.com",
\r
"nick" : "Paul",
\r
"login" : "paul49",
\r
"email" : "paul@pierre.com",
\r
- "css" : "css/3/euphorik.css",
\r
+ "css" : "css/3/euphorik.css",
+ "nick_format" : "nick" | "login" | "nick_login",
\r
"main_page" : 1,
"conversations" : [
{
"racine" : 123,
"page" : 1
}
"main_page" : 1,
"conversations" : [
{
"racine" : 123,
"page" : 1
}
- ]
\r
+ ],
+ "ek_master" : true | false
\r
}
\r
}
\r
@@
-107,13
+109,14
@@
c -> s
"cookie" : "LKJDLAKSJBFLKASN",
\r
"login" : "paul49",
\r
"password" : "IJKJDHHSAD9081238",
\r
"cookie" : "LKJDLAKSJBFLKASN",
\r
"login" : "paul49",
\r
"password" : "IJKJDHHSAD9081238",
\r
- "
pseudo
" : "Paul",
\r
+ "
nick
" : "Paul",
\r
"email" : "paul@pierre.com",
\r
"email" : "paul@pierre.com",
\r
- "css" : "css/3/euphorik.css",
\r
+ "css" : "css/3/euphorik.css",
+ "nick_format" : "nick" | "login" | "nick_login",
\r
"main_page" : 1,
"conversations" : [
{
"main_page" : 1,
"conversations" : [
{
- "r
acine
" : 123,
+ "r
oot
" : 123,
"page" : 1
}
]
\r
"page" : 1
}
]
\r
@@
-141,7
+144,8
@@
c -> s
"conversations" : [
{
"racine" : 123,
"conversations" : [
{
"racine" : 123,
- "page" : 1
+ "page" : 1,
+ "last_message_id" : 4 (pas obligatoire)
}
]
\r
}
}
]
\r
}
@@
-169,6
+173,7
@@
Le format de la date n'est pas formel.
"answer_to" : [
\r
{ "id" : 123, "nick" : "Pierre", "login" : "pierre_45" }
\r
]
"answer_to" : [
\r
{ "id" : 123, "nick" : "Pierre", "login" : "pierre_45" }
\r
]
+ "ek_master" : true | false
}
\r
]
\r
}
}
\r
]
\r
}
@@
-181,11
+186,8
@@
ou
"message_id" : 123,
\r
"contenu" : "Salut +++ poulpe"
\r
}
"message_id" : 123,
\r
"contenu" : "Salut +++ poulpe"
\r
}
-ou
\r
- {
\r
- "reply" : "error",
\r
- "error_message" : "blabla"
\r
- }
+ou
+ <error>
\r
\r
=== Envoie d'un troll ===
\r
\r
=== Envoie d'un troll ===
@@
-216,12
+218,26
@@
c -> s
"answer_to" : [ 345, 532, ... ]
\r
}
"answer_to" : [ 345, 532, ... ]
\r
}
-s -> c
\r
- {
\r
- "reply" : "ok" | "error",
\r
- "error_message" : "blabla"
\r
+s -> c
+ <ok>
+ou
+ <error>
+
+
+=== Bannissement ===
+
+c -> s
+ {
+ "action" : "ban",
+ "cookie" : "LKJDLAKSJBFLKASN",
+ "duration" : 15, // en minute
+ "user_id" : 67
}
}
-
\r
+
+s -> c
+ <ok>
+ou
+ <error>
\r
\r
=== Ajout d'une correction d'un messages ===
\r
Le client envoie un correctif sous la forme de texte supplémentaire à appondre au dernier messages.
\r
\r
=== Ajout d'une correction d'un messages ===
\r
Le client envoie un correctif sous la forme de texte supplémentaire à appondre au dernier messages.
\r