Review
Object Hierarchy:
Description:
Namespace: AppStream
Package: appstream
Content:
Properties:
- public Review date { get; set construct; }
- public string description { get; set construct; }
- public uint64 flags { get; set construct; }
- public string id { get; set construct; }
- public string locale { get; set construct; }
- public int priority { get; set construct; }
The priority for the review, where positive numbers indicate a better review for the specific user.
- public int rating { get; set construct; }
- public string reviewer_id { get; set construct; }
- public string reviewer_name { get; set construct; }
- public string summary { get; set construct; }
- public string version { get; set construct; }
Creation methods:
- public Review ()
Creates a new Review.
Methods:
- public void add_flags (ReviewFlags flags)
Adds flags to an existing review without replacing the other flags.
- public void add_metadata (string key, string value)
Adds metadata to the review object.
- public bool equal (Review review2)
Checks if two reviews are the same.
- public unowned DateTime get_date ()
Gets the date the review was originally submitted.
- public unowned string get_description ()
Gets the multi-line review text that forms the body of the review.
- public ReviewFlags get_flags ()
Gets any flags set on the review, for example if the user has already voted on the review or if the user wrote the review themselves.
- public unowned string get_id ()
Gets the review id.
- public unowned string get_locale ()
Gets the locale for the review.
- public unowned string get_metadata_item (string key)
Gets some metadata from a review object.
- public int get_priority ()
This allows the UI to sort reviews into the correct order.
- public int get_rating ()
Gets the star rating of the review, where 100 is 5 stars.
- public unowned string get_reviewer_id ()
Gets the name of the reviewer.
- public unowned string get_reviewer_name ()
Gets the name of the reviewer.
- public unowned string get_summary ()
Gets the review summary.
- public unowned string get_version ()
Gets the version string for the application being reviewed.
- public void set_date (DateTime date)
Sets the date the review was originally submitted.
- public void set_description (string description)
Sets the multi-line review text that forms the body of the review.
- public void set_flags (ReviewFlags flags)
Gets any flags set on the review, for example if the user has already voted on the review or if the user wrote the review themselves.
- public void set_id (string id)
Sets the review identifier that is unique to each review.
- public void set_locale (string locale)
Sets the locale for the review.
- public void set_priority (int priority)
Sets the priority for the review, where positive numbers indicate a better review for the specific user.
- public void set_rating (int rating)
Sets the star rating of the review, where 100 is 5 stars.
- public void set_reviewer_id (string reviewer_id)
Sets the name of the reviewer, which can be left unset.
- public void set_reviewer_name (string reviewer_name)
Sets the name of the reviewer, which can be left unset.
- public void set_summary (string summary)
Sets the one-line summary that may be displayed in bold.
- public void set_version (string version)
Sets the version string for the application being reviewed.
Inherited Members:
All known members inherited from class GLib.Object