Top | ![]() |
![]() |
![]() |
![]() |
GQuark | gfbgraph_node_error_quark () |
GFBGraphNode * | gfbgraph_node_new () |
GFBGraphNode * | gfbgraph_node_new_from_id () |
const gchar * | gfbgraph_node_get_id () |
const gchar * | gfbgraph_node_get_link () |
const gchar * | gfbgraph_node_get_created_time () |
const gchar * | gfbgraph_node_get_updated_time () |
GList * | gfbgraph_node_get_connection_nodes () |
void | gfbgraph_node_get_connection_nodes_async () |
GList * | gfbgraph_node_get_connection_nodes_async_finish () |
gboolean | gfbgraph_node_append_connection () |
gchar * | created-time | Read / Write |
gchar * | id | Read / Write |
gchar * | link | Read / Write |
gchar * | updated-time | Read / Write |
#define | GFBGRAPH_NODE_ERROR |
struct | GFBGraphNode |
struct | GFBGraphNodeClass |
enum | GFBGraphNodeError |
GFBGraphNode is the base class for the nodes in the Facebook Graph API, such a Album, a Photo or a User. Only usefull to expand the current library functionality creating new nodes based on it.
This object provide the common functions to manage the relations between nodes trough the GFBGraphConnectable interface. See gfbgraph_node_get_connection_nodes and gfbgraph_node_append_node
GFBGraphNode * gfbgraph_node_new_from_id (GFBGraphAuthorizer *authorizer
,const gchar *id
,GType node_type
,GError **error
);
Retrieve a node object as a GFBgraphNode of node_type type, with the given id
from the Facebook Graph.
id |
a const gchar with the node ID. |
|
node_type |
a GFBGraphNode type GType. |
|
authorizer |
a GFBGraphAuthorizer. |
|
error |
a GError or |
[allow-none] |
const gchar *
gfbgraph_node_get_id (GFBGraphNode *node
);
Gets the Facebook Graph unique node ID.
const gchar *
gfbgraph_node_get_created_time (GFBGraphNode *node
);
Gets a node created time.
const gchar *
gfbgraph_node_get_updated_time (GFBGraphNode *node
);
Gets a node updated time.
GList * gfbgraph_node_get_connection_nodes (GFBGraphNode *node
,GType node_type
,GFBGraphAuthorizer *authorizer
,GError **error
);
Retrieve the nodes of type node_type
connected to the node
object. The node_type
object must
implement the GFBGraphConnectionable interface and be connectable to node
type object.
See gfbgraph_node_get_connection_nodes_async()
for the asynchronous version of this call.
node |
a GFBGraphNode object which retrieve the connected nodes. |
|
node_type |
a GFBGraphNode type GType that determines the kind of nodes to retrieve. |
|
authorizer |
a GFBGraphAuthorizer. |
|
error |
a GError or |
[allow-none] |
void gfbgraph_node_get_connection_nodes_async (GFBGraphNode *node
,GType node_type
,GFBGraphAuthorizer *authorizer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously retrieve the list of nodes of type node_type
connected to the node
object. See
gfbgraph_node_get_connection_nodes()
for the synchronous version of this call.
When the operation is finished, callback
will be called. You can then call gfbgraph_node_get_connection_nodes_finish()
to get the list of connected nodes.
node |
A GFBGraphNode object which retrieve the connected nodes. |
|
node_type |
a GFBGraphNode type GType that must implement the GFBGraphConnectionable interface. |
|
authorizer |
a GFBGraphAuthorizer. |
|
cancellable |
An optional GCancellable object, or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is completed. |
[scope async] |
user_data |
The data to pass to |
[closure] |
GList * gfbgraph_node_get_connection_nodes_async_finish (GFBGraphNode *node
,GAsyncResult *result
,GError **error
);
Finishes an asynchronous operation started with
gfbgraph_node_get_connection_nodes_async()
.
node |
A GFBGraphNode. |
|
result |
A GAsyncResult. |
|
error |
An optional GError, or |
[allow-none] |
gboolean gfbgraph_node_append_connection (GFBGraphNode *node
,GFBGraphNode *connect_node
,GFBGraphAuthorizer *authorizer
,GError **error
);
Appends connect_node
to node
. connect_node
must implement the GFBGraphConnectable interface
and be connectable to node
GType.
node |
A GFBGraphNode. |
|
connect_node |
A GFBGraphNode. |
|
authorizer |
A GFBGraphAuthorizer. |
|
error |
An optional GError, or |
[allow-none] |
“created-time”
property “created-time” gchar *
An ISO 8601 encoded date when the node was initially published.
Owner: GFBGraphNode
Flags: Read / Write
Default value: ""
“id”
property “id” gchar *
The node ID. All nodes have one of this.
Owner: GFBGraphNode
Flags: Read / Write
Default value: ""
“link”
property “link” gchar *
The node link. An URL to the node on Facebook.
Owner: GFBGraphNode
Flags: Read / Write
Default value: ""