query_comments


Description:

public Feed? query_comments (Service service, Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error

Retrieves a Feed containing the Comment s representing the comments on the Commentable which match the given query.

If the Commentable doesn't support commenting, null will be returned and error will be set to FORBIDDEN. This is in contrast to if it does support commenting but hasn't had any comments added yet, in which case an empty Feed will be returned and no error will be set.

Parameters:

this

a Commentable

service

a Service representing the service with which the object's comments will be manipulated

query

a Query with query parameters, or null

cancellable

optional Cancellable object, or null

progress_callback

a QueryProgressCallback to call when a comment is loaded, or null

progress_user_data

data to pass to the progress_callback function

Returns:

a Feed of Comments, or null; unref with unref




2022 vala-language.org