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
dc3ff4b
..
2eb81a6
100644
(file)
--- a/
doc/protocole3.txt
+++ b/
doc/protocole3.txt
@@
-55,9
+55,10
@@
Le mot de passe est hashé en md5.
c -> s
{
c -> s
{
- "header" : {action : "
authentification
", version : 3},
+ "header" : {action : "
register
", version : 3},
"login" : "paul",
"login" : "paul",
- "password" : "IJKJDHHSAD9081238"
+ "password" : "IJKJDHHSAD9081238",
+ "profile" : { .. } // voir <profile>
}
ou
{
}
ou
{
@@
-74,28
+75,12
@@
ou
s -> c
{
"reply" : "register" | "authentification",
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,
"cookie" : "LKJDLAKSJBFLKASN",
"id" : 193,
- "nick" : "Paul",
"login" : "paul49",
"login" : "paul49",
- "email" : "paul@pierre.com",
- "css" : "css/3/euphorik.css",
- "nick_format" : "nick" | "login" | "nick_login",
- "view_times" : true | false,
- "view_tooltips" : true | false,
- "conversations" : [{"root" : 3, "minimized" : true},
"ek_master" : true | false,
"ek_master" : true | false,
- "
ostentatious_master" : "invisible" | "light" | "heavy"
+ "
profile" : <profile>
}
}
@@
-108,21
+93,27
@@
c -> s
=== Profile ===
=== 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",
"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,
"conversations" : [{"root" : 3, "minimized" : true},
"ostentatious_master" : "invisible" | "light" | "heavy"
}
"nick_format" : "nick" | "login" | "nick_login",
"view_times" : true | false,
"view_tooltips" : true | false,
"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>
s -> c
<ok>
@@
-150,9
+141,10
@@
Si "main_page" est absent alors est vaut 1.
"root" : 453,
"answer_to" : [
{ "id" : 123, "nick" : "Pierre", "login" : "pierre_45" }
"root" : 453,
"answer_to" : [
{ "id" : 123, "nick" : "Pierre", "login" : "pierre_45" }
- ]
+ ]
,
"ek_master" : true | false,
"ek_master" : true | false,
- "ostentatious_master" : "invisible" | "light" | "heavy"
+ "ostentatious_master" : "invisible" | "light" | "heavy",
+ "last_modification" : "Hier 17:26:54"
}
c -> s
}
c -> s
@@
-192,7
+184,8
@@
ou
{
"reply" : "message_updated",
"message_id" : 123,
{
"reply" : "message_updated",
"message_id" : 123,
- "content" : "Salut +++ poulpe"
+ "content" : "Salut poulpe",
+ "last_modification" : "Hier 17:26:54"
}
ou
{
}
ou
{