mirror of https://github.com/bqv/weechat-xmpp/
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.7 KiB
C
81 lines
1.7 KiB
C
#ifndef _SLACK_CHANNEL_H_
|
|
#define _SLACK_CHANNEL_H_
|
|
|
|
enum t_slack_channel_type
|
|
{
|
|
SLACK_CHANNEL_TYPE_CHANNEL,
|
|
SLACK_CHANNEL_TYPE_GROUP,
|
|
SLACK_CHANNEL_TYPE_MPIM,
|
|
SLACK_CHANNEL_TYPE_IM,
|
|
};
|
|
|
|
struct t_slack_channel_member
|
|
{
|
|
char *id;
|
|
|
|
struct t_slack_channel_member *prev_member;
|
|
struct t_slack_channel_member *next_member;
|
|
};
|
|
|
|
struct t_slack_channel_topic
|
|
{
|
|
char *value;
|
|
char *creator;
|
|
int last_set;
|
|
};
|
|
|
|
struct t_slack_channel_purpose
|
|
{
|
|
char *value;
|
|
char *creator;
|
|
int last_set;
|
|
};
|
|
|
|
struct t_slack_channel
|
|
{
|
|
enum t_slack_channel_type type;
|
|
char *id;
|
|
char *name;
|
|
int created;
|
|
|
|
/* channel */
|
|
int is_general;
|
|
char *name_normalized;
|
|
int is_shared;
|
|
int is_org_shared;
|
|
int is_member;
|
|
|
|
/* group */
|
|
struct t_slack_channel_topic topic;
|
|
struct t_slack_channel_purpose purpose;
|
|
int is_archived;
|
|
|
|
/* mpim */
|
|
char *creator;
|
|
double last_read;
|
|
int unread_count;
|
|
int unread_count_display;
|
|
|
|
/* im */
|
|
int is_user_deleted;
|
|
|
|
struct t_slack_channel_member *members;
|
|
struct t_slack_channel_member *last_member;
|
|
struct t_gui_buffer *buffer;
|
|
char *buffer_as_string;
|
|
|
|
struct t_slack_channel *prev_channel;
|
|
struct t_slack_channel *next_channel;
|
|
};
|
|
|
|
struct t_slack_channel *slack_channel_search(struct t_slack_workspace *workspace,
|
|
const char *id);
|
|
|
|
struct t_slack_channel *slack_channel_new(struct t_slack_workspace *workspace,
|
|
enum t_slack_channel_type type,
|
|
const char *id, const char *name);
|
|
|
|
void slack_user_free_all(struct t_slack_workspace *workspace);
|
|
|
|
#endif /*SLACK_CHANNEL_H*/
|