/* Relationship.c generated by valac 0.52.4, the Vala compiler
 * generated from Relationship.vala, do not modify */

#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <json-glib/json-glib.h>
#include <stdlib.h>
#include <string.h>
#include <libsoup/soup.h>

#define TOOTLE_TYPE_WIDGETIZABLE (tootle_widgetizable_get_type ())
#define TOOTLE_WIDGETIZABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_WIDGETIZABLE, TootleWidgetizable))
#define TOOTLE_IS_WIDGETIZABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_WIDGETIZABLE))
#define TOOTLE_WIDGETIZABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TOOTLE_TYPE_WIDGETIZABLE, TootleWidgetizableIface))

typedef struct _TootleWidgetizable TootleWidgetizable;
typedef struct _TootleWidgetizableIface TootleWidgetizableIface;

#define TOOTLE_TYPE_ENTITY (tootle_entity_get_type ())
#define TOOTLE_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_ENTITY, TootleEntity))
#define TOOTLE_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_ENTITY, TootleEntityClass))
#define TOOTLE_IS_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_ENTITY))
#define TOOTLE_IS_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_ENTITY))
#define TOOTLE_ENTITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_ENTITY, TootleEntityClass))

typedef struct _TootleEntity TootleEntity;
typedef struct _TootleEntityClass TootleEntityClass;

#define TOOTLE_API_TYPE_ACCOUNT (tootle_api_account_get_type ())
#define TOOTLE_API_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccount))
#define TOOTLE_API_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccountClass))
#define TOOTLE_API_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_API_TYPE_ACCOUNT))
#define TOOTLE_API_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_API_TYPE_ACCOUNT))
#define TOOTLE_API_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccountClass))

typedef struct _TootleAPIAccount TootleAPIAccount;
typedef struct _TootleAPIAccountClass TootleAPIAccountClass;

#define TOOTLE_TYPE_INSTANCE_ACCOUNT (tootle_instance_account_get_type ())
#define TOOTLE_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccount))
#define TOOTLE_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccountClass))
#define TOOTLE_IS_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT))
#define TOOTLE_IS_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_INSTANCE_ACCOUNT))
#define TOOTLE_INSTANCE_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccountClass))

typedef struct _TootleInstanceAccount TootleInstanceAccount;
typedef struct _TootleInstanceAccountClass TootleInstanceAccountClass;
typedef struct _TootleEntityPrivate TootleEntityPrivate;

#define TOOTLE_API_TYPE_RELATIONSHIP (tootle_api_relationship_get_type ())
#define TOOTLE_API_RELATIONSHIP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationship))
#define TOOTLE_API_RELATIONSHIP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationshipClass))
#define TOOTLE_API_IS_RELATIONSHIP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_API_TYPE_RELATIONSHIP))
#define TOOTLE_API_IS_RELATIONSHIP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_API_TYPE_RELATIONSHIP))
#define TOOTLE_API_RELATIONSHIP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationshipClass))

typedef struct _TootleAPIRelationship TootleAPIRelationship;
typedef struct _TootleAPIRelationshipClass TootleAPIRelationshipClass;
typedef struct _TootleAPIRelationshipPrivate TootleAPIRelationshipPrivate;
enum  {
	TOOTLE_API_RELATIONSHIP_0_PROPERTY,
	TOOTLE_API_RELATIONSHIP_ID_PROPERTY,
	TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY,
	TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY,
	TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY,
	TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY,
	TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY,
	TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY,
	TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY,
	TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY,
	TOOTLE_API_RELATIONSHIP_NUM_PROPERTIES
};
static GParamSpec* tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TOOTLE_TYPE_REQUEST (tootle_request_get_type ())
#define TOOTLE_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_REQUEST, TootleRequest))
#define TOOTLE_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_REQUEST, TootleRequestClass))
#define TOOTLE_IS_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_REQUEST))
#define TOOTLE_IS_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_REQUEST))
#define TOOTLE_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_REQUEST, TootleRequestClass))

typedef struct _TootleRequest TootleRequest;
typedef struct _TootleRequestClass TootleRequestClass;

#define TOOTLE_TYPE_ACCOUNTS (tootle_accounts_get_type ())
#define TOOTLE_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_ACCOUNTS, TootleAccounts))
#define TOOTLE_ACCOUNTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_ACCOUNTS, TootleAccountsClass))
#define TOOTLE_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_ACCOUNTS))
#define TOOTLE_IS_ACCOUNTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_ACCOUNTS))
#define TOOTLE_ACCOUNTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_ACCOUNTS, TootleAccountsClass))

typedef struct _TootleAccounts TootleAccounts;
typedef struct _TootleAccountsClass TootleAccountsClass;
typedef void (*TootleNetworkSuccessCallback) (SoupSession* session, SoupMessage* msg, gpointer user_data, GError** error);
typedef void (*TootleNetworkNodeCallback) (JsonNode* node, SoupMessage* msg, gpointer user_data, GError** error);
typedef struct _Block18Data Block18Data;

#define TOOTLE_TYPE_NETWORK (tootle_network_get_type ())
#define TOOTLE_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_NETWORK, TootleNetwork))
#define TOOTLE_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_NETWORK, TootleNetworkClass))
#define TOOTLE_IS_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_NETWORK))
#define TOOTLE_IS_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_NETWORK))
#define TOOTLE_NETWORK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_NETWORK, TootleNetworkClass))

typedef struct _TootleNetwork TootleNetwork;
typedef struct _TootleNetworkClass TootleNetworkClass;
#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))

typedef enum  {
	TOOTLE_OOPSIE_USER,
	TOOTLE_OOPSIE_PARSING,
	TOOTLE_OOPSIE_INSTANCE,
	TOOTLE_OOPSIE_INTERNAL
} TootleOopsie;
#define TOOTLE_OOPSIE tootle_oopsie_quark ()
struct _TootleWidgetizableIface {
	GTypeInterface parent_iface;
	GtkWidget* (*to_widget) (TootleWidgetizable* self, GError** error);
	void (*open) (TootleWidgetizable* self);
	void (*resolve_open) (TootleWidgetizable* self, TootleInstanceAccount* account);
};

struct _TootleEntity {
	GObject parent_instance;
	TootleEntityPrivate * priv;
};

struct _TootleEntityClass {
	GObjectClass parent_class;
	gboolean (*is_local) (TootleEntity* self, TootleInstanceAccount* account);
};

struct _TootleAPIRelationship {
	TootleEntity parent_instance;
	TootleAPIRelationshipPrivate * priv;
};

struct _TootleAPIRelationshipClass {
	TootleEntityClass parent_class;
};

struct _TootleAPIRelationshipPrivate {
	gchar* _id;
	gboolean _following;
	gboolean _followed_by;
	gboolean _showing_reblogs;
	gboolean _muting;
	gboolean _muting_notifications;
	gboolean _requested;
	gboolean _blocking;
	gboolean _domain_blocking;
};

struct _Block18Data {
	int _ref_count_;
	TootleAPIRelationship* self;
	gchar* operation;
};

static gint TootleAPIRelationship_private_offset;
static gpointer tootle_api_relationship_parent_class = NULL;
extern TootleAccounts* tootle_accounts;
extern TootleNetwork* tootle_network;

GQuark tootle_oopsie_quark (void);
GType tootle_entity_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleEntity, g_object_unref)
GType tootle_api_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAPIAccount, g_object_unref)
GType tootle_instance_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleInstanceAccount, g_object_unref)
GType tootle_widgetizable_get_type (void) G_GNUC_CONST ;
GType tootle_api_relationship_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAPIRelationship, g_object_unref)
TootleAPIRelationship* tootle_api_relationship_from (JsonNode* node,
                                                     GError** error);
TootleEntity* tootle_entity_from_json (GType type,
                                       JsonNode* node,
                                       GError** error);
TootleAPIRelationship* tootle_api_relationship_new_for_account (TootleAPIAccount* acc);
TootleAPIRelationship* tootle_api_relationship_construct_for_account (GType object_type,
                                                                      TootleAPIAccount* acc);
const gchar* tootle_api_account_get_id (TootleAPIAccount* self);
void tootle_api_relationship_request (TootleAPIRelationship* self);
TootleRequest* tootle_request_new_GET (const gchar* url);
TootleRequest* tootle_request_construct_GET (GType object_type,
                                             const gchar* url);
GType tootle_request_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleRequest, g_object_unref)
TootleRequest* tootle_request_with_account (TootleRequest* self,
                                            TootleInstanceAccount* account);
GType tootle_accounts_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAccounts, g_object_unref)
TootleInstanceAccount* tootle_accounts_get_active (TootleAccounts* self);
TootleRequest* tootle_request_with_param (TootleRequest* self,
                                          const gchar* name,
                                          const gchar* val);
const gchar* tootle_api_relationship_get_id (TootleAPIRelationship* self);
TootleRequest* tootle_request_then (TootleRequest* self,
                                    TootleNetworkSuccessCallback cb,
                                    gpointer cb_target,
                                    GDestroyNotify cb_target_destroy_notify);
static void __lambda73_ (TootleAPIRelationship* self,
                  SoupSession* sess,
                  SoupMessage* msg,
                  GError** error);
void tootle_network_parse_array (SoupMessage* msg,
                                 TootleNetworkNodeCallback cb,
                                 gpointer cb_target,
                                 GDestroyNotify cb_target_destroy_notify,
                                 GError** error);
static void __lambda74_ (TootleAPIRelationship* self,
                  JsonNode* node,
                  GError** error);
static void tootle_api_relationship_invalidate (TootleAPIRelationship* self,
                                         JsonNode* node,
                                         GError** error);
static void ___lambda74__tootle_network_node_callback (JsonNode* node,
                                                SoupMessage* msg,
                                                gpointer self,
                                                GError** error);
static void ___lambda73__tootle_network_success_callback (SoupSession* session,
                                                   SoupMessage* msg,
                                                   gpointer self,
                                                   GError** error);
TootleRequest* tootle_request_exec (TootleRequest* self);
void tootle_entity_patch (TootleEntity* self,
                          GObject* with);
void tootle_api_relationship_modify (TootleAPIRelationship* self,
                                     const gchar* operation,
                                     const gchar* param,
                                     const gchar* val);
static Block18Data* block18_data_ref (Block18Data* _data18_);
static void block18_data_unref (void * _userdata_);
TootleRequest* tootle_request_new_POST (const gchar* url);
TootleRequest* tootle_request_construct_POST (GType object_type,
                                              const gchar* url);
static void __lambda75_ (Block18Data* _data18_,
                  SoupSession* sess,
                  SoupMessage* msg,
                  GError** error);
GType tootle_network_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleNetwork, g_object_unref)
JsonNode* tootle_network_parse_node (TootleNetwork* self,
                                     SoupMessage* msg,
                                     GError** error);
static void _vala_JsonNode_free (JsonNode* self);
static void ___lambda75__tootle_network_success_callback (SoupSession* session,
                                                   SoupMessage* msg,
                                                   gpointer self,
                                                   GError** error);
TootleAPIRelationship* tootle_api_relationship_new (void);
TootleAPIRelationship* tootle_api_relationship_construct (GType object_type);
TootleEntity* tootle_entity_new (void);
TootleEntity* tootle_entity_construct (GType object_type);
void tootle_api_relationship_set_id (TootleAPIRelationship* self,
                                     const gchar* value);
gboolean tootle_api_relationship_get_following (TootleAPIRelationship* self);
void tootle_api_relationship_set_following (TootleAPIRelationship* self,
                                            gboolean value);
gboolean tootle_api_relationship_get_followed_by (TootleAPIRelationship* self);
void tootle_api_relationship_set_followed_by (TootleAPIRelationship* self,
                                              gboolean value);
gboolean tootle_api_relationship_get_showing_reblogs (TootleAPIRelationship* self);
void tootle_api_relationship_set_showing_reblogs (TootleAPIRelationship* self,
                                                  gboolean value);
gboolean tootle_api_relationship_get_muting (TootleAPIRelationship* self);
void tootle_api_relationship_set_muting (TootleAPIRelationship* self,
                                         gboolean value);
gboolean tootle_api_relationship_get_muting_notifications (TootleAPIRelationship* self);
void tootle_api_relationship_set_muting_notifications (TootleAPIRelationship* self,
                                                       gboolean value);
gboolean tootle_api_relationship_get_requested (TootleAPIRelationship* self);
void tootle_api_relationship_set_requested (TootleAPIRelationship* self,
                                            gboolean value);
gboolean tootle_api_relationship_get_blocking (TootleAPIRelationship* self);
void tootle_api_relationship_set_blocking (TootleAPIRelationship* self,
                                           gboolean value);
gboolean tootle_api_relationship_get_domain_blocking (TootleAPIRelationship* self);
void tootle_api_relationship_set_domain_blocking (TootleAPIRelationship* self,
                                                  gboolean value);
static void tootle_api_relationship_finalize (GObject * obj);
static GType tootle_api_relationship_get_type_once (void);
static void _vala_tootle_api_relationship_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec);
static void _vala_tootle_api_relationship_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
tootle_api_relationship_get_instance_private (TootleAPIRelationship* self)
{
	return G_STRUCT_MEMBER_P (self, TootleAPIRelationship_private_offset);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

TootleAPIRelationship*
tootle_api_relationship_from (JsonNode* node,
                              GError** error)
{
	TootleEntity* _tmp0_ = NULL;
	TootleEntity* _tmp1_;
	TootleAPIRelationship* _tmp2_;
	GError* _inner_error0_ = NULL;
	TootleAPIRelationship* result = NULL;
	g_return_val_if_fail (node != NULL, NULL);
	_tmp1_ = tootle_entity_from_json (TOOTLE_API_TYPE_RELATIONSHIP, node, &_inner_error0_);
	_tmp0_ = _tmp1_;
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return NULL;
	}
	_tmp2_ = _g_object_ref0 (TOOTLE_API_IS_RELATIONSHIP (_tmp0_) ? ((TootleAPIRelationship*) _tmp0_) : NULL);
	result = _tmp2_;
	_g_object_unref0 (_tmp0_);
	return result;
}

TootleAPIRelationship*
tootle_api_relationship_construct_for_account (GType object_type,
                                               TootleAPIAccount* acc)
{
	TootleAPIRelationship * self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	g_return_val_if_fail (acc != NULL, NULL);
	_tmp0_ = tootle_api_account_get_id (acc);
	_tmp1_ = _tmp0_;
	self = (TootleAPIRelationship*) g_object_new (object_type, "id", _tmp1_, NULL);
	tootle_api_relationship_request (self);
	return self;
}

TootleAPIRelationship*
tootle_api_relationship_new_for_account (TootleAPIAccount* acc)
{
	return tootle_api_relationship_construct_for_account (TOOTLE_API_TYPE_RELATIONSHIP, acc);
}

static void
__lambda74_ (TootleAPIRelationship* self,
             JsonNode* node,
             GError** error)
{
	GError* _inner_error0_ = NULL;
	g_return_if_fail (node != NULL);
	tootle_api_relationship_invalidate (self, node, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
}

static void
___lambda74__tootle_network_node_callback (JsonNode* node,
                                           SoupMessage* msg,
                                           gpointer self,
                                           GError** error)
{
	__lambda74_ ((TootleAPIRelationship*) self, node, error);
}

static void
__lambda73_ (TootleAPIRelationship* self,
             SoupSession* sess,
             SoupMessage* msg,
             GError** error)
{
	GError* _inner_error0_ = NULL;
	g_return_if_fail (sess != NULL);
	g_return_if_fail (msg != NULL);
	tootle_network_parse_array (msg, ___lambda74__tootle_network_node_callback, g_object_ref (self), g_object_unref, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
}

static void
___lambda73__tootle_network_success_callback (SoupSession* session,
                                              SoupMessage* msg,
                                              gpointer self,
                                              GError** error)
{
	__lambda73_ ((TootleAPIRelationship*) self, session, msg, error);
}

void
tootle_api_relationship_request (TootleAPIRelationship* self)
{
	TootleRequest* _tmp0_;
	TootleRequest* _tmp1_;
	TootleAccounts* _tmp2_;
	TootleInstanceAccount* _tmp3_;
	TootleInstanceAccount* _tmp4_;
	TootleRequest* _tmp5_;
	TootleRequest* _tmp6_;
	const gchar* _tmp7_;
	TootleRequest* _tmp8_;
	TootleRequest* _tmp9_;
	TootleRequest* _tmp10_;
	TootleRequest* _tmp11_;
	TootleRequest* _tmp12_;
	TootleRequest* _tmp13_;
	g_return_if_fail (self != NULL);
	_tmp0_ = tootle_request_new_GET ("/api/v1/accounts/relationships");
	_tmp1_ = _tmp0_;
	_tmp2_ = tootle_accounts;
	_tmp3_ = tootle_accounts_get_active (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_request_with_account (_tmp1_, _tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = self->priv->_id;
	_tmp8_ = tootle_request_with_param (_tmp6_, "id", _tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = tootle_request_then (_tmp9_, ___lambda73__tootle_network_success_callback, g_object_ref (self), g_object_unref);
	_tmp11_ = _tmp10_;
	_tmp12_ = tootle_request_exec (_tmp11_);
	_tmp13_ = _tmp12_;
	_g_object_unref0 (_tmp13_);
	_g_object_unref0 (_tmp11_);
	_g_object_unref0 (_tmp9_);
	_g_object_unref0 (_tmp6_);
	_g_object_unref0 (_tmp1_);
}

static void
tootle_api_relationship_invalidate (TootleAPIRelationship* self,
                                    JsonNode* node,
                                    GError** error)
{
	TootleAPIRelationship* rs = NULL;
	TootleAPIRelationship* _tmp0_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (node != NULL);
	_tmp0_ = tootle_api_relationship_from (node, &_inner_error0_);
	rs = _tmp0_;
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	tootle_entity_patch ((TootleEntity*) self, (GObject*) rs);
	g_object_notify ((GObject*) self, "id");
	_g_object_unref0 (rs);
}

static Block18Data*
block18_data_ref (Block18Data* _data18_)
{
	g_atomic_int_inc (&_data18_->_ref_count_);
	return _data18_;
}

static void
block18_data_unref (void * _userdata_)
{
	Block18Data* _data18_;
	_data18_ = (Block18Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data18_->_ref_count_)) {
		TootleAPIRelationship* self;
		self = _data18_->self;
		_g_free0 (_data18_->operation);
		_g_object_unref0 (self);
		g_slice_free (Block18Data, _data18_);
	}
}

static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}

static void
_vala_JsonNode_free (JsonNode* self)
{
	g_boxed_free (json_node_get_type (), self);
}

static void
__lambda75_ (Block18Data* _data18_,
             SoupSession* sess,
             SoupMessage* msg,
             GError** error)
{
	TootleAPIRelationship* self;
	JsonNode* node = NULL;
	TootleNetwork* _tmp0_;
	JsonNode* _tmp1_;
	JsonNode* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GError* _inner_error0_ = NULL;
	self = _data18_->self;
	g_return_if_fail (sess != NULL);
	g_return_if_fail (msg != NULL);
	_tmp0_ = tootle_network;
	_tmp1_ = tootle_network_parse_node (_tmp0_, msg, &_inner_error0_);
	node = _tmp1_;
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	_tmp2_ = node;
	tootle_api_relationship_invalidate (self, _tmp2_, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		__vala_JsonNode_free0 (node);
		return;
	}
	_tmp3_ = string_to_string (_data18_->operation);
	_tmp4_ = self->priv->_id;
	_tmp5_ = string_to_string (_tmp4_);
	_tmp6_ = g_strconcat ("Performed \"", _tmp3_, "\" on Relationship ", _tmp5_, NULL);
	_tmp7_ = _tmp6_;
	g_message ("Relationship.vala:46: %s", _tmp7_);
	_g_free0 (_tmp7_);
	__vala_JsonNode_free0 (node);
}

static void
___lambda75__tootle_network_success_callback (SoupSession* session,
                                              SoupMessage* msg,
                                              gpointer self,
                                              GError** error)
{
	__lambda75_ (self, session, msg, error);
}

void
tootle_api_relationship_modify (TootleAPIRelationship* self,
                                const gchar* operation,
                                const gchar* param,
                                const gchar* val)
{
	Block18Data* _data18_;
	gchar* _tmp0_;
	TootleRequest* req = NULL;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	TootleRequest* _tmp6_;
	TootleRequest* _tmp7_;
	TootleAccounts* _tmp8_;
	TootleInstanceAccount* _tmp9_;
	TootleInstanceAccount* _tmp10_;
	TootleRequest* _tmp11_;
	TootleRequest* _tmp12_;
	TootleRequest* _tmp13_;
	TootleRequest* _tmp14_;
	TootleRequest* _tmp18_;
	TootleRequest* _tmp19_;
	TootleRequest* _tmp20_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (operation != NULL);
	_data18_ = g_slice_new0 (Block18Data);
	_data18_->_ref_count_ = 1;
	_data18_->self = g_object_ref (self);
	_tmp0_ = g_strdup (operation);
	_g_free0 (_data18_->operation);
	_data18_->operation = _tmp0_;
	_tmp1_ = self->priv->_id;
	_tmp2_ = string_to_string (_tmp1_);
	_tmp3_ = string_to_string (_data18_->operation);
	_tmp4_ = g_strconcat ("/api/v1/accounts/", _tmp2_, "/", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = tootle_request_new_POST (_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = tootle_accounts;
	_tmp9_ = tootle_accounts_get_active (_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = tootle_request_with_account (_tmp7_, _tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = tootle_request_then (_tmp12_, ___lambda75__tootle_network_success_callback, block18_data_ref (_data18_), block18_data_unref);
	_tmp14_ = _tmp13_;
	_g_object_unref0 (_tmp12_);
	_g_object_unref0 (_tmp7_);
	_g_free0 (_tmp5_);
	req = _tmp14_;
	if (param != NULL) {
		TootleRequest* _tmp15_;
		TootleRequest* _tmp16_;
		TootleRequest* _tmp17_;
		_tmp15_ = req;
		_tmp16_ = tootle_request_with_param (_tmp15_, param, val);
		_tmp17_ = _tmp16_;
		_g_object_unref0 (_tmp17_);
	}
	_tmp18_ = req;
	_tmp19_ = tootle_request_exec (_tmp18_);
	_tmp20_ = _tmp19_;
	_g_object_unref0 (_tmp20_);
	_g_object_unref0 (req);
	block18_data_unref (_data18_);
	_data18_ = NULL;
}

TootleAPIRelationship*
tootle_api_relationship_construct (GType object_type)
{
	TootleAPIRelationship * self = NULL;
	self = (TootleAPIRelationship*) tootle_entity_construct (object_type);
	return self;
}

TootleAPIRelationship*
tootle_api_relationship_new (void)
{
	return tootle_api_relationship_construct (TOOTLE_API_TYPE_RELATIONSHIP);
}

const gchar*
tootle_api_relationship_get_id (TootleAPIRelationship* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_id;
	result = _tmp0_;
	return result;
}

void
tootle_api_relationship_set_id (TootleAPIRelationship* self,
                                const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_id);
		self->priv->_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_ID_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_following (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_following;
	return result;
}

void
tootle_api_relationship_set_following (TootleAPIRelationship* self,
                                       gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_following (self);
	if (old_value != value) {
		self->priv->_following = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_followed_by (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_followed_by;
	return result;
}

void
tootle_api_relationship_set_followed_by (TootleAPIRelationship* self,
                                         gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_followed_by (self);
	if (old_value != value) {
		self->priv->_followed_by = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_showing_reblogs (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_showing_reblogs;
	return result;
}

void
tootle_api_relationship_set_showing_reblogs (TootleAPIRelationship* self,
                                             gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_showing_reblogs (self);
	if (old_value != value) {
		self->priv->_showing_reblogs = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_muting (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_muting;
	return result;
}

void
tootle_api_relationship_set_muting (TootleAPIRelationship* self,
                                    gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_muting (self);
	if (old_value != value) {
		self->priv->_muting = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_muting_notifications (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_muting_notifications;
	return result;
}

void
tootle_api_relationship_set_muting_notifications (TootleAPIRelationship* self,
                                                  gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_muting_notifications (self);
	if (old_value != value) {
		self->priv->_muting_notifications = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_requested (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_requested;
	return result;
}

void
tootle_api_relationship_set_requested (TootleAPIRelationship* self,
                                       gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_requested (self);
	if (old_value != value) {
		self->priv->_requested = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_blocking (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_blocking;
	return result;
}

void
tootle_api_relationship_set_blocking (TootleAPIRelationship* self,
                                      gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_blocking (self);
	if (old_value != value) {
		self->priv->_blocking = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY]);
	}
}

gboolean
tootle_api_relationship_get_domain_blocking (TootleAPIRelationship* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_domain_blocking;
	return result;
}

void
tootle_api_relationship_set_domain_blocking (TootleAPIRelationship* self,
                                             gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_api_relationship_get_domain_blocking (self);
	if (old_value != value) {
		self->priv->_domain_blocking = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY]);
	}
}

static void
tootle_api_relationship_class_init (TootleAPIRelationshipClass * klass,
                                    gpointer klass_data)
{
	tootle_api_relationship_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &TootleAPIRelationship_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_tootle_api_relationship_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_tootle_api_relationship_set_property;
	G_OBJECT_CLASS (klass)->finalize = tootle_api_relationship_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_ID_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_ID_PROPERTY] = g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY] = g_param_spec_boolean ("following", "following", "following", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY] = g_param_spec_boolean ("followed-by", "followed-by", "followed-by", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY] = g_param_spec_boolean ("showing-reblogs", "showing-reblogs", "showing-reblogs", TRUE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY] = g_param_spec_boolean ("muting", "muting", "muting", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY] = g_param_spec_boolean ("muting-notifications", "muting-notifications", "muting-notifications", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY] = g_param_spec_boolean ("requested", "requested", "requested", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY] = g_param_spec_boolean ("blocking", "blocking", "blocking", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY, tootle_api_relationship_properties[TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY] = g_param_spec_boolean ("domain-blocking", "domain-blocking", "domain-blocking", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
tootle_api_relationship_instance_init (TootleAPIRelationship * self,
                                       gpointer klass)
{
	gchar* _tmp0_;
	self->priv = tootle_api_relationship_get_instance_private (self);
	_tmp0_ = g_strdup ("");
	self->priv->_id = _tmp0_;
	self->priv->_following = FALSE;
	self->priv->_followed_by = FALSE;
	self->priv->_showing_reblogs = TRUE;
	self->priv->_muting = FALSE;
	self->priv->_muting_notifications = FALSE;
	self->priv->_requested = FALSE;
	self->priv->_blocking = FALSE;
	self->priv->_domain_blocking = FALSE;
}

static void
tootle_api_relationship_finalize (GObject * obj)
{
	TootleAPIRelationship * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationship);
	_g_free0 (self->priv->_id);
	G_OBJECT_CLASS (tootle_api_relationship_parent_class)->finalize (obj);
}

static GType
tootle_api_relationship_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (TootleAPIRelationshipClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tootle_api_relationship_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TootleAPIRelationship), 0, (GInstanceInitFunc) tootle_api_relationship_instance_init, NULL };
	GType tootle_api_relationship_type_id;
	tootle_api_relationship_type_id = g_type_register_static (TOOTLE_TYPE_ENTITY, "TootleAPIRelationship", &g_define_type_info, 0);
	TootleAPIRelationship_private_offset = g_type_add_instance_private (tootle_api_relationship_type_id, sizeof (TootleAPIRelationshipPrivate));
	return tootle_api_relationship_type_id;
}

GType
tootle_api_relationship_get_type (void)
{
	static volatile gsize tootle_api_relationship_type_id__volatile = 0;
	if (g_once_init_enter (&tootle_api_relationship_type_id__volatile)) {
		GType tootle_api_relationship_type_id;
		tootle_api_relationship_type_id = tootle_api_relationship_get_type_once ();
		g_once_init_leave (&tootle_api_relationship_type_id__volatile, tootle_api_relationship_type_id);
	}
	return tootle_api_relationship_type_id__volatile;
}

static void
_vala_tootle_api_relationship_get_property (GObject * object,
                                            guint property_id,
                                            GValue * value,
                                            GParamSpec * pspec)
{
	TootleAPIRelationship * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationship);
	switch (property_id) {
		case TOOTLE_API_RELATIONSHIP_ID_PROPERTY:
		g_value_set_string (value, tootle_api_relationship_get_id (self));
		break;
		case TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_following (self));
		break;
		case TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_followed_by (self));
		break;
		case TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_showing_reblogs (self));
		break;
		case TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_muting (self));
		break;
		case TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_muting_notifications (self));
		break;
		case TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_requested (self));
		break;
		case TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_blocking (self));
		break;
		case TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY:
		g_value_set_boolean (value, tootle_api_relationship_get_domain_blocking (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_tootle_api_relationship_set_property (GObject * object,
                                            guint property_id,
                                            const GValue * value,
                                            GParamSpec * pspec)
{
	TootleAPIRelationship * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TOOTLE_API_TYPE_RELATIONSHIP, TootleAPIRelationship);
	switch (property_id) {
		case TOOTLE_API_RELATIONSHIP_ID_PROPERTY:
		tootle_api_relationship_set_id (self, g_value_get_string (value));
		break;
		case TOOTLE_API_RELATIONSHIP_FOLLOWING_PROPERTY:
		tootle_api_relationship_set_following (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_FOLLOWED_BY_PROPERTY:
		tootle_api_relationship_set_followed_by (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_SHOWING_REBLOGS_PROPERTY:
		tootle_api_relationship_set_showing_reblogs (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_MUTING_PROPERTY:
		tootle_api_relationship_set_muting (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_MUTING_NOTIFICATIONS_PROPERTY:
		tootle_api_relationship_set_muting_notifications (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_REQUESTED_PROPERTY:
		tootle_api_relationship_set_requested (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_BLOCKING_PROPERTY:
		tootle_api_relationship_set_blocking (self, g_value_get_boolean (value));
		break;
		case TOOTLE_API_RELATIONSHIP_DOMAIN_BLOCKING_PROPERTY:
		tootle_api_relationship_set_domain_blocking (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

