-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.idl
22 lines (22 loc) · 906 Bytes
/
chat.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module chat {
interface ChatClient {
string update_contact(in string talk_id, in string phone, in string name, in string online);
string update_talk(in string text, in string talk_id);
};
exception IncorrectSecret {};
exception NameAlreadyUsed {};
exception UnknownID {};
interface ChatServer {
string auth(in string phone)
raises (NameAlreadyUsed);
string subscribe(in string user_key, in string secret, in ChatClient c)
raises (NameAlreadyUsed, IncorrectSecret);
void unsubscribe(in string user_key) raises (UnknownID);
string comment(in string user_key, in string talk_id, in string text)
raises (UnknownID);
string add_contact(in string user_phone, in string contact_phone);
string create_group(in string name);
string add_user_group(in string group_id, in string user_id);
string remove_user_group(in string group_id, in string user_id);
};
};