X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=doc%2Fprotocole3.txt;h=99776a48b3c6d3ebafe66655aef7dc792e197832;hp=f8b4c00672943adc0f2cc603218f1a9585cd6165;hb=eae50232e73fca26d6f631c8177cbea649e5036e;hpb=35838780dce22af9f2dc80af9149a30a0433de0a diff --git a/doc/protocole3.txt b/doc/protocole3.txt index f8b4c00..99776a4 100644 --- a/doc/protocole3.txt +++ b/doc/protocole3.txt @@ -81,14 +81,16 @@ ou "nick" : "Paul", "login" : "paul49", "email" : "paul@pierre.com", - "css" : "css/3/euphorik.css", + "css" : "css/3/euphorik.css", + "nick_format" : "nick" | "login" | "nick_login", "main_page" : 1, "conversations" : [ { "racine" : 123, "page" : 1 } - ] + ], + "ek_master" : true | false } @@ -107,13 +109,14 @@ c -> s "cookie" : "LKJDLAKSJBFLKASN", "login" : "paul49", "password" : "IJKJDHHSAD9081238", - "pseudo" : "Paul", + "nick" : "Paul", "email" : "paul@pierre.com", - "css" : "css/3/euphorik.css", + "css" : "css/3/euphorik.css", + "nick_format" : "nick" | "login" | "nick_login", "main_page" : 1, "conversations" : [ { - "racine" : 123, + "root" : 123, "page" : 1 } ] @@ -141,7 +144,8 @@ c -> s "conversations" : [ { "racine" : 123, - "page" : 1 + "page" : 1, + "last_message_id" : 4 (pas obligatoire) } ] } @@ -157,7 +161,8 @@ Le format de la date n'est pas formel. "last_page" : true | false, "messages" : [ { - "id" : 54, + "id" : 54, + "user_id" : 344, "date" : "Hier 17:26:54", "system" : true | false, "owner" : true | false, @@ -169,6 +174,7 @@ Le format de la date n'est pas formel. "answer_to" : [ { "id" : 123, "nick" : "Pierre", "login" : "pierre_45" } ] + "ek_master" : true | false } ] } @@ -181,11 +187,8 @@ ou "message_id" : 123, "contenu" : "Salut +++ poulpe" } -ou - { - "reply" : "error", - "error_message" : "blabla" - } +ou + === Envoie d'un troll === @@ -216,12 +219,41 @@ c -> s "answer_to" : [ 345, 532, ... ] } -s -> c - { - "reply" : "ok" | "error", - "error_message" : "blabla" +s -> c + +ou + + + +=== Slapage === + +c -> s + { + "action" : "slap", + "cookie" : "LKJDLAKSJBFLKASN", + "user_id" : 67 } - + +s -> c + +ou + + + +=== Bannissement === + +c -> s + { + "action" : "ban", + "cookie" : "LKJDLAKSJBFLKASN", + "duration" : 15, // en minute + "user_id" : 67 + } + +s -> c + +ou + === Ajout d'une correction d'un messages === Le client envoie un correctif sous la forme de texte supplémentaire à appondre au dernier messages.