grim/purple-spasm

3c2a35b27899
Add some basic send message support and replies for pings
/*
* PurpleSpasm - A Twitch Protocol Plugin
* Copyright (C) 2017 Gary Kramlich <grim@reaperworld.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef PURPLE_SPASM_ACCOUNT_H
#define PURPLE_SPASM_ACCOUNT_H
#include <glib.h>
#include <json-glib/json-glib.h>
#include <libsoup/soup.h>
#include "account.h"
#include "connection.h"
#define PURPLE_SPASM_ACCOUNT(obj) ((PurpleSpasmAccount *)(obj))
typedef struct _PurpleSpasmAccount PurpleSpasmAccount;
#include "spasm-chat.h"
G_BEGIN_DECLS
// PurpleSpasmAccount *purple_spasm_account_new(PurpleAccount *account, PurpleConnection *connection);
// void purple_spasm_account_free(PurpleSpasmAccount *sa);
PurpleAccount *purple_spasm_account_get_account(const PurpleSpasmAccount *sa);
PurpleConnection *purple_spasm_account_get_connection(const PurpleSpasmAccount *sa);
void purple_spasm_account_login(PurpleAccount *account);
GCancellable *purple_spasm_account_get_cancellable(const PurpleSpasmAccount *sa);
SoupSession *purple_spasm_account_get_session(const PurpleSpasmAccount *sa);
const gchar * purple_spasm_account_get_access_token(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_display_name(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_id(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_name(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_type(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_bio(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_logo(const PurpleSpasmAccount *sa);
const gchar *purple_spasm_account_get_email(const PurpleSpasmAccount *sa);
gboolean purple_spasm_account_get_email_verified(const PurpleSpasmAccount *sa);
gboolean purple_spasm_account_get_partnered(const PurpleSpasmAccount *sa);
gboolean purple_spasm_account_get_twitter_connected(const PurpleSpasmAccount *sa);
G_END_DECLS
#endif /* PURPLE_SPASM_ACCOUNT_H */