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:
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 ()
- public unowned URI get_proxy_uri ()
Gets the proxy URI 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)
- public void set_proxy_uri (URI? proxy_uri)
Sets the proxy URI 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 <literal>edit
</literal> link's URI.
- public async Entry update_entry_async (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable) throws Error
Updates entry by PUTting it to its <literal>edit
</literal> link's URI.
Inherited Members:
All known members inherited from class GLib.Object