PicasaWebAlbum
Object Hierarchy:
Description:
All the fields in the PicasaWebAlbum structure are private and should never be
accessed directly.
Namespace: GData
Package: libgdata
Content:
Properties:
-
public string album_id { construct set; owned get; }
The ID of the album. This is a substring of the ID returned by
get_id for PicasaWebAlbums;
for example, if get_id returned
"http://picasaweb.google.com/data/entry/user/libgdata.picasaweb/albumid/5328889949261497249" for a particular
PicasaWebAlbum, the
album_id property would be "5328889949261497249".
-
public long bytes_used { get; }
The number of bytes consumed by this album and its contents. Note that this is only set if the
authenticated user is the owner of the album; it's otherwise -1.
-
public uint comment_count { get; }
The number of comments on the album.
-
public int64 edited { get; }
The time this album was last edited. If the album has not been edited yet, the content indicates the
time it was created.
-
public bool is_commenting_enabled { set; get; }
-
public double latitude { set; get; }
The location as a latitude coordinate associated with this album. Valid latitudes range from -90.0
to 90.0 inclusive.
-
public string location { set; get; }
The user-specified location associated with the album. A place name.
-
public double longitude { set; get; }
The location as a longitude coordinate associated with this album. Valid longitudes range from
-180.0 to 180.0 inclusive.
-
public string nickname { get; }
The user's nickname. This is a user-specified value that should be used when referring to the user by
name.
-
public uint num_photos { get; }
The number of photos and videos in the album.
-
public uint num_photos_remaining { get; }
The number of photos and videos that can still be uploaded to this album. This doesn't account for
quota, just a hardcoded maximum number per album set by Google.
-
public string[] tags { set; get; }
A null-terminated array of tags associated with the album; all the tags associated with the
individual photos in the album.
-
public int64 timestamp { set; get; }
The timestamp of when the album occurred, settable by the user. This a UNIX timestamp in milliseconds
(not seconds) since the epoch.
-
public string user { get; }
The username of the album owner.
-
public PicasaWebVisibility visibility { set; get; }
The visibility (or access rights) of the album.
Creation methods:
Methods:
-
public long get_bytes_used ()
Gets the bytes_used property. It
will return -1 if the current authenticated user is not the owner of the album.
-
public uint get_comment_count ()
-
public unowned List<MediaContent> get_contents ()
Returns a list of media content, such as the cover image for the album.
-
public void get_coordinates (out double latitude, out double longitude)
Gets the latitude and
longitude properties, setting the out parameters to them. If either
latitude or longitude is null, that parameter will not be set. If the coordinates are unset, latitude and
longitude will be set to G_MAXDOUBLE.
-
public int64 get_edited ()
Gets the edited property. If the
property is unset, -1 will be returned.
-
public unowned string get_id ()
-
public unowned string get_location ()
-
public unowned string get_nickname ()
-
public uint get_num_photos ()
-
public uint get_num_photos_remaining ()
-
public weak string[] get_tags ()
-
public unowned List<MediaThumbnail> get_thumbnails ()
Returns a list of thumbnails, often at different sizes, for this album.
-
public int64 get_timestamp ()
Gets the timestamp property. This
value usually holds either the date that best corresponds to the album of photos, or to the day it was uploaded. It's a UNIX timestamp
in milliseconds (not seconds) since the epoch. If the property is unset, -1 will be returned.
-
public unowned string get_user ()
-
public PicasaWebVisibility get_visibility ()
-
public void set_coordinates (double latitude, double longitude)
-
public void set_is_commenting_enabled (bool is_commenting_enabled)
-
public void set_location (string? location)
-
public void set_tags (string[]? tags)
Sets the tags property to tags
.
-
public void set_timestamp (int64 timestamp)
Sets the timestamp property from
timestamp. This should be a UNIX timestamp in milliseconds (not seconds) since the epoch.
-
public void set_visibility (PicasaWebVisibility visibility)