get_notices_with_filters_sync


Description:

[ Version ( since = "1.65" ) ]
public GenericArray<unowned Notice> get_notices_with_filters_sync (string user_id, string users, string types, string keys, DateTime since_date_time, TimeSpan timeout, Cancellable? cancellable = null) throws Error

Synchronously get notifications that have occurred / are occurring on the snap daemon, allowing to filter the results with several options.

The since_date_time field, being a GDateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to call notices_set_after_notice before calling this method.

Parameters:

this

a Client.

user_id

filter by this user-id (NULL for no filter).

users

filter by this comma-separated list of users (NULL for no filter).

types

filter by this comma-separated list of types (NULL for no filter).

keys

filter by this comma-separated list of keys (NULL for no filter).

since_date_time

send only the notices generated after this moment (NULL for all).

timeout

time, in microseconds, to wait for a new notice (zero to return immediately).

cancellable

a Cancellable or null.

Returns:

a GenericArray object containing the requested notices, or NULL in case of error.