Tchatator413
TripEnArvor instant messaging protocol - JSON-based
Loading...
Searching...
No Matches
Data Fields
action_t Struct Reference

An action. Actions represent the commands the protocol implements. More...

#include <action.h>

Data Fields

action_type_t type
 Type of the action.
 
union { 
 
   action_error_t   error 
 
   struct { 
 
      api_key_t   api_key 
 
      slice_t   password 
 
   }   login 
 
   struct { 
 
      token_t   token 
 
   }   logout 
 
   struct { 
 
      token_t   token 
 
   }   motd 
 
   struct { 
 
      api_key_t   api_key 
 
      serial_t   user_id 
 
   }   whois 
 
   struct { 
 
      token_t   token 
 
      serial_t   dest_user_id 
 
      slice_t   content 
 
   }   send 
 
   struct { 
 
      token_t   token 
 
      page_number_t   page 
 
   }   inbox 
 
   struct { 
 
      token_t   token 
 
      page_number_t   page 
 
   }   outbox 
 
   struct { 
 
      token_t   token 
 
      serial_t   msg_id 
 
      slice_t   new_content 
 
   }   edit 
 
   struct { 
 
      token_t   token 
 
      serial_t   msg_id 
 
   }   rm 
 
   struct { 
 
      token_t   token 
 
      serial_t   user_id 
 
   }   block 
 
   struct { 
 
      token_t   token 
 
      serial_t   user_id 
 
   }   unblock 
 
   struct { 
 
      token_t   token 
 
      serial_t   user_id 
 
   }   ban 
 
   struct { 
 
      token_t   token 
 
      serial_t   user_id 
 
   }   unban 
 
with 
 Payload of the action, tagged by action_t::type.
 

Detailed Description

An action. Actions represent the commands the protocol implements.

Definition at line 98 of file action.h.

Field Documentation

◆ api_key

api_key_t action_t::api_key

Definition at line 105 of file action.h.

◆ content

slice_t action_t::content

Definition at line 118 of file action.h.

◆ dest_user_id

serial_t action_t::dest_user_id

Definition at line 117 of file action.h.

◆ error

action_error_t action_t::error

Definition at line 103 of file action.h.

◆ msg_id

serial_t action_t::msg_id

Definition at line 126 of file action.h.

◆ new_content

slice_t action_t::new_content

Definition at line 127 of file action.h.

◆ page

page_number_t action_t::page

Definition at line 122 of file action.h.

◆ password

slice_t action_t::password

Definition at line 106 of file action.h.

◆ token

token_t action_t::token

Definition at line 109 of file action.h.

◆ type

action_type_t action_t::type

Type of the action.

Definition at line 100 of file action.h.

◆ user_id

serial_t action_t::user_id

Definition at line 113 of file action.h.


The documentation for this struct was generated from the following file: