my_teams
logging_server.h
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, XXXX
3 ** NWP_myteams_XXXX
4 ** File description:
5 ** a file containing libs functions that should be called in myteams_server
6 */
7 
8 #ifndef LIB_MYTEAMS_LOGGING_SERVER_H
9 #define LIB_MYTEAMS_LOGGING_SERVER_H
10 
11 /*
12 ** As the server never initialize an action all function here are called events
13 */
14 
25  char const *team_uuid,
26  char const *team_name,
27  char const *user_uuid);
28 
39  char const *team_uuid,
40  char const *channel_uuid,
41  char const *channel_name);
42 
55  char const *channel_uuid,
56  char const *thread_uuid,
57  char const *user_uuid,
58  char const *thread_title,
59  char const *thread_body);
60 
71  char const *thread_uuid,
72  char const *user_uuid,
73  char const *reply_body);
74 
83 int server_event_user_subscribed(char const *team_uuid, char const *user_uuid);
84 
93 int server_event_user_unsubscribed(char const *team_uuid, char const *user_uuid);
94 
103 int server_event_user_created(char const *user_uuid, char const *user_name);
104 
115 int server_event_user_loaded(char const *user_uuid, char const *user_name);
116 
124 int server_event_user_logged_in(char const *user_uuid);
125 
134 int server_event_user_logged_out(char const *user_uuid);
135 
146  char const *sender_uuid,
147  char const *receiver_uuid,
148  char const *message_body);
149 
150 
151 
152 #endif /* LIB_MYTEAMS_LOGGING_SERVER_H */
int server_event_user_subscribed(char const *team_uuid, char const *user_uuid)
Must be called when a user subscribe to a team.
int server_event_reply_created(char const *thread_uuid, char const *user_uuid, char const *reply_body)
Must be called when a new reply is created in a thread.
int server_event_user_logged_in(char const *user_uuid)
Must be called when a user logged in.
int server_event_private_message_sended(char const *sender_uuid, char const *receiver_uuid, char const *message_body)
Must be called when a private message was sent between users.
int server_event_user_unsubscribed(char const *team_uuid, char const *user_uuid)
Must be called when a user unsubscribe from a team.
int server_event_team_created(char const *team_uuid, char const *team_name, char const *user_uuid)
Must be called when a new team is created.
int server_event_thread_created(char const *channel_uuid, char const *thread_uuid, char const *user_uuid, char const *thread_title, char const *thread_body)
Must be called when a new thread is created.
int server_event_channel_created(char const *team_uuid, char const *channel_uuid, char const *channel_name)
Must be called when a new channel is created.
int server_event_user_created(char const *user_uuid, char const *user_name)
Must be called when a user didn't existed in save and was created.
int server_event_user_logged_out(char const *user_uuid)
Must be called when a user logged out.
int server_event_user_loaded(char const *user_uuid, char const *user_name)
Must be called when a user was loaded from the save file Should be called at the start of the server ...