X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=doc%2Fprotocole3.txt;h=c8642ab3c2b213121a066136aba5ddcb084395fc;hp=12b3f1fe0315f66b90dd222088b81e370ee70197;hb=11fe8f6d268a9b1c0a773294cc7d70ffdb6afb30;hpb=c4a3bf46b1974dce83a6333390dd97a800070b59 diff --git a/doc/protocole3.txt b/doc/protocole3.txt index 12b3f1f..c8642ab 100644 --- a/doc/protocole3.txt +++ b/doc/protocole3.txt @@ -55,9 +55,10 @@ Le mot de passe est hashé en md5. c -> s { - "header" : {action : "authentification", version : 3}, + "header" : {action : "register", version : 3}, "login" : "paul", - "password" : "IJKJDHHSAD9081238" + "password" : "IJKJDHHSAD9081238", + "profile_infos" : { .. } // voir } ou { @@ -74,28 +75,20 @@ ou s -> c { "reply" : "register" | "authentification", - "status" : "auth_not_registered", - "cookie" : "LKJDLAKSJBFLKASN", - "id" : 193, - "css" : "css/1/euphorik.css", - "main_page" : 1 - } -ou - { - "reply" : "register" | "authentification", - "status" : "auth_registered", + "status" : "auth_registered" | "auth_not_registered", "cookie" : "LKJDLAKSJBFLKASN", "id" : 193, "nick" : "Paul", "login" : "paul49", "email" : "paul@pierre.com", "css" : "css/3/euphorik.css", + "chat_order" : "chrono" | "reverse", "nick_format" : "nick" | "login" | "nick_login", "view_times" : true | false, "view_tooltips" : true | false, - // "main_page" : 1, - "conversations" : [3, 8], - "ek_master" : true | false + "conversations" : [{"root" : 3, "minimized" : true}, + "ek_master" : true | false, + "ostentatious_master" : "invisible" | "light" | "heavy" } @@ -108,20 +101,26 @@ c -> s === Profile === -c -> s + { - "header" : {action : "set_profile", version : 3}, - "cookie" : "LKJDLAKSJBFLKASN", - "login" : "paul49", - "password" : "IJKJDHHSAD9081238", "nick" : "Paul", "email" : "paul@pierre.com", "css" : "css/3/euphorik.css", + "chat_order" : "chrono" | "reverse", "nick_format" : "nick" | "login" | "nick_login", "view_times" : true | false, "view_tooltips" : true | false, - "main_page" : 1, - "conversations" : [3, 8] + "conversations" : [{"root" : 3, "minimized" : true}, + "ostentatious_master" : "invisible" | "light" | "heavy" + } + +c -> s + { + "header" : {action : "set_profile", version : 3}, + "cookie" : "LKJDLAKSJBFLKASN", + "login" : "paul49", + "password" : "IJKJDHHSAD9081238", + "profile_infos" : } s -> c @@ -150,8 +149,10 @@ Si "main_page" est absent alors est vaut 1. "root" : 453, "answer_to" : [ { "id" : 123, "nick" : "Pierre", "login" : "pierre_45" } - ] - "ek_master" : true | false + ], + "ek_master" : true | false, + "ostentatious_master" : "invisible" | "light" | "heavy", + "last_modification" : "Hier 17:26:54" } c -> s @@ -176,13 +177,13 @@ s -> c La première conversation est la principale (main). L'ordre des conversation est le même que celui des données de l'utilisateur. Le format de la date n'est pas formel. -first correpond au premier message de la conversation, vaut 'undefined' pour la conversation principale ainsi que pour les conversations vides. +first correpond au premier message de la conversation, vaut 'null' pour la conversation principale ainsi que pour les conversations vides. { "reply" : "new_message", "conversations" : [ { "last_page" : true | false, - "first" : | undefined, + "first" : | null, "messages" : [ , .. ] } ] @@ -191,7 +192,8 @@ ou { "reply" : "message_updated", "message_id" : 123, - "content" : "Salut +++ poulpe" + "content" : "Salut poulpe", + "last_modification" : "Hier 17:26:54" } ou {