Service
Object Hierarchy:
Description:
[ CCode ( type_id = "gdata_service_get_type ()" ) ]
public class Service : Object
All the fields in the Service structure are private and should never be accessed directly.
Content:
Properties:
- public Authorizer authorizer { get; set; }
- public string locale { get; set; }
The locale to use for network requests, in Unix locale format.
- public ProxyResolver proxy_resolver { get; set; }
The ProxyResolver used to determine a
proxy URI.
- public uint timeout { get; set; }
A timeout, in seconds, for network operations.
Static methods:
Creation methods:
Methods:
- public virtual void append_query_headers (AuthorizationDomain domain, Message message)
- public bool delete_entry (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable = null) throws Error
Deletes entry
from the server.
- public async bool delete_entry_async (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable) throws Error
Deletes entry
from the server.
- public unowned Authorizer get_authorizer ()
Gets the Authorizer
object currently in use by the service.
- public unowned string get_locale ()
Returns the locale currently being used for network requests, or
null
if the locale is the default.
- public unowned ProxyResolver? get_proxy_resolver ()
Gets the ProxyResolver on the
Service's Session.
- public uint get_timeout ()
Gets the timeout
property; the network timeout, in seconds.
- public Entry insert_entry (AuthorizationDomain? domain, string upload_uri, Entry entry, Cancellable? cancellable = null) throws Error
Inserts entry
by uploading it to the online service at
upload_uri
.
- public async Entry insert_entry_async (AuthorizationDomain? domain, string upload_uri, Entry entry, Cancellable? cancellable) throws Error
Inserts entry
by uploading it to the online service at
upload_uri
.
- public bool is_authorized ()
- public virtual void parse_error_response (OperationType operation_type, uint status, string reason_phrase, string response_body, int length) throws Error
- public Feed query (AuthorizationDomain? domain, string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error
Queries the service's feed_uri
feed to build a
Feed.
- public async Feed query_async (AuthorizationDomain? domain, string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, owned QueryProgressCallback? progress_callback) throws Error
Queries the service's feed_uri
feed to build a
Feed.
- public Entry query_single_entry (AuthorizationDomain? domain, string entry_id, Query? query, Type entry_type, Cancellable? cancellable = null) throws Error
Retrieves information about the single entry with the given
entry_id
.
- public async Entry query_single_entry_async (AuthorizationDomain? domain, string entry_id, Query? query, Type entry_type, Cancellable? cancellable) throws Error
Retrieves information about the single entry with the given
entry_id
.
- public void set_authorizer (Authorizer authorizer)
- public void set_locale (string? locale)
Set the locale used for network requests to locale
, given
in standard Unix locale format.
- public void set_proxy_resolver (ProxyResolver? proxy_resolver)
Sets the ProxyResolver on the
Session used internally by the given Service.
- public void set_timeout (uint timeout)
Sets the timeout
property; the network timeout, in seconds.
- public Entry update_entry (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable = null) throws Error
Updates entry
by PUTting it to its edit link's
URI.
- public async Entry update_entry_async (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable) throws Error
Updates entry
by PUTting it to its edit link's
URI.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref