From 5626112780cf4fb5a781c3154ee148bb265594a1 Mon Sep 17 00:00:00 2001 From: Nicole O'Connor Date: Sun, 29 Sep 2024 11:54:22 -0700 Subject: [PATCH] locate and buddy foodgroups --- src/pyoscar/proto/flap/snacs.py | 41 ++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/pyoscar/proto/flap/snacs.py b/src/pyoscar/proto/flap/snacs.py index 55a923e..8331c59 100644 --- a/src/pyoscar/proto/flap/snacs.py +++ b/src/pyoscar/proto/flap/snacs.py @@ -108,4 +108,43 @@ OSERVICE__PROBE_REQ = 0x1F # ping OSERVICE__PROBE_ACK = 0x20 # pong OSERVICE__BART_REPLY = 0x21 # bad buddy art item? OSERVICE__BART_QUERY2 = 0x22 # get own buddy art? -OSERVICE__BART_REPLY2 = 0x23 # response to above (also sent on login) \ No newline at end of file +OSERVICE__BART_REPLY2 = 0x23 # response to above (also sent on login) + +## locate +LOCATE__ERR = GLOBAL__ERR +LOCATE__RIGHTS_QUERY = 0x2 # hey server, what's my permissions? +LOCATE__RIGHTS_REPLY = 0x3 # response to above +LOCATE__SET_INFO = 0x4 # sets profile data/online status +LOCATE__USER_INFO_QUERY = 0x5 # get profile/away msg/etc +LOCATE__USER_INFO_REPLY = 0x6 # reply +LOCATE__WATCHER_SUB_REQUEST = 0x7 # watcher subscription (like IRC /notify?) +LOCATE__WATCHER_NOTIFICATION = 0x8 # notification in existing subscription +LOCATE__SET_DIR_INFO = 0x9 # set directory info +LOCATE__SET_DIR_REPLY = 0xA +LOCATE__GET_DIR_INFO = 0xB # get directory info for user +LOCATE__GET_DIR_REPLY = 0xC +LOCATE__GROUP_CAPABILITY_QUERY = 0xD # not yet understood +LOCATE__GROUP_CAPABILITY_REPLY = 0xE +LOCATE__SET_KEYWORD_INFO = 0xF # set user profile keywords, such as interests +LOCATE__SET_KEYWORD_REPLY = 0x10 +LOCATE__GET_KEYWORD_INFO = 0x11 # get " " " " +LOCATE__GET_KEYWORD_REPLY = 0x12 +LOCATE__FIND_LIST_BY_EMAIL = 0x13 # email lookup +LOCATE__FIND_LIST_REPLY = 0x14 +LOCATE__USER_INFO_QUERY2 = 0x15 + +## buddy +BUDDY__ERR = GLOBAL__ERR +BUDDY__RIGHTS_QUERY = 0x2 # optional buddy list perms check +BUDDY__RIGHTS_REPLY = 0x3 +BUDDY__ADD_BUDDIES = 0x4 +BUDDY__DEL_BUDDIES = 0x5 +BUDDY__WATCHER_LIST_QUERY = 0x6 # who's watching me +BUDDY__WATCHER_LIST_RESPONSE = 0x7 +BUDDY__WATCHER_SUB_REQUEST = 0x8 +BUDDY__WATCHER_NOTIFICATION = 0x9 +BUDDY__REJECT_NOTIFICATION = 0xA # sent if a user has too many watchers +BUDDY__ARRIVED = 0xB # your friend is online +BUDDY__DEPARTED = 0xC # your friend is offline +BUDDY__ADD_TEMP_BUDDIES = 0xF # temporary buddy list +BUDDY__DEL_TEMP_BUDDIES = 0x10 \ No newline at end of file