X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=doc%2Fprotocole3.txt;h=feae1f0036412801258ebb962603ac45192f41d2;hb=d9d05b6a2a13c2da190dd68d4409381d093679b2;hp=8b16d6e5c5345400916f57498e63d91cb17498d3;hpb=46b6cab14594802cdb4db9e3d77082815182073b;p=euphorik.git diff --git a/doc/protocole3.txt b/doc/protocole3.txt index 8b16d6e..feae1f0 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 } @@ -109,11 +111,12 @@ c -> s "password" : "IJKJDHHSAD9081238", "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) } ] } @@ -181,11 +185,8 @@ ou "message_id" : 123, "contenu" : "Salut +++ poulpe" } -ou - { - "reply" : "error", - "error_message" : "blabla" - } +ou + === Envoie d'un troll === @@ -216,12 +217,26 @@ c -> s "answer_to" : [ 345, 532, ... ] } -s -> c - { - "reply" : "ok" | "error", - "error_message" : "blabla" +s -> c + +ou + + + +=== Bannissement === + +c -> s + { + "action" : "ban", + "cookie" : "LKJDLAKSJBFLKASN", + "duration" : 3, // en heure + "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.