Entry
Object Hierarchy:
Description:
public class Entry :
Parsable
The class structure for the Entry type.
Namespace: GData
Package: libgdata
Content:
Properties:
-
public string content { set; get; }
The content of the entry. This is mutually exclusive with
content.
-
public string content_uri { set; get; }
A URI pointing to the location of the content of the entry. This is mutually exclusive with
content.
-
public string etag { construct set; get; }
An identifier for a particular version of the entry. This changes every time the entry on the server
changes, and can be used for conditional retrieval and locking.
-
public string id { construct set; get; }
A permanent, universally unique identifier for the entry, in IRI form.
-
public bool is_inserted { get; }
Whether the entry has been inserted on the server. This is false for entries which have
just been created using Entry and true for entries
returned from the server by queries. It is set to true when an entry is inserted using
insert_entry.
-
public int64 published { get; }
The date and time the entry was first published or made available.
-
public string rights { set; get; }
The ownership rights pertaining to the entry.
-
public string summary { set; get; }
A short summary, abstract, or excerpt of the entry.
-
public string title { set; get; }
A human-readable title for the entry.
-
public int64 updated { get; }
The date and time when the entry was most recently updated significantly.
Creation methods:
-
public Entry (string? id)
Creates a new Entry with the given ID and default
properties.
Methods:
-
public void add_author (Author author)
Adds author to the list of authors in the given
Entry and increments its reference count.
-
public void add_category (Category category)
Adds category to the list of categories in the given
Entry, and increments its reference count.
-
public void add_link (Link _link)
Adds @_link to the list of links in the given Entry and
increments its reference count.
-
public unowned List<Author> get_authors ()
Gets a list of the Authors for this entry.
-
public unowned List<Category> get_categories ()
Gets a list of the Categorys containing this entry.
-
public unowned string get_content ()
Returns the textual content in this entry. If the content in this entry is pointed to by a URI,
null will be returned; the content URI will be returned by
get_content_uri.
-
public unowned string get_content_uri ()
Returns a URI pointing to the content of this entry. If the content in this entry is stored
directly, null will be returned; the content will be returned by
get_content.
-
public unowned string get_etag ()
Returns the ETag of the entry; a unique identifier for each version of the entry. For more
information, see the online documentation.
-
public unowned string get_id ()
Returns the URN ID of the entry; a unique and permanent identifier for the object the entry
represents.
-
public int64 get_published ()
Gets the time the entry was originally published.
-
public unowned string get_rights ()
Returns the rights pertaining to the entry, or null if not set.
-
public unowned string get_summary ()
Returns the summary of the entry.
-
public unowned string get_title ()
Returns the title of the entry.
-
public int64 get_updated ()
Gets the time the entry was last updated.
-
public weak Link look_up_link (string rel)
Looks up a link by relation type from the list of links in the entry. If the link has one of the
standard Atom relation types, use one of the defined rel values, instead of a static string. e.g.
LINK_EDIT or LINK_SELF.
-
public List<weak Link> look_up_links (string rel)
Looks up a list of links by relation type from the list of links in the entry. If the links have one
of the standard Atom relation types, use one of the defined rel values, instead of a static string. e.g.
LINK_EDIT or LINK_SELF.
-
public void set_content (string? content)
Sets the entry's content to content. This unsets
content_uri.
-
public void set_content_uri (string? content_uri)
Sets the URI pointing to the entry's content to content. This unsets
content.
-
public void set_rights (string? rights)
Sets the rights for this entry.
-
public void set_summary (string? summary)
Sets the summary of the entry.
-
public void set_title (string? title)
Sets the title of the entry.