(no commit message)
[euphorik.git] / doc / protocole3.txt
index 977cfc3..2eb81a6 100644 (file)
@@ -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" : { .. } // voir <profile>
    }
 ou
    {
@@ -74,29 +75,12 @@ 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,
-      "conversations" : [{"root" : 3, "minimized" : true},
       "ek_master" : true | false,
-      "ostentatious_master" : "invisible" | "light" | "heavy"
+      "profile" : <profile>
    }
  
  
@@ -109,12 +93,8 @@ c -> s
  
  
 === Profile ===
-c -> s
+<profile>
    {
-      "header" : {action : "set_profile", version : 3},
-      "cookie" : "LKJDLAKSJBFLKASN",
-      "login" : "paul49",
-      "password" : "IJKJDHHSAD9081238",
       "nick" : "Paul",
       "email" : "paul@pierre.com",
       "css" : "css/3/euphorik.css",
@@ -125,6 +105,15 @@ c -> s
       "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" : <profile>
+   }
       
 s -> c
    <ok>
@@ -152,9 +141,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,
-      "ostentatious_master" : "invisible" | "light" | "heavy"
+      "ostentatious_master" : "invisible" | "light" | "heavy",
+      "last_modification" : "Hier 17:26:54"
    }
 
 c -> s
@@ -194,7 +184,8 @@ ou
    {
       "reply" : "message_updated",
       "message_id" : 123,
-      "content" : "Salut +++ poulpe"
+      "content" : "Salut poulpe",
+      "last_modification" : "Hier 17:26:54"
    }
 ou
    {