@girs/gfbgraph-0.3 0.3.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1305 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GFBGraph-0.3
10
+ */
11
+
12
+ import type Soup from '@girs/soup-2.4';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+ import type Rest from '@girs/rest-0.7';
17
+ import type Json from '@girs/json-1.0';
18
+
19
+ export namespace GFBGraph {
20
+
21
+ enum NodeError {
22
+ CONNECTIONABLE,
23
+ CONNECTABLE,
24
+ }
25
+ /**
26
+ * Create a new #RestProxyCall pointing to the Facebook Graph API url (https://graph.facebook.com)
27
+ * and processed by the authorizer to allow queries.
28
+ * @param authorizer a #GFBGraphAuthorizer.
29
+ * @returns a new #RestProxyCall or %NULL in case of error.
30
+ */
31
+ function new_rest_call(authorizer: Authorizer): Rest.ProxyCall
32
+ module Authorizer {
33
+
34
+ // Constructor properties interface
35
+
36
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
37
+ }
38
+
39
+ }
40
+
41
+ interface Authorizer {
42
+
43
+ // Owm methods of GFBGraph-0.3.GFBGraph.Authorizer
44
+
45
+ /**
46
+ * Adds the necessary authorization to `call`.
47
+ *
48
+ * This method modifies `call` in place and is thread safe.
49
+ * @param call A #RestProxyCall.
50
+ */
51
+ process_call(call: Rest.ProxyCall): void
52
+ /**
53
+ * Adds the necessary authorization to `message`. The type of `message`
54
+ * can be DELETE, GET and POST.
55
+ *
56
+ * This method modifies `message` in place and is thread safe.
57
+ * @param message A #SoupMessage.
58
+ */
59
+ process_message(message: Soup.Message): void
60
+ /**
61
+ * Synchronously forces `iface` to refresh any authorization tokens
62
+ * held by it.
63
+ *
64
+ * This method is thread safe.
65
+ * @param cancellable An optional #GCancellable object, or %NULL.
66
+ * @returns %TRUE if the authorizer now has a valid token.
67
+ */
68
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean
69
+
70
+ // Own virtual methods of GFBGraph-0.3.GFBGraph.Authorizer
71
+
72
+ /**
73
+ * Adds the necessary authorization to `call`.
74
+ *
75
+ * This method modifies `call` in place and is thread safe.
76
+ * @virtual
77
+ * @param call A #RestProxyCall.
78
+ */
79
+ vfunc_process_call(call: Rest.ProxyCall): void
80
+ /**
81
+ * Adds the necessary authorization to `message`. The type of `message`
82
+ * can be DELETE, GET and POST.
83
+ *
84
+ * This method modifies `message` in place and is thread safe.
85
+ * @virtual
86
+ * @param message A #SoupMessage.
87
+ */
88
+ vfunc_process_message(message: Soup.Message): void
89
+ /**
90
+ * Synchronously forces `iface` to refresh any authorization tokens
91
+ * held by it.
92
+ *
93
+ * This method is thread safe.
94
+ * @virtual
95
+ * @param cancellable An optional #GCancellable object, or %NULL.
96
+ * @returns %TRUE if the authorizer now has a valid token.
97
+ */
98
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean
99
+
100
+ // Class property signals of GFBGraph-0.3.GFBGraph.Authorizer
101
+
102
+ connect(sigName: string, callback: (...args: any[]) => void): number
103
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
104
+ emit(sigName: string, ...args: any[]): void
105
+ disconnect(id: number): void
106
+ }
107
+
108
+ class Authorizer extends GObject.Object {
109
+
110
+ // Own properties of GFBGraph-0.3.GFBGraph.Authorizer
111
+
112
+ static name: string
113
+ static $gtype: GObject.GType<Authorizer>
114
+
115
+ // Constructors of GFBGraph-0.3.GFBGraph.Authorizer
116
+
117
+ constructor(config?: Authorizer.ConstructorProperties)
118
+ _init(config?: Authorizer.ConstructorProperties): void
119
+ }
120
+
121
+ module Connectable {
122
+
123
+ // Constructor properties interface
124
+
125
+ interface ConstructorProperties extends Node.ConstructorProperties, GObject.Object.ConstructorProperties {
126
+ }
127
+
128
+ }
129
+
130
+ interface Connectable extends Node {
131
+
132
+ // Owm methods of GFBGraph-0.3.GFBGraph.Connectable
133
+
134
+ /**
135
+ * In most cases, #GFBGraphConnectable implementers can use this function in order to parse
136
+ * the response when a gfbgraph_node_get_connection_nodes() is executed and the
137
+ * gfbgraph_connectable_parse_connected_data() was called.
138
+ *
139
+ * Normally, Facebook Graph API returns the connections in the same way, using JSON objects,
140
+ * with a root object called "data".
141
+ * @param payload a const #gchar with the response string from the Facebook Graph API.
142
+ * @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self.
143
+ */
144
+ default_parse_connected_data(payload: string | null): Node[]
145
+ /**
146
+ * Get the Facebook Graph API function path to retrieve the nodes connected with `node_type`
147
+ * managed by the #GFBGraphConnectable object.
148
+ * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
149
+ * @returns a const #gchar with the function path or %NULL.
150
+ */
151
+ get_connection_path(node_type: GObject.GType): string | null
152
+ /**
153
+ * Get the params to be inserted in a request to the Facebook Graph API
154
+ * in order to append the node `self` to a node of type `node_type`.
155
+ * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
156
+ * @returns A string based #GHashTable with the params and his values or %NULL.
157
+ */
158
+ get_connection_post_params(node_type: GObject.GType): GLib.HashTable
159
+ /**
160
+ * Check if `self` object, normally a #GFBGraphNode implementing the #GFBGraphConnectable interface,
161
+ * has the possibility to be connected to another node of type `node_type`.
162
+ * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
163
+ * @returns %TRUE in case that the @self object can be connected to a node of type @node_type, %FALSE otherwise.
164
+ */
165
+ is_connectable_to(node_type: GObject.GType): boolean
166
+ /**
167
+ * Parse the response contained in `payload` when a gfbgraph_node_get_connection_nodes() was
168
+ * executed.
169
+ * @param payload a const #gchar with the response string from the Facebook Graph API.
170
+ * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
171
+ */
172
+ parse_connected_data(payload: string | null): Node[]
173
+
174
+ // Own virtual methods of GFBGraph-0.3.GFBGraph.Connectable
175
+
176
+ /**
177
+ * Get the params to be inserted in a request to the Facebook Graph API
178
+ * in order to append the node `self` to a node of type `node_type`.
179
+ * @virtual
180
+ * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
181
+ * @returns A string based #GHashTable with the params and his values or %NULL.
182
+ */
183
+ vfunc_get_connection_post_params(node_type: GObject.GType): GLib.HashTable
184
+ /**
185
+ * Parse the response contained in `payload` when a gfbgraph_node_get_connection_nodes() was
186
+ * executed.
187
+ * @virtual
188
+ * @param payload a const #gchar with the response string from the Facebook Graph API.
189
+ * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
190
+ */
191
+ vfunc_parse_connected_data(payload: string | null): Node[]
192
+
193
+ // Class property signals of GFBGraph-0.3.GFBGraph.Connectable
194
+
195
+ connect(sigName: "notify::created-time", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
196
+ connect_after(sigName: "notify::created-time", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
197
+ emit(sigName: "notify::created-time", ...args: any[]): void
198
+ connect(sigName: "notify::id", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
199
+ connect_after(sigName: "notify::id", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
200
+ emit(sigName: "notify::id", ...args: any[]): void
201
+ connect(sigName: "notify::link", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
202
+ connect_after(sigName: "notify::link", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
203
+ emit(sigName: "notify::link", ...args: any[]): void
204
+ connect(sigName: "notify::updated-time", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
205
+ connect_after(sigName: "notify::updated-time", callback: (($obj: Connectable, pspec: GObject.ParamSpec) => void)): number
206
+ emit(sigName: "notify::updated-time", ...args: any[]): void
207
+ connect(sigName: string, callback: (...args: any[]) => void): number
208
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
209
+ emit(sigName: string, ...args: any[]): void
210
+ disconnect(id: number): void
211
+ }
212
+
213
+ class Connectable extends GObject.Object {
214
+
215
+ // Own properties of GFBGraph-0.3.GFBGraph.Connectable
216
+
217
+ static name: string
218
+ static $gtype: GObject.GType<Connectable>
219
+
220
+ // Constructors of GFBGraph-0.3.GFBGraph.Connectable
221
+
222
+ constructor(config?: Connectable.ConstructorProperties)
223
+ _init(config?: Connectable.ConstructorProperties): void
224
+ }
225
+
226
+ module Album {
227
+
228
+ // Constructor properties interface
229
+
230
+ interface ConstructorProperties extends Connectable.ConstructorProperties, Node.ConstructorProperties {
231
+
232
+ // Own constructor properties of GFBGraph-0.3.GFBGraph.Album
233
+
234
+ /**
235
+ * The number of photos in the album.
236
+ */
237
+ count?: number | null
238
+ cover_photo?: string | null
239
+ /**
240
+ * The album description given by the owner.
241
+ */
242
+ description?: string | null
243
+ /**
244
+ * The album name.
245
+ */
246
+ name?: string | null
247
+ }
248
+
249
+ }
250
+
251
+ interface Album extends Connectable {
252
+
253
+ // Own properties of GFBGraph-0.3.GFBGraph.Album
254
+
255
+ /**
256
+ * The number of photos in the album.
257
+ */
258
+ count: number
259
+ cover_photo: string | null
260
+ /**
261
+ * The album description given by the owner.
262
+ */
263
+ description: string | null
264
+ /**
265
+ * The album name.
266
+ */
267
+ name: string | null
268
+
269
+ // Own fields of GFBGraph-0.3.GFBGraph.Album
270
+
271
+ parent: Node & GObject.Object
272
+
273
+ // Owm methods of GFBGraph-0.3.GFBGraph.Album
274
+
275
+ get_count(): number
276
+ get_cover_photo_id(): string | null
277
+ get_description(): string | null
278
+ get_name(): string | null
279
+ /**
280
+ * Sets the description for the `album`.
281
+ * @param description a const pointer to a #gchar.
282
+ */
283
+ set_description(description: string | null): void
284
+ /**
285
+ * Sets the name for the `album`.
286
+ * @param name a const pointer to a #gchar.
287
+ */
288
+ set_name(name: string | null): void
289
+
290
+ // Class property signals of GFBGraph-0.3.GFBGraph.Album
291
+
292
+ connect(sigName: "notify::count", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
293
+ connect_after(sigName: "notify::count", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
294
+ emit(sigName: "notify::count", ...args: any[]): void
295
+ connect(sigName: "notify::cover-photo", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
296
+ connect_after(sigName: "notify::cover-photo", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
297
+ emit(sigName: "notify::cover-photo", ...args: any[]): void
298
+ connect(sigName: "notify::description", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
299
+ connect_after(sigName: "notify::description", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
300
+ emit(sigName: "notify::description", ...args: any[]): void
301
+ connect(sigName: "notify::name", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
302
+ connect_after(sigName: "notify::name", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
303
+ emit(sigName: "notify::name", ...args: any[]): void
304
+ connect(sigName: "notify::created-time", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
305
+ connect_after(sigName: "notify::created-time", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
306
+ emit(sigName: "notify::created-time", ...args: any[]): void
307
+ connect(sigName: "notify::id", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
308
+ connect_after(sigName: "notify::id", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
309
+ emit(sigName: "notify::id", ...args: any[]): void
310
+ connect(sigName: "notify::link", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
311
+ connect_after(sigName: "notify::link", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
312
+ emit(sigName: "notify::link", ...args: any[]): void
313
+ connect(sigName: "notify::updated-time", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
314
+ connect_after(sigName: "notify::updated-time", callback: (($obj: Album, pspec: GObject.ParamSpec) => void)): number
315
+ emit(sigName: "notify::updated-time", ...args: any[]): void
316
+ connect(sigName: string, callback: (...args: any[]) => void): number
317
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
318
+ emit(sigName: string, ...args: any[]): void
319
+ disconnect(id: number): void
320
+ }
321
+
322
+ class Album extends Node {
323
+
324
+ // Own properties of GFBGraph-0.3.GFBGraph.Album
325
+
326
+ static name: string
327
+ static $gtype: GObject.GType<Album>
328
+
329
+ // Constructors of GFBGraph-0.3.GFBGraph.Album
330
+
331
+ constructor(config?: Album.ConstructorProperties)
332
+ /**
333
+ * Creates a new #GFBGraphAlbum.
334
+ * @constructor
335
+ * @returns a new #GFBGraphAlbum; unref with g_object_unref()
336
+ */
337
+ constructor()
338
+ /**
339
+ * Creates a new #GFBGraphAlbum.
340
+ * @constructor
341
+ * @returns a new #GFBGraphAlbum; unref with g_object_unref()
342
+ */
343
+ static new(): Album
344
+
345
+ // Overloads of new
346
+
347
+ /**
348
+ * Creates a new #GFBGraphNode.
349
+ * @constructor
350
+ * @returns a new #GFBGraphNode; unref with g_object_unref()
351
+ */
352
+ static new(): Node
353
+ /**
354
+ * Retrieves an album node from the Facebook Graph with the give ID.
355
+ * @constructor
356
+ * @param authorizer a #GFBGraphAuthorizer.
357
+ * @param id a const #gchar with the album ID.
358
+ * @returns a new #GFBGraphAlbum; unref with g_object_unref()
359
+ */
360
+ static new_from_id(authorizer: Authorizer, id: string | null): Album
361
+
362
+ // Overloads of new_from_id
363
+
364
+ /**
365
+ * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph.
366
+ * @constructor
367
+ * @param authorizer a #GFBGraphAuthorizer.
368
+ * @param id a const #gchar with the node ID.
369
+ * @param node_type a #GFBGraphNode type #GType.
370
+ * @returns a #GFBGraphNode or %NULL.
371
+ */
372
+ static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
373
+ _init(config?: Album.ConstructorProperties): void
374
+ }
375
+
376
+ module GoaAuthorizer {
377
+
378
+ // Constructor properties interface
379
+
380
+ interface ConstructorProperties extends Authorizer.ConstructorProperties, GObject.Object.ConstructorProperties {
381
+ }
382
+
383
+ }
384
+
385
+ interface GoaAuthorizer extends Authorizer {
386
+
387
+ // Own fields of GFBGraph-0.3.GFBGraph.GoaAuthorizer
388
+
389
+ parent: GObject.Object
390
+
391
+ // Class property signals of GFBGraph-0.3.GFBGraph.GoaAuthorizer
392
+
393
+ connect(sigName: string, callback: (...args: any[]) => void): number
394
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
395
+ emit(sigName: string, ...args: any[]): void
396
+ disconnect(id: number): void
397
+ }
398
+
399
+ class GoaAuthorizer extends GObject.Object {
400
+
401
+ // Own properties of GFBGraph-0.3.GFBGraph.GoaAuthorizer
402
+
403
+ static name: string
404
+ static $gtype: GObject.GType<GoaAuthorizer>
405
+
406
+ // Constructors of GFBGraph-0.3.GFBGraph.GoaAuthorizer
407
+
408
+ constructor(config?: GoaAuthorizer.ConstructorProperties)
409
+ _init(config?: GoaAuthorizer.ConstructorProperties): void
410
+ }
411
+
412
+ module Node {
413
+
414
+ // Constructor properties interface
415
+
416
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
417
+
418
+ // Own constructor properties of GFBGraph-0.3.GFBGraph.Node
419
+
420
+ created_time?: string | null
421
+ /**
422
+ * The node ID. All nodes have one of this.
423
+ */
424
+ id?: string | null
425
+ /**
426
+ * The node link. An URL to the node on Facebook.
427
+ */
428
+ link?: string | null
429
+ updated_time?: string | null
430
+ }
431
+
432
+ }
433
+
434
+ interface Node {
435
+
436
+ // Own properties of GFBGraph-0.3.GFBGraph.Node
437
+
438
+ created_time: string | null
439
+ /**
440
+ * The node ID. All nodes have one of this.
441
+ */
442
+ id: string | null
443
+ /**
444
+ * The node link. An URL to the node on Facebook.
445
+ */
446
+ link: string | null
447
+ updated_time: string | null
448
+
449
+ // Own fields of GFBGraph-0.3.GFBGraph.Node
450
+
451
+ parent: GObject.Object
452
+
453
+ // Owm methods of GFBGraph-0.3.GFBGraph.Node
454
+
455
+ /**
456
+ * Appends `connect_node` to `node`. `connect_node` must implement the #GFBGraphConnectable interface
457
+ * and be connectable to `node` GType.
458
+ * @param connect_node A #GFBGraphNode.
459
+ * @param authorizer A #GFBGraphAuthorizer.
460
+ * @returns TRUE on sucess, FALSE if an error ocurred.
461
+ */
462
+ append_connection(connect_node: Node, authorizer: Authorizer): boolean
463
+ /**
464
+ * Retrieve the nodes of type `node_type` connected to the `node` object. The `node_type` object must
465
+ * implement the #GFBGraphConnectionable interface and be connectable to `node` type object.
466
+ * See gfbgraph_node_get_connection_nodes_async() for the asynchronous version of this call.
467
+ * @param node_type a #GFBGraphNode type #GType that determines the kind of nodes to retrieve.
468
+ * @param authorizer a #GFBGraphAuthorizer.
469
+ * @returns a newly-allocated #GList of type @node_type objects with the found nodes.
470
+ */
471
+ get_connection_nodes(node_type: GObject.GType, authorizer: Authorizer): Node[]
472
+ /**
473
+ * Asynchronously retrieve the list of nodes of type `node_type` connected to the `node` object. See
474
+ * gfbgraph_node_get_connection_nodes() for the synchronous version of this call.
475
+ *
476
+ * When the operation is finished, `callback` will be called. You can then call gfbgraph_node_get_connection_nodes_finish()
477
+ * to get the list of connected nodes.
478
+ * @param node_type a #GFBGraphNode type #GType that must implement the #GFBGraphConnectionable interface.
479
+ * @param authorizer a #GFBGraphAuthorizer.
480
+ * @param cancellable An optional #GCancellable object, or %NULL.
481
+ * @param callback A #GAsyncReadyCallback to call when the request is completed.
482
+ */
483
+ get_connection_nodes_async(node_type: GObject.GType, authorizer: Authorizer, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
484
+ /**
485
+ * Finishes an asynchronous operation started with
486
+ * gfbgraph_node_get_connection_nodes_async().
487
+ * @param result A #GAsyncResult.
488
+ * @returns a newly-allocated #GList of type #node_type objects with the found nodes.
489
+ */
490
+ get_connection_nodes_async_finish(result: Gio.AsyncResult): Node[]
491
+ /**
492
+ * Gets a node created time.
493
+ * @returns an ISO 8601 encoded date when the node was initially published.
494
+ */
495
+ get_created_time(): string | null
496
+ /**
497
+ * Gets the Facebook Graph unique node ID.
498
+ * @returns the node ID.
499
+ */
500
+ get_id(): string | null
501
+ get_link(): string | null
502
+ /**
503
+ * Gets a node updated time.
504
+ * @returns an ISO 8601 encoded date when the node was updated.
505
+ */
506
+ get_updated_time(): string | null
507
+ /**
508
+ * Sets the ID for a node. Just useful when a new node is created
509
+ * and the Graph API returns the ID of the new created node.
510
+ * @param id a const pointer to a #gchar.
511
+ */
512
+ set_id(id: string | null): void
513
+
514
+ // Class property signals of GFBGraph-0.3.GFBGraph.Node
515
+
516
+ connect(sigName: "notify::created-time", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
517
+ connect_after(sigName: "notify::created-time", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
518
+ emit(sigName: "notify::created-time", ...args: any[]): void
519
+ connect(sigName: "notify::id", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
520
+ connect_after(sigName: "notify::id", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
521
+ emit(sigName: "notify::id", ...args: any[]): void
522
+ connect(sigName: "notify::link", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
523
+ connect_after(sigName: "notify::link", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
524
+ emit(sigName: "notify::link", ...args: any[]): void
525
+ connect(sigName: "notify::updated-time", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
526
+ connect_after(sigName: "notify::updated-time", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
527
+ emit(sigName: "notify::updated-time", ...args: any[]): void
528
+ connect(sigName: string, callback: (...args: any[]) => void): number
529
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
530
+ emit(sigName: string, ...args: any[]): void
531
+ disconnect(id: number): void
532
+ }
533
+
534
+ class Node extends GObject.Object {
535
+
536
+ // Own properties of GFBGraph-0.3.GFBGraph.Node
537
+
538
+ static name: string
539
+ static $gtype: GObject.GType<Node>
540
+
541
+ // Constructors of GFBGraph-0.3.GFBGraph.Node
542
+
543
+ constructor(config?: Node.ConstructorProperties)
544
+ /**
545
+ * Creates a new #GFBGraphNode.
546
+ * @constructor
547
+ * @returns a new #GFBGraphNode; unref with g_object_unref()
548
+ */
549
+ constructor()
550
+ /**
551
+ * Creates a new #GFBGraphNode.
552
+ * @constructor
553
+ * @returns a new #GFBGraphNode; unref with g_object_unref()
554
+ */
555
+ static new(): Node
556
+ /**
557
+ * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph.
558
+ * @constructor
559
+ * @param authorizer a #GFBGraphAuthorizer.
560
+ * @param id a const #gchar with the node ID.
561
+ * @param node_type a #GFBGraphNode type #GType.
562
+ * @returns a #GFBGraphNode or %NULL.
563
+ */
564
+ static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
565
+ _init(config?: Node.ConstructorProperties): void
566
+ static error_quark(): GLib.Quark
567
+ }
568
+
569
+ module Photo {
570
+
571
+ // Constructor properties interface
572
+
573
+ interface ConstructorProperties extends Connectable.ConstructorProperties, Json.Serializable.ConstructorProperties, Node.ConstructorProperties {
574
+
575
+ // Own constructor properties of GFBGraph-0.3.GFBGraph.Photo
576
+
577
+ /**
578
+ * The default photo height, up to 720px.
579
+ */
580
+ height?: number | null
581
+ /**
582
+ * A list with the available representations of the photo, in differents sizes
583
+ */
584
+ images?: any | null
585
+ /**
586
+ * The name of the photo given by his owner.
587
+ */
588
+ name?: string | null
589
+ /**
590
+ * An URI for the photo, with a maximum width or height of 720px.
591
+ */
592
+ source?: string | null
593
+ /**
594
+ * The default photo width, up to 720px.
595
+ */
596
+ width?: number | null
597
+ }
598
+
599
+ }
600
+
601
+ interface Photo extends Connectable, Json.Serializable {
602
+
603
+ // Own properties of GFBGraph-0.3.GFBGraph.Photo
604
+
605
+ /**
606
+ * The default photo height, up to 720px.
607
+ */
608
+ height: number
609
+ /**
610
+ * A list with the available representations of the photo, in differents sizes
611
+ */
612
+ images: any
613
+ /**
614
+ * The name of the photo given by his owner.
615
+ */
616
+ name: string | null
617
+ /**
618
+ * An URI for the photo, with a maximum width or height of 720px.
619
+ */
620
+ source: string | null
621
+ /**
622
+ * The default photo width, up to 720px.
623
+ */
624
+ width: number
625
+
626
+ // Own fields of GFBGraph-0.3.GFBGraph.Photo
627
+
628
+ parent: Node & GObject.Object
629
+
630
+ // Owm methods of GFBGraph-0.3.GFBGraph.Photo
631
+
632
+ /**
633
+ * Download the default sized photo pointed by `photo,` with a maximum width or height of 720px.
634
+ * The photo always is a JPEG.
635
+ * @param authorizer a #GFBGraphAuthorizer.
636
+ * @returns a #GInputStream with the photo content or %NULL in case of error.
637
+ */
638
+ download_default_size(authorizer: Authorizer): Gio.InputStream
639
+ get_default_height(): number
640
+ get_default_source_uri(): string | null
641
+ get_default_width(): number
642
+ get_image_hires(): PhotoImage
643
+ get_image_near_height(height: number): PhotoImage
644
+ get_image_near_width(width: number): PhotoImage
645
+ get_images(): PhotoImage[]
646
+ get_name(): string | null
647
+
648
+ // Conflicting methods
649
+
650
+ /**
651
+ * Calls the [vfunc`Json`.Serializable.get_property] implementation
652
+ * on the `JsonSerializable` instance, which will get the value of
653
+ * the given property.
654
+ * @param pspec a property description
655
+ */
656
+ get_property(pspec: GObject.ParamSpec): /* value */ any
657
+
658
+ // Overloads of get_property
659
+
660
+ /**
661
+ * Gets a property of an object.
662
+ *
663
+ * The `value` can be:
664
+ *
665
+ * - an empty #GValue initialized by %G_VALUE_INIT, which will be
666
+ * automatically initialized with the expected type of the property
667
+ * (since GLib 2.60)
668
+ * - a #GValue initialized with the expected type of the property
669
+ * - a #GValue initialized with a type to which the expected type
670
+ * of the property can be transformed
671
+ *
672
+ * In general, a copy is made of the property contents and the caller is
673
+ * responsible for freeing the memory by calling g_value_unset().
674
+ *
675
+ * Note that g_object_get_property() is really intended for language
676
+ * bindings, g_object_get() is much more convenient for C programming.
677
+ * @param property_name the name of the property to get
678
+ * @param value return location for the property value
679
+ */
680
+ get_property(property_name: string | null, value: any): void
681
+ /**
682
+ * Gets a property of an object.
683
+ *
684
+ * The `value` can be:
685
+ *
686
+ * - an empty #GValue initialized by %G_VALUE_INIT, which will be
687
+ * automatically initialized with the expected type of the property
688
+ * (since GLib 2.60)
689
+ * - a #GValue initialized with the expected type of the property
690
+ * - a #GValue initialized with a type to which the expected type
691
+ * of the property can be transformed
692
+ *
693
+ * In general, a copy is made of the property contents and the caller is
694
+ * responsible for freeing the memory by calling g_value_unset().
695
+ *
696
+ * Note that g_object_get_property() is really intended for language
697
+ * bindings, g_object_get() is much more convenient for C programming.
698
+ * @param property_name the name of the property to get
699
+ * @param value return location for the property value
700
+ */
701
+ get_property(property_name: string | null, value: any): void
702
+ /**
703
+ * Calls the [vfunc`Json`.Serializable.set_property] implementation
704
+ * on the `JsonSerializable` instance, which will set the property
705
+ * with the given value.
706
+ * @param pspec a property description
707
+ * @param value the property value to set
708
+ */
709
+ set_property(pspec: GObject.ParamSpec, value: any): void
710
+
711
+ // Overloads of set_property
712
+
713
+ /**
714
+ * Sets a property on an object.
715
+ * @param property_name the name of the property to set
716
+ * @param value the value
717
+ */
718
+ set_property(property_name: string | null, value: any): void
719
+ /**
720
+ * Sets a property on an object.
721
+ * @param property_name the name of the property to set
722
+ * @param value the value
723
+ */
724
+ set_property(property_name: string | null, value: any): void
725
+ /**
726
+ * Calls the [vfunc`Json`.Serializable.get_property] implementation
727
+ * on the `JsonSerializable` instance, which will get the value of
728
+ * the given property.
729
+ * @virtual
730
+ * @param pspec a property description
731
+ */
732
+ vfunc_get_property(pspec: GObject.ParamSpec): /* value */ any
733
+
734
+ // Overloads of vfunc_get_property
735
+
736
+ vfunc_get_property(property_id: number, value: any, pspec: GObject.ParamSpec): void
737
+ vfunc_get_property(property_id: number, value: any, pspec: GObject.ParamSpec): void
738
+ /**
739
+ * Calls the [vfunc`Json`.Serializable.set_property] implementation
740
+ * on the `JsonSerializable` instance, which will set the property
741
+ * with the given value.
742
+ * @virtual
743
+ * @param pspec a property description
744
+ * @param value the property value to set
745
+ */
746
+ vfunc_set_property(pspec: GObject.ParamSpec, value: any): void
747
+
748
+ // Overloads of vfunc_set_property
749
+
750
+ vfunc_set_property(property_id: number, value: any, pspec: GObject.ParamSpec): void
751
+ vfunc_set_property(property_id: number, value: any, pspec: GObject.ParamSpec): void
752
+
753
+ // Class property signals of GFBGraph-0.3.GFBGraph.Photo
754
+
755
+ connect(sigName: "notify::height", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
756
+ connect_after(sigName: "notify::height", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
757
+ emit(sigName: "notify::height", ...args: any[]): void
758
+ connect(sigName: "notify::images", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
759
+ connect_after(sigName: "notify::images", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
760
+ emit(sigName: "notify::images", ...args: any[]): void
761
+ connect(sigName: "notify::name", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
762
+ connect_after(sigName: "notify::name", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
763
+ emit(sigName: "notify::name", ...args: any[]): void
764
+ connect(sigName: "notify::source", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
765
+ connect_after(sigName: "notify::source", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
766
+ emit(sigName: "notify::source", ...args: any[]): void
767
+ connect(sigName: "notify::width", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
768
+ connect_after(sigName: "notify::width", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
769
+ emit(sigName: "notify::width", ...args: any[]): void
770
+ connect(sigName: "notify::created-time", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
771
+ connect_after(sigName: "notify::created-time", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
772
+ emit(sigName: "notify::created-time", ...args: any[]): void
773
+ connect(sigName: "notify::id", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
774
+ connect_after(sigName: "notify::id", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
775
+ emit(sigName: "notify::id", ...args: any[]): void
776
+ connect(sigName: "notify::link", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
777
+ connect_after(sigName: "notify::link", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
778
+ emit(sigName: "notify::link", ...args: any[]): void
779
+ connect(sigName: "notify::updated-time", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
780
+ connect_after(sigName: "notify::updated-time", callback: (($obj: Photo, pspec: GObject.ParamSpec) => void)): number
781
+ emit(sigName: "notify::updated-time", ...args: any[]): void
782
+ connect(sigName: string, callback: (...args: any[]) => void): number
783
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
784
+ emit(sigName: string, ...args: any[]): void
785
+ disconnect(id: number): void
786
+ }
787
+
788
+ class Photo extends Node {
789
+
790
+ // Own properties of GFBGraph-0.3.GFBGraph.Photo
791
+
792
+ static name: string
793
+ static $gtype: GObject.GType<Photo>
794
+
795
+ // Constructors of GFBGraph-0.3.GFBGraph.Photo
796
+
797
+ constructor(config?: Photo.ConstructorProperties)
798
+ /**
799
+ * Creates a new #GFBGraphPhoto.
800
+ * @constructor
801
+ * @returns a new #GFBGraphPhoto; unref with g_object_unref()
802
+ */
803
+ constructor()
804
+ /**
805
+ * Creates a new #GFBGraphPhoto.
806
+ * @constructor
807
+ * @returns a new #GFBGraphPhoto; unref with g_object_unref()
808
+ */
809
+ static new(): Photo
810
+
811
+ // Overloads of new
812
+
813
+ /**
814
+ * Creates a new #GFBGraphNode.
815
+ * @constructor
816
+ * @returns a new #GFBGraphNode; unref with g_object_unref()
817
+ */
818
+ static new(): Node
819
+ /**
820
+ * Retrieves an photo node from the Facebook Graph with the give ID.
821
+ * @constructor
822
+ * @param authorizer a #GFBGraphAuthorizer.
823
+ * @param id a const #gchar with the photo ID.
824
+ * @returns a new #GFBGraphPhoto; unref with g_object_unref()
825
+ */
826
+ static new_from_id(authorizer: Authorizer, id: string | null): Photo
827
+
828
+ // Overloads of new_from_id
829
+
830
+ /**
831
+ * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph.
832
+ * @constructor
833
+ * @param authorizer a #GFBGraphAuthorizer.
834
+ * @param id a const #gchar with the node ID.
835
+ * @param node_type a #GFBGraphNode type #GType.
836
+ * @returns a #GFBGraphNode or %NULL.
837
+ */
838
+ static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
839
+ _init(config?: Photo.ConstructorProperties): void
840
+ }
841
+
842
+ module SimpleAuthorizer {
843
+
844
+ // Constructor properties interface
845
+
846
+ interface ConstructorProperties extends Authorizer.ConstructorProperties, GObject.Object.ConstructorProperties {
847
+
848
+ // Own constructor properties of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
849
+
850
+ access_token?: string | null
851
+ }
852
+
853
+ }
854
+
855
+ interface SimpleAuthorizer extends Authorizer {
856
+
857
+ // Own properties of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
858
+
859
+ access_token: string | null
860
+
861
+ // Own fields of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
862
+
863
+ parent: GObject.Object
864
+
865
+ // Class property signals of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
866
+
867
+ connect(sigName: "notify::access-token", callback: (($obj: SimpleAuthorizer, pspec: GObject.ParamSpec) => void)): number
868
+ connect_after(sigName: "notify::access-token", callback: (($obj: SimpleAuthorizer, pspec: GObject.ParamSpec) => void)): number
869
+ emit(sigName: "notify::access-token", ...args: any[]): void
870
+ connect(sigName: string, callback: (...args: any[]) => void): number
871
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
872
+ emit(sigName: string, ...args: any[]): void
873
+ disconnect(id: number): void
874
+ }
875
+
876
+ class SimpleAuthorizer extends GObject.Object {
877
+
878
+ // Own properties of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
879
+
880
+ static name: string
881
+ static $gtype: GObject.GType<SimpleAuthorizer>
882
+
883
+ // Constructors of GFBGraph-0.3.GFBGraph.SimpleAuthorizer
884
+
885
+ constructor(config?: SimpleAuthorizer.ConstructorProperties)
886
+ /**
887
+ * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
888
+ * It's only a test authorizer, don't use in final code.
889
+ * @constructor
890
+ * @param access_token a const `gchar`.
891
+ * @returns a #GFBGraphSimpleAuthorizer.
892
+ */
893
+ constructor(access_token: string | null)
894
+ /**
895
+ * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
896
+ * It's only a test authorizer, don't use in final code.
897
+ * @constructor
898
+ * @param access_token a const `gchar`.
899
+ * @returns a #GFBGraphSimpleAuthorizer.
900
+ */
901
+ static new(access_token: string | null): SimpleAuthorizer
902
+ _init(config?: SimpleAuthorizer.ConstructorProperties): void
903
+ }
904
+
905
+ module User {
906
+
907
+ // Constructor properties interface
908
+
909
+ interface ConstructorProperties extends Node.ConstructorProperties {
910
+
911
+ // Own constructor properties of GFBGraph-0.3.GFBGraph.User
912
+
913
+ /**
914
+ * The email of the user if available
915
+ */
916
+ email?: string | null
917
+ /**
918
+ * The full name of the user
919
+ */
920
+ name?: string | null
921
+ }
922
+
923
+ }
924
+
925
+ interface User {
926
+
927
+ // Own properties of GFBGraph-0.3.GFBGraph.User
928
+
929
+ /**
930
+ * The email of the user if available
931
+ */
932
+ email: string | null
933
+ /**
934
+ * The full name of the user
935
+ */
936
+ name: string | null
937
+
938
+ // Own fields of GFBGraph-0.3.GFBGraph.User
939
+
940
+ parent: Node & GObject.Object
941
+
942
+ // Owm methods of GFBGraph-0.3.GFBGraph.User
943
+
944
+ /**
945
+ * Retrieve the albums nodes owned by the `user`. This functions call the function ID/albums.
946
+ * @param authorizer a #GFBGraphAuthorizer.
947
+ * @returns a newly-allocated #GList with the albums nodes owned by the given user.
948
+ */
949
+ get_albums(authorizer: Authorizer): Album[]
950
+ /**
951
+ * Asynchronously retrieve the albums nodes owned by the `user`. See gfbgraph_user_get_albums() for the
952
+ * synchronous version of this call.
953
+ *
954
+ * When the operation is finished, `callback` will be called. You can then call gfbgraph_user_get_albums_async_finish()
955
+ * to get the #GList of #GFBGraphAlbum owned by the `user`.
956
+ * @param authorizer a #GFBGraphAuthorizer.
957
+ * @param cancellable An optional #GCancellable object, or %NULL.
958
+ * @param callback A #GAsyncReadyCallback to call when the request is completed.
959
+ */
960
+ get_albums_async(authorizer: Authorizer, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
961
+ /**
962
+ * Finishes an asynchronous operation started with
963
+ * gfbgraph_user_get_albums_async().
964
+ * @param result A #GAsyncResult.
965
+ * @returns a newly-allocated #GList of albums owned by the @user.
966
+ */
967
+ get_albums_async_finish(result: Gio.AsyncResult): Album[]
968
+ /**
969
+ * Get the user email. To retrieve this propertie, you need 'email' extended
970
+ * permission.
971
+ * @returns a const #gchar with the user email, or %NULL.
972
+ */
973
+ get_email(): string | null
974
+ /**
975
+ * Get the user full name.
976
+ * @returns a const #gchar with the user full name, or %NULL.
977
+ */
978
+ get_name(): string | null
979
+
980
+ // Class property signals of GFBGraph-0.3.GFBGraph.User
981
+
982
+ connect(sigName: "notify::email", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
983
+ connect_after(sigName: "notify::email", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
984
+ emit(sigName: "notify::email", ...args: any[]): void
985
+ connect(sigName: "notify::name", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
986
+ connect_after(sigName: "notify::name", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
987
+ emit(sigName: "notify::name", ...args: any[]): void
988
+ connect(sigName: "notify::created-time", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
989
+ connect_after(sigName: "notify::created-time", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
990
+ emit(sigName: "notify::created-time", ...args: any[]): void
991
+ connect(sigName: "notify::id", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
992
+ connect_after(sigName: "notify::id", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
993
+ emit(sigName: "notify::id", ...args: any[]): void
994
+ connect(sigName: "notify::link", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
995
+ connect_after(sigName: "notify::link", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
996
+ emit(sigName: "notify::link", ...args: any[]): void
997
+ connect(sigName: "notify::updated-time", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
998
+ connect_after(sigName: "notify::updated-time", callback: (($obj: User, pspec: GObject.ParamSpec) => void)): number
999
+ emit(sigName: "notify::updated-time", ...args: any[]): void
1000
+ connect(sigName: string, callback: (...args: any[]) => void): number
1001
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1002
+ emit(sigName: string, ...args: any[]): void
1003
+ disconnect(id: number): void
1004
+ }
1005
+
1006
+ class User extends Node {
1007
+
1008
+ // Own properties of GFBGraph-0.3.GFBGraph.User
1009
+
1010
+ static name: string
1011
+ static $gtype: GObject.GType<User>
1012
+
1013
+ // Constructors of GFBGraph-0.3.GFBGraph.User
1014
+
1015
+ constructor(config?: User.ConstructorProperties)
1016
+ /**
1017
+ * Creates a new #GFBGraphUser.
1018
+ * @constructor
1019
+ * @returns a new #GFBGraphUser; unref with g_object_unref()
1020
+ */
1021
+ constructor()
1022
+ /**
1023
+ * Creates a new #GFBGraphUser.
1024
+ * @constructor
1025
+ * @returns a new #GFBGraphUser; unref with g_object_unref()
1026
+ */
1027
+ static new(): User
1028
+
1029
+ // Overloads of new
1030
+
1031
+ /**
1032
+ * Creates a new #GFBGraphNode.
1033
+ * @constructor
1034
+ * @returns a new #GFBGraphNode; unref with g_object_unref()
1035
+ */
1036
+ static new(): Node
1037
+ /**
1038
+ * Retrieves a user from the Facebook Graph with the give ID.
1039
+ * @constructor
1040
+ * @param authorizer a #GFBGraphAuthorizer.
1041
+ * @param id a const #gchar with the user ID.
1042
+ * @returns a new #GFBGraphUser; unref with g_object_unref()
1043
+ */
1044
+ static new_from_id(authorizer: Authorizer, id: string | null): User
1045
+
1046
+ // Overloads of new_from_id
1047
+
1048
+ /**
1049
+ * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph.
1050
+ * @constructor
1051
+ * @param authorizer a #GFBGraphAuthorizer.
1052
+ * @param id a const #gchar with the node ID.
1053
+ * @param node_type a #GFBGraphNode type #GType.
1054
+ * @returns a #GFBGraphNode or %NULL.
1055
+ */
1056
+ static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
1057
+ _init(config?: User.ConstructorProperties): void
1058
+ /**
1059
+ * Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
1060
+ * See gfbgraph_user_get_my_async() for the asynchronous version of this call.
1061
+ * @param authorizer a #GFBGraphAuthorizer.
1062
+ * @returns a #GFBGraphUser with the current user information.
1063
+ */
1064
+ static get_me(authorizer: Authorizer): User
1065
+ /**
1066
+ * Asynchronously retrieve the current user logged. See gfbgraph_user_get_me() for the
1067
+ * synchronous version of this call.
1068
+ *
1069
+ * When the operation is finished, `callback` will be called. You can then call gfbgraph_user_get_me_finish()
1070
+ * to get the #GFBGraphUser for to the current user logged.
1071
+ * @param authorizer a #GFBGraphAuthorizer.
1072
+ * @param cancellable An optional #GCancellable object, or %NULL.
1073
+ * @param callback A #GAsyncReadyCallback to call when the request is completed.
1074
+ */
1075
+ static get_me_async(authorizer: Authorizer, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<User> | null): void
1076
+ /**
1077
+ * Finishes an asynchronous operation started with
1078
+ * gfbgraph_user_get_me_async().
1079
+ * @param authorizer a #GFBGraphAuthorizer.
1080
+ * @param result A #GAsyncResult.
1081
+ * @returns a #GFBGraphUser for to the current user logged.
1082
+ */
1083
+ static get_me_async_finish(authorizer: Authorizer, result: Gio.AsyncResult): User
1084
+ }
1085
+
1086
+ interface AlbumClass {
1087
+
1088
+ // Own fields of GFBGraph-0.3.GFBGraph.AlbumClass
1089
+
1090
+ parent_class: NodeClass
1091
+ }
1092
+
1093
+ abstract class AlbumClass {
1094
+
1095
+ // Own properties of GFBGraph-0.3.GFBGraph.AlbumClass
1096
+
1097
+ static name: string
1098
+ }
1099
+
1100
+ interface AlbumPrivate {
1101
+ }
1102
+
1103
+ class AlbumPrivate {
1104
+
1105
+ // Own properties of GFBGraph-0.3.GFBGraph.AlbumPrivate
1106
+
1107
+ static name: string
1108
+ }
1109
+
1110
+ interface AuthorizerInterface {
1111
+
1112
+ // Own fields of GFBGraph-0.3.GFBGraph.AuthorizerInterface
1113
+
1114
+ /**
1115
+ * The parent interface.
1116
+ * @field
1117
+ */
1118
+ parent: GObject.TypeInterface
1119
+ process_call: (iface: Authorizer, call: Rest.ProxyCall) => void
1120
+ process_message: (iface: Authorizer, message: Soup.Message) => void
1121
+ refresh_authorization: (iface: Authorizer, cancellable: Gio.Cancellable | null) => boolean
1122
+ }
1123
+
1124
+ /**
1125
+ * Interface structure for #GFBGraphAuthorizer. All methos should be thread safe.
1126
+ * @record
1127
+ */
1128
+ abstract class AuthorizerInterface {
1129
+
1130
+ // Own properties of GFBGraph-0.3.GFBGraph.AuthorizerInterface
1131
+
1132
+ static name: string
1133
+ }
1134
+
1135
+ interface ConnectableInterface {
1136
+
1137
+ // Own fields of GFBGraph-0.3.GFBGraph.ConnectableInterface
1138
+
1139
+ parent: GObject.TypeInterface
1140
+ connections: GLib.HashTable
1141
+ get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
1142
+ parse_connected_data: (self: Connectable, payload: string | null) => Node[]
1143
+ }
1144
+
1145
+ abstract class ConnectableInterface {
1146
+
1147
+ // Own properties of GFBGraph-0.3.GFBGraph.ConnectableInterface
1148
+
1149
+ static name: string
1150
+ }
1151
+
1152
+ interface GoaAuthorizerClass {
1153
+
1154
+ // Own fields of GFBGraph-0.3.GFBGraph.GoaAuthorizerClass
1155
+
1156
+ parent_class: GObject.ObjectClass
1157
+ }
1158
+
1159
+ abstract class GoaAuthorizerClass {
1160
+
1161
+ // Own properties of GFBGraph-0.3.GFBGraph.GoaAuthorizerClass
1162
+
1163
+ static name: string
1164
+ }
1165
+
1166
+ interface GoaAuthorizerPrivate {
1167
+ }
1168
+
1169
+ class GoaAuthorizerPrivate {
1170
+
1171
+ // Own properties of GFBGraph-0.3.GFBGraph.GoaAuthorizerPrivate
1172
+
1173
+ static name: string
1174
+ }
1175
+
1176
+ interface NodeClass {
1177
+
1178
+ // Own fields of GFBGraph-0.3.GFBGraph.NodeClass
1179
+
1180
+ parent_class: GObject.ObjectClass
1181
+ }
1182
+
1183
+ abstract class NodeClass {
1184
+
1185
+ // Own properties of GFBGraph-0.3.GFBGraph.NodeClass
1186
+
1187
+ static name: string
1188
+ }
1189
+
1190
+ interface NodePrivate {
1191
+ }
1192
+
1193
+ class NodePrivate {
1194
+
1195
+ // Own properties of GFBGraph-0.3.GFBGraph.NodePrivate
1196
+
1197
+ static name: string
1198
+ }
1199
+
1200
+ interface PhotoClass {
1201
+
1202
+ // Own fields of GFBGraph-0.3.GFBGraph.PhotoClass
1203
+
1204
+ parent_class: NodeClass
1205
+ }
1206
+
1207
+ abstract class PhotoClass {
1208
+
1209
+ // Own properties of GFBGraph-0.3.GFBGraph.PhotoClass
1210
+
1211
+ static name: string
1212
+ }
1213
+
1214
+ interface PhotoImage {
1215
+
1216
+ // Own fields of GFBGraph-0.3.GFBGraph.PhotoImage
1217
+
1218
+ width: number
1219
+ height: number
1220
+ source: string | null
1221
+ }
1222
+
1223
+ /**
1224
+ * An struct with the information of a image.
1225
+ * @record
1226
+ */
1227
+ class PhotoImage {
1228
+
1229
+ // Own properties of GFBGraph-0.3.GFBGraph.PhotoImage
1230
+
1231
+ static name: string
1232
+ }
1233
+
1234
+ interface PhotoPrivate {
1235
+ }
1236
+
1237
+ class PhotoPrivate {
1238
+
1239
+ // Own properties of GFBGraph-0.3.GFBGraph.PhotoPrivate
1240
+
1241
+ static name: string
1242
+ }
1243
+
1244
+ interface SimpleAuthorizerClass {
1245
+
1246
+ // Own fields of GFBGraph-0.3.GFBGraph.SimpleAuthorizerClass
1247
+
1248
+ parent_class: GObject.ObjectClass
1249
+ }
1250
+
1251
+ abstract class SimpleAuthorizerClass {
1252
+
1253
+ // Own properties of GFBGraph-0.3.GFBGraph.SimpleAuthorizerClass
1254
+
1255
+ static name: string
1256
+ }
1257
+
1258
+ interface SimpleAuthorizerPrivate {
1259
+ }
1260
+
1261
+ class SimpleAuthorizerPrivate {
1262
+
1263
+ // Own properties of GFBGraph-0.3.GFBGraph.SimpleAuthorizerPrivate
1264
+
1265
+ static name: string
1266
+ }
1267
+
1268
+ interface UserClass {
1269
+
1270
+ // Own fields of GFBGraph-0.3.GFBGraph.UserClass
1271
+
1272
+ parent_class: NodeClass
1273
+ }
1274
+
1275
+ abstract class UserClass {
1276
+
1277
+ // Own properties of GFBGraph-0.3.GFBGraph.UserClass
1278
+
1279
+ static name: string
1280
+ }
1281
+
1282
+ interface UserPrivate {
1283
+ }
1284
+
1285
+ class UserPrivate {
1286
+
1287
+ // Own properties of GFBGraph-0.3.GFBGraph.UserPrivate
1288
+
1289
+ static name: string
1290
+ }
1291
+
1292
+ /**
1293
+ * Name of the imported GIR library
1294
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1295
+ */
1296
+ const __name__: string
1297
+ /**
1298
+ * Version of the imported GIR library
1299
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1300
+ */
1301
+ const __version__: string
1302
+ }
1303
+
1304
+ export default GFBGraph;
1305
+ // END