PicasaWebFile
Object Hierarchy:
Description:
All the fields in the PicasaWebFile structure are private and should never be
accessed directly.
Namespace: GData
Package: libgdata
Content:
Properties:
-
public string album_id { set; get; }
The ID for the file's album. This is in the same form as returned by
get_id.
-
public string caption { set; get; }
The file's descriptive caption.
-
public string checksum { set; get; }
A checksum of the file, useful for duplicate detection.
-
public uint comment_count { get; }
The number of comments on the file.
-
public string credit { get; }
The nickname of the user credited with this file.
-
public double distance { get; }
The distance to the subject reported in the image's EXIF.
-
public int64 edited { get; }
The time this file was last edited. If the file has not been edited yet, the content indicates the time
it was created.
-
public double exposure { get; }
The exposure time.
-
public string file_id { construct set; owned get; }
The ID of the file. This is a substring of the ID returned by
get_id for PicasaWebFiles;
for example, if get_id returned
"http://picasaweb.google.com/data/entry/user/libgdata.picasaweb/albumid/5328889949261497249/photoid/5328890138794566386" for a
particular PicasaWebFile, the
file_id property would be "5328890138794566386".
-
public bool flash { get; }
Indicates whether the flash was used.
-
public double focal_length { get; }
The focal length for the shot.
-
public double fstop { get; }
The F-stop value.
-
public uint height { get; }
The height of the photo or video, in pixels.
-
public string image_unique_id { get; }
An unique ID for the image found in the EXIF.
-
public bool is_commenting_enabled { set; get; }
Whether commenting is enabled for this file.
-
public long iso { get; }
The ISO speed.
-
public double latitude { set; get; }
The location as a latitude coordinate associated with this file. Valid latitudes range from -90.0
to 90.0 inclusive.
-
public double longitude { set; get; }
The location as a longitude coordinate associated with this file. Valid longitudes range from
-180.0 to 180.0 inclusive.
-
public string make { get; }
The name of the manufacturer of the camera.
-
public string model { get; }
The model of the camera.
-
public uint rotation { set; get; }
The rotation of the photo, in degrees. This will only be non-zero for files which are pending rotation,
and haven't yet been permanently modified. For files which have already been rotated, this will be 0.
-
public ulong size { get; }
The size of the file, in bytes.
-
public string[] tags { set; get; }
A null-terminated array of tags associated with the file.
-
public int64 timestamp { set; get; }
The time the file was purportedly taken. This a UNIX timestamp in milliseconds (not seconds) since the
epoch.
-
public string version { construct set; get; }
The version number of the file. Version numbers are based on modification time, so they don't increment
linearly.
-
public string video_status { get; }
-
public uint width { get; }
The width of the photo or video, in pixels.
Creation methods:
Methods:
-
public unowned string get_album_id ()
Gets the album_id property. This is in
the same form as returned by get_id.
-
public unowned string get_caption ()
-
public unowned string get_checksum ()
-
public uint get_comment_count ()
-
public unowned List<MediaContent> get_contents ()
Returns a list of media content, e.g. the actual photo or video.
-
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 unowned string get_credit ()
-
public double get_distance ()
-
public int64 get_edited ()
Gets the edited property. If the property
is unset, -1 will be returned.
-
public double get_exposure ()
-
public bool get_flash ()
-
public double get_focal_length ()
-
public double get_fstop ()
-
public uint get_height ()
-
public unowned string get_id ()
-
public unowned string get_image_unique_id ()
-
public int get_iso ()
-
public unowned string get_make ()
-
public unowned string get_model ()
-
public uint get_rotation ()
-
public size_t get_size ()
-
public weak string[] get_tags ()
-
public unowned List<MediaThumbnail> get_thumbnails ()
Returns a list of thumbnails, often at different sizes, for this file. Currently, PicasaWeb usually
returns three thumbnails, with widths in pixels of 72, 144, and 288. However, the thumbnail will not be larger than the actual image,
so thumbnails may be smaller than the widths listed above.
-
public int64 get_timestamp ()
Gets the timestamp property. 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_version ()
-
public unowned string get_video_status ()
-
public uint get_width ()
-
public void set_album_id (string album_id)
Sets the album_id property, effectively
moving the file to the album.
-
public void set_caption (string? caption)
Sets the caption property to
caption.
-
public void set_checksum (string? checksum)
-
public void set_coordinates (double latitude, double longitude)
-
public void set_is_commenting_enabled (bool is_commenting_enabled)
-
public void set_rotation (uint rotation)
-
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. If timestamp is
-1, the property will be unset.