Top |
GsReview * | gs_review_new () |
gint | gs_review_get_karma () |
void | gs_review_set_karma () |
gint | gs_review_get_score () |
void | gs_review_set_score () |
const gchar * | gs_review_get_summary () |
void | gs_review_set_summary () |
const gchar * | gs_review_get_text () |
void | gs_review_set_text () |
gint | gs_review_get_rating () |
void | gs_review_set_rating () |
const gchar * | gs_review_get_version () |
void | gs_review_set_version () |
const gchar * | gs_review_get_reviewer () |
void | gs_review_set_reviewer () |
GDateTime * | gs_review_get_date () |
void | gs_review_set_date () |
GsReviewFlags | gs_review_get_flags () |
void | gs_review_set_flags () |
void | gs_review_add_flags () |
const gchar * | gs_review_get_metadata_item () |
void | gs_review_add_metadata () |
GsReview * | date | Read / Write / Construct |
guint64 | flags | Read / Write / Construct |
gint | karma | Read / Write / Construct |
gint | rating | Read / Write / Construct |
gchar * | reviewer | Read / Write / Construct |
gchar * | summary | Read / Write / Construct |
gchar * | text | Read / Write / Construct |
gchar * | version | Read / Write / Construct |
gint
gs_review_get_karma (GsReview *review
);
Gets the karma for the review, where positive numbers indicate more positive feedback for the review.
void gs_review_set_karma (GsReview *review
,gint karma
);
Sets the karma for the review, where positive numbers indicate more positive feedback for the review.
Karma can be positive or negative, or 0 for unset.
gint
gs_review_get_score (GsReview *review
);
This allows the UI to sort reviews into the correct order. Higher numbers indicate a more important or relevant review.
void gs_review_set_score (GsReview *review
,gint score
);
Sets the score for the review, where positive numbers indicate a better review for the specific user.
const gchar *
gs_review_get_summary (GsReview *review
);
Gets the review summary.
void gs_review_set_summary (GsReview *review
,const gchar *summary
);
Sets the one-line summary that may be displayed in bold.
const gchar *
gs_review_get_text (GsReview *review
);
Gets the multi-line review text that forms the body of the review.
void gs_review_set_text (GsReview *review
,const gchar *text
);
Sets the multi-line review text that forms the body of the review.
gint
gs_review_get_rating (GsReview *review
);
Gets the star rating of the review, where 100 is 5 stars.
void gs_review_set_rating (GsReview *review
,gint rating
);
Sets the star rating of the review, where 100 is 5 stars..
const gchar *
gs_review_get_version (GsReview *review
);
Gets the version string for the application being reviewed..
void gs_review_set_version (GsReview *review
,const gchar *version
);
Sets the version string for the application being reviewed.
const gchar *
gs_review_get_reviewer (GsReview *review
);
Gets the name of the reviewer.
void gs_review_set_reviewer (GsReview *review
,const gchar *reviewer
);
Sets the name of the reviewer, which can be left unset.
GDateTime *
gs_review_get_date (GsReview *review
);
Gets the date the review was originally submitted.
void gs_review_set_date (GsReview *review
,GDateTime *date
);
Sets the date the review was originally submitted.
GsReviewFlags
gs_review_get_flags (GsReview *review
);
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.
void gs_review_set_flags (GsReview *review
,GsReviewFlags 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.
void gs_review_add_flags (GsReview *review
,GsReviewFlags flags
);
Adds flags to an existing review without replacing the other flags.
const gchar * gs_review_get_metadata_item (GsReview *review
,const gchar *key
);
Gets some metadata from a review object. It is left for the the plugin to use this method as required, but a typical use would be to retrieve some secure authentication token.
The review action.