my_teams
logging_server.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
int server_event_user_subscribed (char const *team_uuid, char const *user_uuid)
 Must be called when a user subscribe to a team. More...
 
int server_event_user_unsubscribed (char const *team_uuid, char const *user_uuid)
 Must be called when a user unsubscribe from a team. More...
 
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. More...
 
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 once per user loaded It should display all users that were saved. More...
 
int server_event_user_logged_in (char const *user_uuid)
 Must be called when a user logged in. More...
 
int server_event_user_logged_out (char const *user_uuid)
 Must be called when a user logged out. More...
 
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. More...
 

Function Documentation

◆ server_event_channel_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.

Parameters
team_uuidThe id of the team this channel is in
channel_uuidThe id of the created channel
channel_nameThe name of the new channel

Commands: /create "channel_name" "channel_description"

◆ server_event_private_message_sended()

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.

Parameters
sender_uuidThe id of the user that sent the message
receiver_uuidThe if of the user that receive the message
message_bodyThe message body

Commands: /send "user_uuid" "message_body"

◆ server_event_reply_created()

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.

Parameters
thread_uuidThe id of the thread this message was created in
user_uuidThe id of the user who created the reply
reply_bodyThe body of the created reply

Commands: /create "reply_body"

◆ server_event_team_created()

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.

Parameters
team_uuidThe id of the team that was created
team_nameThe name of the team that was created
user_uuidThe id of the user who created the new team

Commands: /create "team_name" "team_description"

◆ server_event_thread_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.

Parameters
channel_uuidThe id of the channel this thread was created in
thread_uuidThe id of the created thread
user_uuidThe id of the user who created the thread
thread_titleThe title of the created thread
thread_bodyThe body of the created thread

Commands: /create "thread_title" "thread_body"

◆ server_event_user_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.

Parameters
user_uuidThe id of the user that was created
user_nameThe name of the user that was created

Commands: /login "user_name"

◆ server_event_user_loaded()

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 once per user loaded It should display all users that were saved.

Parameters
user_uuidThe id of the saved user
user_nameThe name of the saved user

Commands: None, should be used at server start

◆ server_event_user_logged_in()

int server_event_user_logged_in ( char const *  user_uuid)

Must be called when a user logged in.

Parameters
user_uuidThe id of the user that logged in

Commands: /login

◆ server_event_user_logged_out()

int server_event_user_logged_out ( char const *  user_uuid)

Must be called when a user logged out.

Parameters
user_uuidThe id of the user that logged out

Commands: /logout When a user lost connexion to the server

◆ server_event_user_subscribed()

int server_event_user_subscribed ( char const *  team_uuid,
char const *  user_uuid 
)

Must be called when a user subscribe to a team.

Parameters
team_uuidThe id of the subscribed team
user_uuidThe id of the subscribed user

Commands: /subscribe "team_uuid"

◆ server_event_user_unsubscribed()

int server_event_user_unsubscribed ( char const *  team_uuid,
char const *  user_uuid 
)

Must be called when a user unsubscribe from a team.

Parameters
team_uuidThe id of the unsubscribed team
user_uuidThe id of the unsubscribed user

Commands: /unsubscribe "team_uuid"