Tchatator413
TripEnArvor instant messaging protocol - JSON-based
|
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. | ||
An action. Actions represent the commands the protocol implements.
action_error_t action_t::error |
page_number_t action_t::page |
action_type_t action_t::type |